@@ -47,6 +47,9 @@ |
||
47 | 47 | return $this->addComponent(new Accordion($this->js), $attachTo, $params); |
48 | 48 | } |
49 | 49 | |
50 | + /** |
|
51 | + * @param string $attachTo |
|
52 | + */ |
|
50 | 53 | public function sticky($attachTo=NULL, $params=NULL) { |
51 | 54 | return $this->addComponent(new Sticky($this->js), $attachTo, $params); |
52 | 55 | } |
@@ -22,6 +22,10 @@ discard block |
||
22 | 22 | private $_colSizing=true; |
23 | 23 | private $_implicitRows=false; |
24 | 24 | |
25 | + /** |
|
26 | + * @param string $identifier |
|
27 | + * @param integer $numCols |
|
28 | + */ |
|
25 | 29 | public function __construct( $identifier,$numRows=1,$numCols=NULL,$createCols=true,$implicitRows=false){ |
26 | 30 | parent::__construct( $identifier, "div","ui grid"); |
27 | 31 | $this->_implicitRows=$implicitRows; |
@@ -148,7 +152,7 @@ discard block |
||
148 | 152 | /** |
149 | 153 | * return the row at $index |
150 | 154 | * @param int $index |
151 | - * @return \Ajax\semantic\html\collections\HtmlGridRow |
|
155 | + * @return \Ajax\common\html\HtmlDoubleElement |
|
152 | 156 | */ |
153 | 157 | public function getRow($index){ |
154 | 158 | return $this->getItem($index); |
@@ -284,7 +288,7 @@ discard block |
||
284 | 288 | |
285 | 289 | /** |
286 | 290 | * stretch the row contents to take up the entire column height |
287 | - * @return \Ajax\semantic\html\content\HtmlGridRow |
|
291 | + * @return HtmlGrid |
|
288 | 292 | */ |
289 | 293 | public function setStretched(){ |
290 | 294 | return $this->addToProperty("class", "stretched"); |
@@ -10,6 +10,9 @@ discard block |
||
10 | 10 | class HtmlList extends HtmlSemCollection{ |
11 | 11 | protected $_hasCheckedList; |
12 | 12 | |
13 | + /** |
|
14 | + * @param string $identifier |
|
15 | + */ |
|
13 | 16 | public function __construct( $identifier, $items=array()){ |
14 | 17 | parent::__construct( $identifier, "div", "ui list"); |
15 | 18 | $this->addItems($items); |
@@ -27,6 +30,9 @@ discard block |
||
27 | 30 | return $item; |
28 | 31 | } |
29 | 32 | |
33 | + /** |
|
34 | + * @param integer $niveau |
|
35 | + */ |
|
30 | 36 | public function addHeader($niveau,$content){ |
31 | 37 | return $this->wrap(new HtmlHeader("header-".$this->identifier,$niveau,$content,"page")); |
32 | 38 | } |
@@ -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 | } |
@@ -31,7 +31,7 @@ discard block |
||
31 | 31 | /** |
32 | 32 | * Sets the menu type |
33 | 33 | * @param string $type one of text,item |
34 | - * @return \Ajax\semantic\html\collections\HtmlMenu |
|
34 | + * @return HtmlMenu |
|
35 | 35 | */ |
36 | 36 | public function setType($type=""){ |
37 | 37 | return $this->addToPropertyCtrl("class", $type, array("","item","text")); |
@@ -73,6 +73,7 @@ discard block |
||
73 | 73 | /** |
74 | 74 | * {@inheritDoc} |
75 | 75 | * @see \Ajax\common\html\HtmlCollection::insertItem() |
76 | + * @param HtmlIcon $item |
|
76 | 77 | */ |
77 | 78 | public function insertItem($item,$position=0){ |
78 | 79 | $item=parent::insertItem($this->getItemToInsert($item),$position); |
@@ -10,6 +10,10 @@ discard block |
||
10 | 10 | |
11 | 11 | class HtmlLabel extends HtmlSemDoubleElement { |
12 | 12 | use LabeledIconTrait; |
13 | + |
|
14 | + /** |
|
15 | + * @param string $icon |
|
16 | + */ |
|
13 | 17 | public function __construct($identifier,$caption="",$icon=NULL,$tagName="div") { |
14 | 18 | parent::__construct($identifier,$tagName,"ui label"); |
15 | 19 | $this->content=$caption; |
@@ -18,7 +22,6 @@ discard block |
||
18 | 22 | } |
19 | 23 | |
20 | 24 | /** |
21 | - * @param string $side |
|
22 | 25 | * @return \Ajax\semantic\html\elements\HtmlLabel |
23 | 26 | */ |
24 | 27 | public function setPointing($value=Direction::NONE){ |
@@ -84,6 +84,9 @@ discard block |
||
84 | 84 | return $this; |
85 | 85 | } |
86 | 86 | |
87 | + /** |
|
88 | + * @param integer $index |
|
89 | + */ |
|
87 | 90 | public function removeItem($index){ |
88 | 91 | return array_splice($this->content, $index, 1); |
89 | 92 | } |
@@ -99,6 +102,9 @@ discard block |
||
99 | 102 | return $this->addItem($function($object)); |
100 | 103 | } |
101 | 104 | |
105 | + /** |
|
106 | + * @param \Closure $callBack |
|
107 | + */ |
|
102 | 108 | public function apply($callBack){ |
103 | 109 | foreach ($this->content as $item){ |
104 | 110 | $callBack($item); |
@@ -70,7 +70,7 @@ |
||
70 | 70 | |
71 | 71 | /** |
72 | 72 | * @param int $index |
73 | - * @return \Ajax\semantic\html\content\HtmlTR |
|
73 | + * @return \Ajax\common\html\HtmlDoubleElement |
|
74 | 74 | */ |
75 | 75 | public function getRow($index){ |
76 | 76 | return $this->getItem($index); |
@@ -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%"; |