1 <?php
2
3 /**
4 * Text field which hides the user input.
5 *
6 * This field submits plain text.
7 *
8 * @package Fieldmanager_Field
9 */
10 class Fieldmanager_Password extends Fieldmanager_Field {
11
12 /**
13 * @var string
14 * Override field_class
15 */
16 public $field_class = 'password';
17
18 /**
19 * Override the input type
20 * @var string
21 */
22 public $input_type = 'password';
23
24 /**
25 * Override constructor to set default size.
26 * @param string $label
27 * @param array $options
28 */
29 public function __construct( $label = '', $options = array() ) {
30 $this->attributes = array(
31 'size' => '50',
32 );
33 parent::__construct( $label, $options );
34 }
35
36 }