1 | <?php |
||
12 | class HtmlFormField extends HtmlSemDoubleElement { |
||
13 | protected $_container; |
||
14 | protected $_validation; |
||
15 | public function __construct($identifier, $field,$label=NULL) { |
||
24 | |||
25 | public function addPointingLabel($label,$pointing=Direction::NONE){ |
||
31 | |||
32 | public function setLabel($label){ |
||
41 | |||
42 | public function setField($field){ |
||
45 | |||
46 | /** |
||
47 | * Returns the label or null |
||
48 | * @return mixed |
||
49 | */ |
||
50 | public function getLabel(){ |
||
54 | |||
55 | /** |
||
56 | * Return the field |
||
57 | * @return mixed |
||
58 | */ |
||
59 | public function getField(){ |
||
62 | |||
63 | /** |
||
64 | * puts the label before or behind |
||
65 | */ |
||
66 | public function swapLabel(){ |
||
71 | |||
72 | /** |
||
73 | * Defines the field width |
||
74 | * @param int $width |
||
75 | * @return \Ajax\semantic\html\collections\form\HtmlFormField |
||
76 | */ |
||
77 | public function setWidth($width){ |
||
87 | |||
88 | /** |
||
89 | * Field displays an error state |
||
90 | * @return \Ajax\semantic\html\collections\form\HtmlFormField |
||
91 | */ |
||
92 | public function setError(){ |
||
95 | |||
96 | public function setInline(){ |
||
99 | |||
100 | public function jsState($state){ |
||
103 | |||
104 | public function setContainer($_container) { |
||
108 | |||
109 | public function setReadonly(){ |
||
112 | |||
113 | public function addRule($type,$prompt=NULL,$value=NULL){ |
||
123 | |||
124 | public function addRules(array $rules){ |
||
130 | |||
131 | public function getValidation() { |
||
134 | |||
135 | |||
136 | } |