Completed
Push — master ( 5f2e51...f2779d )
by Jean-Christophe
03:46
created
Ajax/semantic/html/collections/HtmlTable.php 1 patch
Doc Comments   +8 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,6 +21,10 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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 ) {
Please login to merge, or discard this patch.
Ajax/semantic/widgets/datatable/DataTable.php 1 patch
Doc Comments   +29 added lines, -3 removed lines patch added patch discarded remove patch
@@ -41,6 +41,10 @@  discard block
 block discarded – undo
41 41
 		parent::run($js);
42 42
 	}
43 43
 
44
+	/**
45
+	 * @param string $identifier
46
+	 * @param string $model
47
+	 */
44 48
 	public function __construct($identifier,$model,$modelInstance=NULL) {
45 49
 		parent::__construct($identifier, $model,$modelInstance);
46 50
 		$this->_instanceViewer=new InstanceViewerCaption();
@@ -143,6 +147,9 @@  discard block
 block discarded – undo
143 147
 		return $this;
144 148
 	}
145 149
 
150
+	/**
151
+	 * @param PositionInTable $part
152
+	 */
146 153
 	private function addToolbarRow($part,$table,$captions){
147 154
 		$row=$table->getPart($part)->addRow(\sizeof($captions));
148 155
 		$row->mergeCol();
@@ -168,16 +175,26 @@  discard block
 block discarded – undo
168 175
 		return $this;
169 176
 	}
170 177
 
178
+	/**
179
+	 * @param \Closure $field
180
+	 */
171 181
 	public function addField($field){
172 182
 		$this->_instanceViewer->addField($field);
173 183
 		return $this;
174 184
 	}
175 185
 
186
+	/**
187
+	 * @param integer $index
188
+	 * @param \Closure $field
189
+	 */
176 190
 	public function insertField($index,$field){
177 191
 		$this->_instanceViewer->insertField($index, $field);
178 192
 		return $this;
179 193
 	}
180 194
 
195
+	/**
196
+	 * @param \Closure $field
197
+	 */
181 198
 	public function insertInField($index,$field){
182 199
 		$this->_instanceViewer->insertInField($index, $field);
183 200
 		return $this;
@@ -226,16 +243,17 @@  discard block
 block discarded – undo
226 243
 	/**
227 244
 	 * @param string $caption
228 245
 	 * @param callable $callback
229
-	 * @return callable
246
+	 * @return \Closure
230 247
 	 */
231 248
 	private function getFieldButtonCallable($caption,$callback=null){
232 249
 		return $this->getCallable("getFieldButton",[$caption],$callback);
233 250
 	}
234 251
 
235 252
 	/**
236
-	 * @param mixed $object
237 253
 	 * @param callable $callback
238
-	 * @return callable
254
+	 * @param string $thisCallback
255
+	 * @param string[] $parameters
256
+	 * @return \Closure
239 257
 	 */
240 258
 	private function getCallable($thisCallback,$parameters,$callback=null){
241 259
 		$result=function($instance) use($thisCallback,$parameters,$callback){
@@ -296,11 +314,19 @@  discard block
 block discarded – undo
296 314
 		return $this;
297 315
 	}
298 316
 
317
+	/**
318
+	 * @param string $icon
319
+	 * @param string $class
320
+	 */
299 321
 	private function addDefaultButton($icon,$class=null,$callback=null){
300 322
 		$this->addField($this->getCallable("getDefaultButton",[$icon,$class],$callback));
301 323
 		return $this;
302 324
 	}
303 325
 
326
+	/**
327
+	 * @param string $icon
328
+	 * @param string $class
329
+	 */
304 330
 	private function insertDefaultButtonIn($index,$icon,$class=null,$callback=null){
305 331
 		$this->insertInField($index,$this->getCallable("getDefaultButton",[$icon,$class],$callback));
306 332
 		return $this;
Please login to merge, or discard this patch.