1 | <?php |
||
12 | class HtmlFormField extends HtmlSemDoubleElement { |
||
13 | protected $_container; |
||
14 | protected $_validation; |
||
15 | public function __construct($identifier, $field,$label=NULL) { |
||
23 | |||
24 | public function addPointingLabel($label,$pointing=Direction::NONE){ |
||
30 | |||
31 | public function setLabel($label){ |
||
40 | |||
41 | public function setField($field){ |
||
44 | |||
45 | /** |
||
46 | * Returns the label or null |
||
47 | * @return mixed |
||
48 | */ |
||
49 | public function getLabel(){ |
||
53 | |||
54 | /** |
||
55 | * Return the field |
||
56 | * @return mixed |
||
57 | */ |
||
58 | public function getField(){ |
||
61 | |||
62 | /** |
||
63 | * puts the label before or behind |
||
64 | */ |
||
65 | public function swapLabel(){ |
||
70 | |||
71 | /** |
||
72 | * Defines the field width |
||
73 | * @param int $width |
||
74 | * @return \Ajax\semantic\html\collections\form\HtmlFormField |
||
75 | */ |
||
76 | public function setWidth($width){ |
||
86 | |||
87 | /** |
||
88 | * Field displays an error state |
||
89 | * @return \Ajax\semantic\html\collections\form\HtmlFormField |
||
90 | */ |
||
91 | public function setError(){ |
||
94 | |||
95 | public function setInline(){ |
||
98 | |||
99 | public function jsState($state){ |
||
102 | |||
103 | public function setContainer($_container) { |
||
107 | |||
108 | public function setReadonly(){ |
||
111 | |||
112 | public function addRule($type,$prompt=NULL,$value=NULL){ |
||
122 | |||
123 | public function getValidation() { |
||
126 | |||
127 | |||
128 | } |