@@ -21,6 +21,10 @@ discard block |
||
| 21 | 21 | private $_footer; |
| 22 | 22 | private $_afterCompileEvents; |
| 23 | 23 | |
| 24 | + /** |
|
| 25 | + * @param integer $rowCount |
|
| 26 | + * @param integer $colCount |
|
| 27 | + */ |
|
| 24 | 28 | public function __construct($identifier, $rowCount, $colCount) { |
| 25 | 29 | parent::__construct($identifier, "table", "ui table"); |
| 26 | 30 | $this->content=array (); |
@@ -102,7 +106,7 @@ discard block |
||
| 102 | 106 | /** |
| 103 | 107 | * Retuns the row at $rowIndex |
| 104 | 108 | * @param int $rowIndex |
| 105 | - * @return \Ajax\semantic\html\content\HtmlTR |
|
| 109 | + * @return \Ajax\common\html\HtmlDoubleElement |
|
| 106 | 110 | */ |
| 107 | 111 | public function getRow($rowIndex) { |
| 108 | 112 | return $this->getBody()->getRow($rowIndex); |
@@ -178,6 +182,9 @@ discard block |
||
| 178 | 182 | return $this->colAlign($colIndex, "colLeft"); |
| 179 | 183 | } |
| 180 | 184 | |
| 185 | + /** |
|
| 186 | + * @param string $function |
|
| 187 | + */ |
|
| 181 | 188 | private function colAlign($colIndex, $function) { |
| 182 | 189 | if (\is_array($colIndex)) { |
| 183 | 190 | foreach ( $colIndex as $cIndex ) { |
@@ -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); |
@@ -83,16 +83,26 @@ |
||
| 83 | 83 | return $this; |
| 84 | 84 | } |
| 85 | 85 | |
| 86 | + /** |
|
| 87 | + * @param \Closure $field |
|
| 88 | + */ |
|
| 86 | 89 | public function addField($field){ |
| 87 | 90 | $this->_instanceViewer->addField($field); |
| 88 | 91 | return $this; |
| 89 | 92 | } |
| 90 | 93 | |
| 94 | + /** |
|
| 95 | + * @param integer $index |
|
| 96 | + * @param \Closure $field |
|
| 97 | + */ |
|
| 91 | 98 | public function insertField($index,$field){ |
| 92 | 99 | $this->_instanceViewer->insertField($index, $field); |
| 93 | 100 | return $this; |
| 94 | 101 | } |
| 95 | 102 | |
| 103 | + /** |
|
| 104 | + * @param \Closure $field |
|
| 105 | + */ |
|
| 96 | 106 | public function insertInField($index,$field){ |
| 97 | 107 | $this->_instanceViewer->insertInField($index, $field); |
| 98 | 108 | return $this; |
@@ -39,6 +39,10 @@ discard block |
||
| 39 | 39 | parent::run($js); |
| 40 | 40 | } |
| 41 | 41 | |
| 42 | + /** |
|
| 43 | + * @param string $identifier |
|
| 44 | + * @param string $model |
|
| 45 | + */ |
|
| 42 | 46 | public function __construct($identifier,$model,$modelInstance=NULL) { |
| 43 | 47 | parent::__construct($identifier, $model,$modelInstance); |
| 44 | 48 | $this->_instanceViewer=new InstanceViewer(); |
@@ -141,6 +145,9 @@ discard block |
||
| 141 | 145 | return $this; |
| 142 | 146 | } |
| 143 | 147 | |
| 148 | + /** |
|
| 149 | + * @param PositionInTable $part |
|
| 150 | + */ |
|
| 144 | 151 | private function addToolbarRow($part,$table,$captions){ |
| 145 | 152 | $row=$table->getPart($part)->addRow(\sizeof($captions)); |
| 146 | 153 | $row->mergeCol(); |
@@ -180,16 +187,17 @@ discard block |
||
| 180 | 187 | /** |
| 181 | 188 | * @param string $caption |
| 182 | 189 | * @param callable $callback |
| 183 | - * @return callable |
|
| 190 | + * @return \Closure |
|
| 184 | 191 | */ |
| 185 | 192 | private function getFieldButtonCallable($caption,$callback=null){ |
| 186 | 193 | return $this->getCallable("getFieldButton",[$caption],$callback); |
| 187 | 194 | } |
| 188 | 195 | |
| 189 | 196 | /** |
| 190 | - * @param mixed $object |
|
| 191 | 197 | * @param callable $callback |
| 192 | - * @return callable |
|
| 198 | + * @param string $thisCallback |
|
| 199 | + * @param string[] $parameters |
|
| 200 | + * @return \Closure |
|
| 193 | 201 | */ |
| 194 | 202 | private function getCallable($thisCallback,$parameters,$callback=null){ |
| 195 | 203 | $result=function($instance) use($thisCallback,$parameters,$callback){ |
@@ -250,11 +258,19 @@ discard block |
||
| 250 | 258 | return $this; |
| 251 | 259 | } |
| 252 | 260 | |
| 261 | + /** |
|
| 262 | + * @param string $icon |
|
| 263 | + * @param string $class |
|
| 264 | + */ |
|
| 253 | 265 | private function addDefaultButton($icon,$class=null,$callback=null){ |
| 254 | 266 | $this->addField($this->getCallable("getDefaultButton",[$icon,$class],$callback)); |
| 255 | 267 | return $this; |
| 256 | 268 | } |
| 257 | 269 | |
| 270 | + /** |
|
| 271 | + * @param string $icon |
|
| 272 | + * @param string $class |
|
| 273 | + */ |
|
| 258 | 274 | private function insertDefaultButtonIn($index,$icon,$class=null,$callback=null){ |
| 259 | 275 | $this->insertInField($index,$this->getCallable("getDefaultButton",[$icon,$class],$callback)); |
| 260 | 276 | return $this; |