1 | <?php |
||
9 | class HtmlFormField extends HtmlSemDoubleElement { |
||
10 | protected $_container; |
||
11 | public function __construct($identifier, $field,$label=NULL) { |
||
19 | |||
20 | public function setLabel($label){ |
||
29 | |||
30 | public function setField($field){ |
||
33 | |||
34 | /** |
||
35 | * Returns the label or null |
||
36 | * @return mixed |
||
37 | */ |
||
38 | public function getLabel(){ |
||
42 | |||
43 | /** |
||
44 | * Return the field |
||
45 | * @return mixed |
||
46 | */ |
||
47 | public function getField(){ |
||
50 | |||
51 | /** |
||
52 | * puts the label before or behind |
||
53 | */ |
||
54 | public function swapLabel(){ |
||
59 | |||
60 | /** |
||
61 | * Defines the field width |
||
62 | * @param int $width |
||
63 | * @return \Ajax\semantic\html\collections\form\HtmlFormField |
||
64 | */ |
||
65 | public function setWidth($width){ |
||
75 | |||
76 | /** |
||
77 | * Field displays an error state |
||
78 | * @return \Ajax\semantic\html\collections\form\HtmlFormField |
||
79 | */ |
||
80 | public function setError(){ |
||
83 | |||
84 | public function jsState($state){ |
||
87 | |||
88 | public function setContainer($_container) { |
||
92 | |||
93 | public function setReadonly(){ |
||
96 | |||
97 | } |