| 1 |
<?php |
| 2 |
if ( ! defined( 'ABSPATH' ) ) { |
| 3 |
die( 'You are not allowed to call this page directly.' ); |
| 4 |
} |
| 5 |
|
| 6 |
/** |
| 7 |
* @since 3.0 |
| 8 |
*/ |
| 9 |
class FrmFieldText extends FrmFieldType { |
| 10 |
|
| 11 |
/** |
| 12 |
* @var string |
| 13 |
* @since 3.0 |
| 14 |
*/ |
| 15 |
protected $type = 'text'; |
| 16 |
|
| 17 |
/** |
| 18 |
* @var bool |
| 19 |
* @since 3.0 |
| 20 |
*/ |
| 21 |
protected $holds_email_values = true; |
| 22 |
|
| 23 |
protected function field_settings_for_type() { |
| 24 |
return array( |
| 25 |
'size' => true, |
| 26 |
'clear_on_focus' => true, |
| 27 |
'format' => true, |
| 28 |
'invalid' => true, |
| 29 |
); |
| 30 |
} |
| 31 |
} |
| 32 |
|