@@ -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); |
@@ -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%"; |
@@ -4,6 +4,9 @@ |
||
4 | 4 | |
5 | 5 | trait HtmlLinkTrait { |
6 | 6 | |
7 | + /** |
|
8 | + * @param string $value |
|
9 | + */ |
|
7 | 10 | public function setHref($value) { |
8 | 11 | $this->setProperty("href", $value); |
9 | 12 | } |
@@ -23,8 +23,6 @@ |
||
23 | 23 | |
24 | 24 | /** |
25 | 25 | * @param string $identifier |
26 | - * @param int $rowCount |
|
27 | - * @param int $colCount |
|
28 | 26 | */ |
29 | 27 | public function htmlRating($identifier, $value, $max,$icon=""){ |
30 | 28 | return $this->addHtmlComponent(new HtmlRating($identifier, $value, $max,$icon)); |
@@ -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) { |
@@ -11,12 +11,24 @@ |
||
11 | 11 | protected $_states=[ ]; |
12 | 12 | protected $_baseClass; |
13 | 13 | |
14 | + /** |
|
15 | + * @param string $name |
|
16 | + */ |
|
14 | 17 | protected abstract function setPropertyCtrl($name, $value, $typeCtrl); |
15 | 18 | |
19 | + /** |
|
20 | + * @param string $name |
|
21 | + */ |
|
16 | 22 | protected abstract function addToPropertyCtrl($name, $value, $typeCtrl); |
17 | 23 | |
24 | + /** |
|
25 | + * @param string $name |
|
26 | + */ |
|
18 | 27 | protected abstract function addToPropertyCtrlCheck($name, $value, $typeCtrl); |
19 | 28 | |
29 | + /** |
|
30 | + * @param string $name |
|
31 | + */ |
|
20 | 32 | public abstract function addToProperty($name, $value, $separator=" "); |
21 | 33 | |
22 | 34 | public function addVariation($variation) { |
@@ -37,7 +37,7 @@ discard block |
||
37 | 37 | /** |
38 | 38 | * Set the button value |
39 | 39 | * @param string $value |
40 | - * @return \Ajax\semantic\html\HtmlButton |
|
40 | + * @return HtmlButton |
|
41 | 41 | */ |
42 | 42 | public function setValue($value) { |
43 | 43 | $this->content=$value; |
@@ -46,8 +46,8 @@ discard block |
||
46 | 46 | |
47 | 47 | /** |
48 | 48 | * define the button style |
49 | - * @param string|int $cssStyle |
|
50 | - * @return \Ajax\semantic\html\HtmlButton default : "" |
|
49 | + * @param string $cssStyle |
|
50 | + * @return HtmlButton default : "" |
|
51 | 51 | */ |
52 | 52 | public function setStyle($cssStyle) { |
53 | 53 | return $this->addToProperty("class", $cssStyle); |
@@ -7,6 +7,10 @@ |
||
7 | 7 | trait IconTrait { |
8 | 8 | private $_hasIcon=false; |
9 | 9 | |
10 | + /** |
|
11 | + * @param string $name |
|
12 | + * @param string $value |
|
13 | + */ |
|
10 | 14 | protected abstract function addToPropertyCtrl($name, $value, $typeCtrl); |
11 | 15 | public abstract function addContent($content,$before=false); |
12 | 16 |
@@ -17,6 +17,11 @@ discard block |
||
17 | 17 | class HtmlTable extends HtmlSemDoubleElement { |
18 | 18 | private $_colCount; |
19 | 19 | |
20 | + /** |
|
21 | + * @param string $identifier |
|
22 | + * @param integer $rowCount |
|
23 | + * @param integer $colCount |
|
24 | + */ |
|
20 | 25 | public function __construct($identifier, $rowCount, $colCount) { |
21 | 26 | parent::__construct($identifier, "table", "ui table"); |
22 | 27 | $this->content=array (); |
@@ -96,7 +101,7 @@ discard block |
||
96 | 101 | /** |
97 | 102 | * Retuns the row at $rowIndex |
98 | 103 | * @param int $rowIndex |
99 | - * @return \Ajax\semantic\html\content\HtmlTR |
|
104 | + * @return \Ajax\common\html\HtmlDoubleElement |
|
100 | 105 | */ |
101 | 106 | public function getRow($rowIndex) { |
102 | 107 | return $this->getBody()->getRow($rowIndex); |
@@ -172,6 +177,9 @@ discard block |
||
172 | 177 | return $this->colAlign($colIndex, "colLeft"); |
173 | 178 | } |
174 | 179 | |
180 | + /** |
|
181 | + * @param string $function |
|
182 | + */ |
|
175 | 183 | private function colAlign($colIndex, $function) { |
176 | 184 | if (\is_array($colIndex)) { |
177 | 185 | foreach ( $colIndex as $cIndex ) { |