@@ -109,6 +109,10 @@ discard block |
||
109 | 109 | return true; |
110 | 110 | } |
111 | 111 | |
112 | + /** |
|
113 | + * @param string $propertyName |
|
114 | + * @param string $value |
|
115 | + */ |
|
112 | 116 | protected function propertyContains($propertyName,$value){ |
113 | 117 | $values=$this->getProperty($propertyName); |
114 | 118 | if(isset($values)){ |
@@ -138,22 +142,36 @@ discard block |
||
138 | 142 | return $this; |
139 | 143 | } |
140 | 144 | |
145 | + /** |
|
146 | + * @param string $name |
|
147 | + * @param string $value |
|
148 | + */ |
|
141 | 149 | protected function removePropertyValue($name,$value){ |
142 | 150 | $this->properties[$name]=\str_replace($value, "", $this->properties[$name]); |
143 | 151 | return $this; |
144 | 152 | } |
145 | 153 | |
154 | + /** |
|
155 | + * @param string $name |
|
156 | + */ |
|
146 | 157 | protected function removePropertyValues($name,$values){ |
147 | 158 | $this->removeOldValues($this->properties[$name], $values); |
148 | 159 | return $this; |
149 | 160 | } |
150 | 161 | |
162 | + /** |
|
163 | + * @param string $name |
|
164 | + */ |
|
151 | 165 | protected function removeProperty($name){ |
152 | 166 | if(\array_key_exists($name, $this->properties)) |
153 | 167 | unset($this->properties[$name]); |
154 | 168 | return $this; |
155 | 169 | } |
156 | 170 | |
171 | + /** |
|
172 | + * @param string $name |
|
173 | + * @param string[] $typeCtrl |
|
174 | + */ |
|
157 | 175 | protected function addToMemberCtrl(&$name, $value, $typeCtrl, $separator=" ") { |
158 | 176 | if ($this->ctrl($name, $value, $typeCtrl)===true) { |
159 | 177 | if (is_array($typeCtrl)) { |
@@ -178,6 +196,9 @@ discard block |
||
178 | 196 | return $this->addToProperty($name, $value); |
179 | 197 | } |
180 | 198 | |
199 | + /** |
|
200 | + * @param string $name |
|
201 | + */ |
|
181 | 202 | public function addToPropertyCtrl($name, $value, $typeCtrl) { |
182 | 203 | // if($this->ctrl($name, $value, $typeCtrl)===true){ |
183 | 204 | return $this->addToPropertyUnique($name, $value, $typeCtrl); |
@@ -317,6 +338,9 @@ discard block |
||
317 | 338 | } |
318 | 339 | } |
319 | 340 | |
341 | + /** |
|
342 | + * @param string $operation |
|
343 | + */ |
|
320 | 344 | public function _ajaxOn($operation, $event, $url, $responseElement="", $parameters=array()) { |
321 | 345 | $params=array ( |
322 | 346 | "url" => $url, |
@@ -327,14 +351,23 @@ discard block |
||
327 | 351 | return $this; |
328 | 352 | } |
329 | 353 | |
354 | + /** |
|
355 | + * @param string $event |
|
356 | + */ |
|
330 | 357 | public function getOn($event, $url, $responseElement="", $parameters=array()) { |
331 | 358 | return $this->_ajaxOn("get", $event, $url, $responseElement, $parameters); |
332 | 359 | } |
333 | 360 | |
361 | + /** |
|
362 | + * @param string $url |
|
363 | + */ |
|
334 | 364 | public function getOnClick($url, $responseElement="", $parameters=array()) { |
335 | 365 | return $this->getOn("click", $url, $responseElement, $parameters); |
336 | 366 | } |
337 | 367 | |
368 | + /** |
|
369 | + * @param string $event |
|
370 | + */ |
|
338 | 371 | public function postOn($event, $url, $params="{}", $responseElement="", $parameters=array()) { |
339 | 372 | $parameters ["params"]=$params; |
340 | 373 | return $this->_ajaxOn("post", $event, $url, $responseElement, $parameters); |
@@ -344,6 +377,9 @@ discard block |
||
344 | 377 | return $this->postOn("click", $url, $params, $responseElement, $parameters); |
345 | 378 | } |
346 | 379 | |
380 | + /** |
|
381 | + * @param string $event |
|
382 | + */ |
|
347 | 383 | public function postFormOn($event, $url, $form, $responseElement="", $parameters=array()) { |
348 | 384 | $parameters ["form"]=$form; |
349 | 385 | return $this->_ajaxOn("postForm", $event, $url, $responseElement, $parameters); |
@@ -393,6 +429,9 @@ discard block |
||
393 | 429 | return $value; |
394 | 430 | } |
395 | 431 | |
432 | + /** |
|
433 | + * @param string $jqueryCall |
|
434 | + */ |
|
396 | 435 | public function jsDoJquery($jqueryCall, $param=""){ |
397 | 436 | return "$('#".$this->identifier."').".$jqueryCall."(".$this->_prep_value($param).");"; |
398 | 437 | } |
@@ -10,6 +10,11 @@ discard block |
||
10 | 10 | |
11 | 11 | class HtmlLabel extends HtmlSemDoubleElement { |
12 | 12 | use LabeledIconTrait; |
13 | + |
|
14 | + /** |
|
15 | + * @param string $identifier |
|
16 | + * @param string $icon |
|
17 | + */ |
|
13 | 18 | public function __construct($identifier,$caption="",$icon=NULL,$tagName="div") { |
14 | 19 | parent::__construct($identifier,$tagName,"ui label"); |
15 | 20 | $this->content=$caption; |
@@ -18,7 +23,6 @@ discard block |
||
18 | 23 | } |
19 | 24 | |
20 | 25 | /** |
21 | - * @param string $side |
|
22 | 26 | * @return \Ajax\semantic\html\elements\HtmlLabel |
23 | 27 | */ |
24 | 28 | public function setPointing($value=Direction::NONE){ |