1 <?php
2
3 /**
4 * Single-line text field.
5 *
6 * @package Fieldmanager_Field
7 */
8 class Fieldmanager_TextField extends Fieldmanager_Field {
9
10 /**
11 * @var string
12 * Override field_class
13 */
14 public $field_class = 'text';
15
16 /**
17 * Override constructor to set default size.
18 * @param string $label
19 * @param array $options
20 */
21 public function __construct( $label = '', $options = array() ) {
22 $this->attributes = array(
23 'size' => '50',
24 );
25 parent::__construct( $label, $options );
26 }
27
28 }