@@ -108,6 +108,10 @@ discard block |
||
| 108 | 108 | return true; |
| 109 | 109 | } |
| 110 | 110 | |
| 111 | + /** |
|
| 112 | + * @param string $propertyName |
|
| 113 | + * @param string $value |
|
| 114 | + */ |
|
| 111 | 115 | protected function propertyContains($propertyName,$value){ |
| 112 | 116 | $values=$this->getProperty($propertyName); |
| 113 | 117 | if(isset($values)){ |
@@ -137,6 +141,10 @@ discard block |
||
| 137 | 141 | return $this; |
| 138 | 142 | } |
| 139 | 143 | |
| 144 | + /** |
|
| 145 | + * @param string $name |
|
| 146 | + * @param string[] $typeCtrl |
|
| 147 | + */ |
|
| 140 | 148 | protected function addToMemberCtrl(&$name, $value, $typeCtrl, $separator=" ") { |
| 141 | 149 | if ($this->ctrl($name, $value, $typeCtrl)===true) { |
| 142 | 150 | if (is_array($typeCtrl)) { |
@@ -161,6 +169,9 @@ discard block |
||
| 161 | 169 | return $this->addToProperty($name, $value); |
| 162 | 170 | } |
| 163 | 171 | |
| 172 | + /** |
|
| 173 | + * @param string $name |
|
| 174 | + */ |
|
| 164 | 175 | public function addToPropertyCtrl($name, $value, $typeCtrl) { |
| 165 | 176 | // if($this->ctrl($name, $value, $typeCtrl)===true){ |
| 166 | 177 | return $this->addToPropertyUnique($name, $value, $typeCtrl); |
@@ -228,6 +239,9 @@ discard block |
||
| 228 | 239 | |
| 229 | 240 | } |
| 230 | 241 | |
| 242 | + /** |
|
| 243 | + * @param string $before |
|
| 244 | + */ |
|
| 231 | 245 | public function wrap($before, $after="") { |
| 232 | 246 | if(isset($before)){ |
| 233 | 247 | $this->wrapBefore.=$before; |
@@ -296,6 +310,9 @@ discard block |
||
| 296 | 310 | } |
| 297 | 311 | } |
| 298 | 312 | |
| 313 | + /** |
|
| 314 | + * @param string $operation |
|
| 315 | + */ |
|
| 299 | 316 | public function _ajaxOn($operation, $event, $url, $responseElement="", $parameters=array()) { |
| 300 | 317 | $params=array ( |
| 301 | 318 | "url" => $url, |
@@ -306,14 +323,23 @@ discard block |
||
| 306 | 323 | return $this; |
| 307 | 324 | } |
| 308 | 325 | |
| 326 | + /** |
|
| 327 | + * @param string $event |
|
| 328 | + */ |
|
| 309 | 329 | public function getOn($event, $url, $responseElement="", $parameters=array()) { |
| 310 | 330 | return $this->_ajaxOn("get", $event, $url, $responseElement, $parameters); |
| 311 | 331 | } |
| 312 | 332 | |
| 333 | + /** |
|
| 334 | + * @param string $url |
|
| 335 | + */ |
|
| 313 | 336 | public function getOnClick($url, $responseElement="", $parameters=array()) { |
| 314 | 337 | return $this->getOn("click", $url, $responseElement, $parameters); |
| 315 | 338 | } |
| 316 | 339 | |
| 340 | + /** |
|
| 341 | + * @param string $event |
|
| 342 | + */ |
|
| 317 | 343 | public function postOn($event, $url, $params="{}", $responseElement="", $parameters=array()) { |
| 318 | 344 | $parameters ["params"]=$params; |
| 319 | 345 | return $this->_ajaxOn("post", $event, $url, $responseElement, $parameters); |
@@ -323,6 +349,9 @@ discard block |
||
| 323 | 349 | return $this->postOn("click", $url, $params, $responseElement, $parameters); |
| 324 | 350 | } |
| 325 | 351 | |
| 352 | + /** |
|
| 353 | + * @param string $event |
|
| 354 | + */ |
|
| 326 | 355 | public function postFormOn($event, $url, $form, $responseElement="", $parameters=array()) { |
| 327 | 356 | $parameters ["form"]=$form; |
| 328 | 357 | return $this->_ajaxOn("postForm", $event, $url, $responseElement, $parameters); |
@@ -372,6 +401,9 @@ discard block |
||
| 372 | 401 | return $value; |
| 373 | 402 | } |
| 374 | 403 | |
| 404 | + /** |
|
| 405 | + * @param string $jqueryCall |
|
| 406 | + */ |
|
| 375 | 407 | public function jsDoJquery($jqueryCall, $param=""){ |
| 376 | 408 | return "$('#".$this->identifier."').".$jqueryCall."(".$this->_prep_value($param).");"; |
| 377 | 409 | } |
@@ -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%"; |