1 | <?php |
||
10 | abstract class FormElement extends \hemio\form\Container { |
||
11 | |||
12 | use \hemio\form\Trait_\MaintainsTransformations; |
||
13 | |||
14 | protected $name = ''; |
||
15 | protected $idSuffix = null; |
||
16 | |||
17 | /** |
||
18 | * Is active value in the form correct. |
||
19 | * |
||
20 | * @return boolean |
||
21 | */ |
||
22 | abstract public function dataValid(); |
||
23 | |||
24 | /** |
||
25 | * Get the form to which this element belongs |
||
26 | * |
||
27 | * @return Abstract_\Form |
||
28 | * @throws exception\NotLazyEnough |
||
29 | */ |
||
30 | public function getForm() { |
||
39 | |||
40 | /** |
||
41 | * |
||
42 | * @return string |
||
43 | */ |
||
44 | public function getName() { |
||
47 | |||
48 | /** |
||
49 | * |
||
50 | * @param array $extraKeys |
||
51 | * @return string |
||
52 | */ |
||
53 | public function getHtmlName(array $extraKeys = []) { |
||
60 | |||
61 | /** |
||
62 | * |
||
63 | * @param array $extraKeys |
||
64 | * @return string |
||
65 | */ |
||
66 | public function getHtmlId(array $extraKeys = []) { |
||
74 | |||
75 | public function getValueUser() { |
||
80 | |||
81 | } |
||
82 |