@@ -58,6 +58,9 @@ discard block |
||
58 | 58 | return $this->addComponent(new Accordion($this->js), $attachTo, $params); |
59 | 59 | } |
60 | 60 | |
61 | + /** |
|
62 | + * @param string $attachTo |
|
63 | + */ |
|
61 | 64 | public function sticky($attachTo=NULL, $params=NULL) { |
62 | 65 | return $this->addComponent(new Sticky($this->js), $attachTo, $params); |
63 | 66 | } |
@@ -66,18 +69,30 @@ discard block |
||
66 | 69 | return $this->addComponent(new Checkbox($this->js), $attachTo, $params); |
67 | 70 | } |
68 | 71 | |
72 | + /** |
|
73 | + * @param string $attachTo |
|
74 | + */ |
|
69 | 75 | public function rating($attachTo=NULL, $params=NULL) { |
70 | 76 | return $this->addComponent(new Rating($this->js), $attachTo, $params); |
71 | 77 | } |
72 | 78 | |
79 | + /** |
|
80 | + * @param string $attachTo |
|
81 | + */ |
|
73 | 82 | public function progress($attachTo=NULL, $params=NULL) { |
74 | 83 | return $this->addComponent(new Progress($this->js), $attachTo, $params); |
75 | 84 | } |
76 | 85 | |
86 | + /** |
|
87 | + * @param string $attachTo |
|
88 | + */ |
|
77 | 89 | public function search($attachTo=NULL, $params=NULL) { |
78 | 90 | return $this->addComponent(new Search($this->js), $attachTo, $params); |
79 | 91 | } |
80 | 92 | |
93 | + /** |
|
94 | + * @param string $attachTo |
|
95 | + */ |
|
81 | 96 | public function dimmer($attachTo=NULL, $params=NULL) { |
82 | 97 | return $this->addComponent(new Dimmer($this->js), $attachTo, $params); |
83 | 98 | } |
@@ -145,16 +145,26 @@ discard block |
||
145 | 145 | return $this; |
146 | 146 | } |
147 | 147 | |
148 | + /** |
|
149 | + * @param string $name |
|
150 | + * @param string $value |
|
151 | + */ |
|
148 | 152 | protected function removePropertyValue($name, $value) { |
149 | 153 | $this->properties[$name]=\str_replace($value, "", $this->properties[$name]); |
150 | 154 | return $this; |
151 | 155 | } |
152 | 156 | |
157 | + /** |
|
158 | + * @param string $name |
|
159 | + */ |
|
153 | 160 | protected function removePropertyValues($name, $values) { |
154 | 161 | $this->removeOldValues($this->properties[$name], $values); |
155 | 162 | return $this; |
156 | 163 | } |
157 | 164 | |
165 | + /** |
|
166 | + * @param string $name |
|
167 | + */ |
|
158 | 168 | protected function removeProperty($name) { |
159 | 169 | if (\array_key_exists($name, $this->properties)) |
160 | 170 | unset($this->properties[$name]); |
@@ -185,6 +195,9 @@ discard block |
||
185 | 195 | return $this->addToProperty($name, $value); |
186 | 196 | } |
187 | 197 | |
198 | + /** |
|
199 | + * @param string $name |
|
200 | + */ |
|
188 | 201 | public function addToPropertyCtrl($name, $value, $typeCtrl) { |
189 | 202 | return $this->addToPropertyUnique($name, $value, $typeCtrl); |
190 | 203 | } |
@@ -333,14 +346,23 @@ discard block |
||
333 | 346 | return $this; |
334 | 347 | } |
335 | 348 | |
349 | + /** |
|
350 | + * @param string $event |
|
351 | + */ |
|
336 | 352 | public function getOn($event, $url, $responseElement="", $parameters=array()) { |
337 | 353 | return $this->_ajaxOn("get", $event, $url, $responseElement, $parameters); |
338 | 354 | } |
339 | 355 | |
356 | + /** |
|
357 | + * @param string $url |
|
358 | + */ |
|
340 | 359 | public function getOnClick($url, $responseElement="", $parameters=array()) { |
341 | 360 | return $this->getOn("click", $url, $responseElement, $parameters); |
342 | 361 | } |
343 | 362 | |
363 | + /** |
|
364 | + * @param string $event |
|
365 | + */ |
|
344 | 366 | public function postOn($event, $url, $params="{}", $responseElement="", $parameters=array()) { |
345 | 367 | $parameters["params"]=$params; |
346 | 368 | return $this->_ajaxOn("post", $event, $url, $responseElement, $parameters); |
@@ -350,6 +372,9 @@ discard block |
||
350 | 372 | return $this->postOn("click", $url, $params, $responseElement, $parameters); |
351 | 373 | } |
352 | 374 | |
375 | + /** |
|
376 | + * @param string $event |
|
377 | + */ |
|
353 | 378 | public function postFormOn($event, $url, $form, $responseElement="", $parameters=array()) { |
354 | 379 | $parameters["form"]=$form; |
355 | 380 | return $this->_ajaxOn("postForm", $event, $url, $responseElement, $parameters); |
@@ -399,6 +424,9 @@ discard block |
||
399 | 424 | return $value; |
400 | 425 | } |
401 | 426 | |
427 | + /** |
|
428 | + * @param string $jqueryCall |
|
429 | + */ |
|
402 | 430 | public function jsDoJquery($jqueryCall, $param="") { |
403 | 431 | return "$('#" . $this->identifier . "')." . $jqueryCall . "(" . $this->_prep_value($param) . ");"; |
404 | 432 | } |
@@ -20,6 +20,9 @@ |
||
20 | 20 | protected $_tabsType="tabs"; |
21 | 21 | protected $stacked=""; |
22 | 22 | |
23 | + /** |
|
24 | + * @param string $identifier |
|
25 | + */ |
|
23 | 26 | public function __construct($identifier, $tagName="ul") { |
24 | 27 | parent::__construct($identifier, $tagName); |
25 | 28 | $this->_template="<%tagName% %properties%>%tabs%</%tagName%>%content%"; |