@@ -141,22 +141,36 @@ discard block |
||
| 141 | 141 | return $this; |
| 142 | 142 | } |
| 143 | 143 | |
| 144 | + /** |
|
| 145 | + * @param string $name |
|
| 146 | + * @param string $value |
|
| 147 | + */ |
|
| 144 | 148 | protected function removePropertyValue($name, $value) { |
| 145 | 149 | $this->properties[$name]=\str_replace($value, "", $this->properties[$name]); |
| 146 | 150 | return $this; |
| 147 | 151 | } |
| 148 | 152 | |
| 153 | + /** |
|
| 154 | + * @param string $name |
|
| 155 | + */ |
|
| 149 | 156 | protected function removePropertyValues($name, $values) { |
| 150 | 157 | $this->removeOldValues($this->properties[$name], $values); |
| 151 | 158 | return $this; |
| 152 | 159 | } |
| 153 | 160 | |
| 161 | + /** |
|
| 162 | + * @param string $name |
|
| 163 | + */ |
|
| 154 | 164 | protected function removeProperty($name) { |
| 155 | 165 | if (\array_key_exists($name, $this->properties)) |
| 156 | 166 | unset($this->properties[$name]); |
| 157 | 167 | return $this; |
| 158 | 168 | } |
| 159 | 169 | |
| 170 | + /** |
|
| 171 | + * @param string $name |
|
| 172 | + * @param string[] $typeCtrl |
|
| 173 | + */ |
|
| 160 | 174 | protected function addToMemberCtrl(&$name, $value, $typeCtrl, $separator=" ") { |
| 161 | 175 | if ($this->ctrl($name, $value, $typeCtrl) === true) { |
| 162 | 176 | if (is_array($typeCtrl)) { |
@@ -181,6 +195,9 @@ discard block |
||
| 181 | 195 | return $this->addToProperty($name, $value); |
| 182 | 196 | } |
| 183 | 197 | |
| 198 | + /** |
|
| 199 | + * @param string $name |
|
| 200 | + */ |
|
| 184 | 201 | public function addToPropertyCtrl($name, $value, $typeCtrl) { |
| 185 | 202 | return $this->addToPropertyUnique($name, $value, $typeCtrl); |
| 186 | 203 | } |
@@ -321,6 +338,9 @@ discard block |
||
| 321 | 338 | } |
| 322 | 339 | } |
| 323 | 340 | |
| 341 | + /** |
|
| 342 | + * @param string $operation |
|
| 343 | + */ |
|
| 324 | 344 | public function _ajaxOn($operation, $event, $url, $responseElement="", $parameters=array()) { |
| 325 | 345 | $params=array ("url" => $url,"responseElement" => $responseElement ); |
| 326 | 346 | $params=array_merge($params, $parameters); |
@@ -328,14 +348,23 @@ discard block |
||
| 328 | 348 | return $this; |
| 329 | 349 | } |
| 330 | 350 | |
| 351 | + /** |
|
| 352 | + * @param string $event |
|
| 353 | + */ |
|
| 331 | 354 | public function getOn($event, $url, $responseElement="", $parameters=array()) { |
| 332 | 355 | return $this->_ajaxOn("get", $event, $url, $responseElement, $parameters); |
| 333 | 356 | } |
| 334 | 357 | |
| 358 | + /** |
|
| 359 | + * @param string $url |
|
| 360 | + */ |
|
| 335 | 361 | public function getOnClick($url, $responseElement="", $parameters=array()) { |
| 336 | 362 | return $this->getOn("click", $url, $responseElement, $parameters); |
| 337 | 363 | } |
| 338 | 364 | |
| 365 | + /** |
|
| 366 | + * @param string $event |
|
| 367 | + */ |
|
| 339 | 368 | public function postOn($event, $url, $params="{}", $responseElement="", $parameters=array()) { |
| 340 | 369 | $parameters["params"]=$params; |
| 341 | 370 | return $this->_ajaxOn("post", $event, $url, $responseElement, $parameters); |
@@ -345,6 +374,9 @@ discard block |
||
| 345 | 374 | return $this->postOn("click", $url, $params, $responseElement, $parameters); |
| 346 | 375 | } |
| 347 | 376 | |
| 377 | + /** |
|
| 378 | + * @param string $event |
|
| 379 | + */ |
|
| 348 | 380 | public function postFormOn($event, $url, $form, $responseElement="", $parameters=array()) { |
| 349 | 381 | $parameters["form"]=$form; |
| 350 | 382 | return $this->_ajaxOn("postForm", $event, $url, $responseElement, $parameters); |
@@ -394,6 +426,9 @@ discard block |
||
| 394 | 426 | return $value; |
| 395 | 427 | } |
| 396 | 428 | |
| 429 | + /** |
|
| 430 | + * @param string $jqueryCall |
|
| 431 | + */ |
|
| 397 | 432 | public function jsDoJquery($jqueryCall, $param="") { |
| 398 | 433 | return "$('#" . $this->identifier . "')." . $jqueryCall . "(" . $this->_prep_value($param) . ");"; |
| 399 | 434 | } |