@@ -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 | } |