1 | <?php |
||
12 | class Input extends Element |
||
13 | { |
||
14 | use HasFiltersTrait; |
||
15 | use HasValidationRulesTrait; |
||
16 | use HasLabelTrait; |
||
17 | use HasHintTrait; |
||
18 | use HasAttributesTrait; |
||
19 | |||
20 | /** |
||
21 | * Name of the field (identifier of the element in the child list) |
||
22 | * |
||
23 | * @var string |
||
24 | */ |
||
25 | protected $name; |
||
26 | |||
27 | protected $value; |
||
28 | |||
29 | /** |
||
30 | * |
||
31 | * @param string $name |
||
32 | * Name of the input element that will make it identifiable |
||
33 | * @param array $specs |
||
34 | * Specification for the element (attributes, parents, etc) |
||
35 | */ |
||
36 | 38 | public function __construct($name, $specs = array()) |
|
41 | |||
42 | /** |
||
43 | * Returns the default element specifications |
||
44 | * To be used for easily extending objects |
||
45 | * |
||
46 | * @return array |
||
47 | */ |
||
48 | 7 | protected function getDefaultSpecs() |
|
54 | } |
||
55 |