@@ -16,14 +16,29 @@ |
||
16 | 16 | protected $_states=[ ]; |
17 | 17 | protected $_baseClass; |
18 | 18 | |
19 | + /** |
|
20 | + * @param string $name |
|
21 | + */ |
|
19 | 22 | protected abstract function setPropertyCtrl($name, $value, $typeCtrl); |
20 | 23 | |
24 | + /** |
|
25 | + * @param string $name |
|
26 | + */ |
|
21 | 27 | protected abstract function addToPropertyCtrl($name, $value, $typeCtrl); |
22 | 28 | |
29 | + /** |
|
30 | + * @param string $name |
|
31 | + */ |
|
23 | 32 | protected abstract function addToPropertyCtrlCheck($name, $value, $typeCtrl); |
24 | 33 | |
34 | + /** |
|
35 | + * @param string $name |
|
36 | + */ |
|
25 | 37 | public abstract function addToProperty($name, $value, $separator=" "); |
26 | 38 | |
39 | + /** |
|
40 | + * @param string $name |
|
41 | + */ |
|
27 | 42 | public abstract function setProperty($name, $value); |
28 | 43 | |
29 | 44 | public function addVariation($variation) { |
@@ -25,7 +25,7 @@ discard block |
||
25 | 25 | /** |
26 | 26 | * @param string $placeholder |
27 | 27 | * @param string $icon |
28 | - * @return \Ajax\semantic\html\content\HtmlDropdownItem|\Ajax\semantic\html\content\HtmlMenuItem |
|
28 | + * @return MenuItemTrait |
|
29 | 29 | */ |
30 | 30 | public function asSearchInput($placeholder=NULL,$icon=NULL){ |
31 | 31 | $this->setClass("ui icon search input"); |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | } |
40 | 40 | |
41 | 41 | /** |
42 | - * @return \Ajax\semantic\html\content\HtmlDropdownItem|\Ajax\semantic\html\content\HtmlMenuItem |
|
42 | + * @return MenuItemTrait |
|
43 | 43 | */ |
44 | 44 | public function asDivider(){ |
45 | 45 | $this->content=NULL; |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | /** |
52 | 52 | * @param string $caption |
53 | 53 | * @param string $icon |
54 | - * @return \Ajax\semantic\html\content\HtmlDropdownItem|\Ajax\semantic\html\content\HtmlMenuItem |
|
54 | + * @return MenuItemTrait |
|
55 | 55 | */ |
56 | 56 | public function asHeader($caption=NULL,$icon=NULL){ |
57 | 57 | $this->setClass("header"); |
@@ -12,6 +12,10 @@ discard block |
||
12 | 12 | protected $variation; |
13 | 13 | protected $params; |
14 | 14 | protected $semElement; |
15 | + |
|
16 | + /** |
|
17 | + * @param HtmlSemDoubleElement $semElement |
|
18 | + */ |
|
15 | 19 | public function __construct($semElement,$title="",$content="",$variation=NULL,$params=array()){ |
16 | 20 | $this->semElement=$semElement; |
17 | 21 | $this->title=$title; |
@@ -19,6 +23,9 @@ discard block |
||
19 | 23 | $this->setAttributes($variation,$params); |
20 | 24 | } |
21 | 25 | |
26 | + /** |
|
27 | + * @param string $html |
|
28 | + */ |
|
22 | 29 | public function setHtml($html) { |
23 | 30 | $this->html= $html; |
24 | 31 | return $this; |
@@ -27,6 +27,9 @@ discard block |
||
27 | 27 | return $result; |
28 | 28 | } |
29 | 29 | |
30 | + /** |
|
31 | + * @param string $key |
|
32 | + */ |
|
30 | 33 | private function addElementInContent($key, $element) { |
31 | 34 | if (\array_key_exists($key, $this->content) === false) { |
32 | 35 | $this->content[$key]=array (); |
@@ -35,6 +38,9 @@ discard block |
||
35 | 38 | return $element; |
36 | 39 | } |
37 | 40 | |
41 | + /** |
|
42 | + * @param string $part |
|
43 | + */ |
|
38 | 44 | private function getPart($part, $index=NULL) { |
39 | 45 | if (\array_key_exists($part, $this->content)) { |
40 | 46 | if (isset($index)) |
@@ -59,6 +65,10 @@ discard block |
||
59 | 65 | return $this->addElementInContent("content", $image); |
60 | 66 | } |
61 | 67 | |
68 | + /** |
|
69 | + * @param HtmlImage $visibleContent |
|
70 | + * @param HtmlImage $hiddenContent |
|
71 | + */ |
|
62 | 72 | public function addReveal($visibleContent, $hiddenContent=NULL, $type=RevealType::FADE, $attributeType=NULL) { |
63 | 73 | $reveal=$visibleContent; |
64 | 74 | if (!$visibleContent instanceof HtmlReveal) { |
@@ -13,6 +13,9 @@ |
||
13 | 13 | */ |
14 | 14 | class HtmlIconGroups extends HtmlSemCollection { |
15 | 15 | |
16 | + /** |
|
17 | + * @param string $identifier |
|
18 | + */ |
|
16 | 19 | public function __construct($identifier, $icons=array(), $size="") { |
17 | 20 | parent::__construct($identifier, "i", "icons"); |
18 | 21 | $this->addItems($icons); |
@@ -6,6 +6,9 @@ |
||
6 | 6 | |
7 | 7 | trait CheckboxTrait { |
8 | 8 | |
9 | + /** |
|
10 | + * @param string $name |
|
11 | + */ |
|
9 | 12 | public abstract function addToPropertyCtrl($name, $value, $typeCtrl); |
10 | 13 | |
11 | 14 | public function setType($checkboxType) { |
@@ -69,6 +69,9 @@ discard block |
||
69 | 69 | return $tr; |
70 | 70 | } |
71 | 71 | |
72 | + /** |
|
73 | + * @param integer $value |
|
74 | + */ |
|
72 | 75 | public function newRow($value) { |
73 | 76 | return $this->createItem($value); |
74 | 77 | } |
@@ -102,7 +105,7 @@ discard block |
||
102 | 105 | /** |
103 | 106 | * |
104 | 107 | * @param int $index |
105 | - * @return \Ajax\semantic\html\content\HtmlTR |
|
108 | + * @return \Ajax\common\html\HtmlDoubleElement |
|
106 | 109 | */ |
107 | 110 | public function getRow($index) { |
108 | 111 | return $this->getItem($index); |
@@ -146,6 +149,9 @@ discard block |
||
146 | 149 | return $this; |
147 | 150 | } |
148 | 151 | |
152 | + /** |
|
153 | + * @param integer $colIndex |
|
154 | + */ |
|
149 | 155 | public function setColValues($colIndex, $values=array()) { |
150 | 156 | $count=$this->count(); |
151 | 157 | if (\is_array($values) === false) { |
@@ -166,6 +172,9 @@ discard block |
||
166 | 172 | return $this; |
167 | 173 | } |
168 | 174 | |
175 | + /** |
|
176 | + * @param integer $rowIndex |
|
177 | + */ |
|
169 | 178 | public function setRowValues($rowIndex, $values=array()) { |
170 | 179 | $count=$this->count(); |
171 | 180 | if (\is_array($values) === false) { |
@@ -175,6 +184,9 @@ discard block |
||
175 | 184 | return $this; |
176 | 185 | } |
177 | 186 | |
187 | + /** |
|
188 | + * @param string $function |
|
189 | + */ |
|
178 | 190 | private function colAlign($colIndex, $function) { |
179 | 191 | $count=$this->count(); |
180 | 192 | for($i=0; $i < $count; $i++) { |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | /** |
50 | 50 | * Insert an item at a position |
51 | 51 | * @param mixed $item |
52 | - * @param number $position |
|
52 | + * @param integer $position |
|
53 | 53 | * @return \Ajax\semantic\html\content\HtmlDropdownItem|unknown |
54 | 54 | */ |
55 | 55 | public function insertItem($item,$position=0){ |
@@ -240,6 +240,9 @@ discard block |
||
240 | 240 | return $this->addToPropertyCtrl("class", $value." pointing",Direction::getConstantValues("pointing")); |
241 | 241 | } |
242 | 242 | |
243 | + /** |
|
244 | + * @param string $value |
|
245 | + */ |
|
243 | 246 | public function setValue($value){ |
244 | 247 | $this->value=$value; |
245 | 248 | return $this; |
@@ -274,6 +277,9 @@ discard block |
||
274 | 277 | return $this->addToPropertyCtrl("class", "compact", array("compact")); |
275 | 278 | } |
276 | 279 | |
280 | + /** |
|
281 | + * @param string $action |
|
282 | + */ |
|
277 | 283 | public function setAction($action){ |
278 | 284 | $this->_params["action"]=$action; |
279 | 285 | } |
@@ -16,7 +16,14 @@ |
||
16 | 16 | |
17 | 17 | trait FieldAsTrait{ |
18 | 18 | |
19 | + /** |
|
20 | + * @param string $prefix |
|
21 | + */ |
|
19 | 22 | protected abstract function _getFieldIdentifier($prefix); |
23 | + |
|
24 | + /** |
|
25 | + * @param \Closure $callback |
|
26 | + */ |
|
20 | 27 | public abstract function setValueFunction($index,$callback); |
21 | 28 | |
22 | 29 | public function fieldAsImage($index,$size=Size::SMALL,$circular=false){ |