@@ -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); |
@@ -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%"; |
@@ -10,8 +10,9 @@ discard block |
||
10 | 10 | |
11 | 11 | public function __construct( $identifier,$tagName="tbody",$rowCount=NULL,$colCount=NULL){ |
12 | 12 | parent::__construct( $identifier, $tagName, ""); |
13 | - if(isset($rowCount) && isset($colCount)) |
|
14 | - $this->setRowCount($rowCount, $colCount); |
|
13 | + if(isset($rowCount) && isset($colCount)) { |
|
14 | + $this->setRowCount($rowCount, $colCount); |
|
15 | + } |
|
15 | 16 | } |
16 | 17 | |
17 | 18 | public function setRowCount($rowCount,$colCount){ |
@@ -79,8 +80,9 @@ discard block |
||
79 | 80 | |
80 | 81 | public function getColCount(){ |
81 | 82 | $result=0; |
82 | - if($this->count()>0) |
|
83 | - $result=$this->getItem(0)->getColCount(); |
|
83 | + if($this->count()>0) { |
|
84 | + $result=$this->getItem(0)->getColCount(); |
|
85 | + } |
|
84 | 86 | return $result; |
85 | 87 | } |
86 | 88 | |
@@ -90,7 +92,7 @@ discard block |
||
90 | 92 | if(isset($row)===true){ |
91 | 93 | $row->delete($colIndex); |
92 | 94 | } |
93 | - }else{ |
|
95 | + } else{ |
|
94 | 96 | $this->removeItem($rowIndex); |
95 | 97 | } |
96 | 98 | return $this; |
@@ -10,6 +10,9 @@ discard block |
||
10 | 10 | private $_container; |
11 | 11 | private $_row; |
12 | 12 | |
13 | + /** |
|
14 | + * @param string $identifier |
|
15 | + */ |
|
13 | 16 | public function __construct( $identifier, $colCount){ |
14 | 17 | parent::__construct( $identifier, "tr", ""); |
15 | 18 | } |
@@ -35,6 +38,9 @@ discard block |
||
35 | 38 | $this->_tdTagName=$tagName; |
36 | 39 | } |
37 | 40 | |
41 | + /** |
|
42 | + * @param HtmlTableContent $container |
|
43 | + */ |
|
38 | 44 | public function setContainer($container,$row){ |
39 | 45 | $this->_container=$container; |
40 | 46 | $this->_row=$row; |
@@ -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){ |