Completed
Push — master ( b92773...4d236d )
by Jean-Christophe
03:15
created
Ajax/semantic/widgets/base/FieldAsTrait.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -16,7 +16,14 @@
 block discarded – undo
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){
Please login to merge, or discard this patch.
Ajax/semantic/widgets/datatable/DataTable.php 1 patch
Doc Comments   +25 added lines, -3 removed lines patch added patch discarded remove patch
@@ -40,6 +40,10 @@  discard block
 block discarded – undo
40 40
 		parent::run($js);
41 41
 	}
42 42
 
43
+	/**
44
+	 * @param string $identifier
45
+	 * @param string $model
46
+	 */
43 47
 	public function __construct($identifier,$model,$modelInstance=NULL) {
44 48
 		parent::__construct($identifier, $model,$modelInstance);
45 49
 		$this->_instanceViewer=new InstanceViewer();
@@ -166,16 +170,26 @@  discard block
 block discarded – undo
166 170
 		return $this;
167 171
 	}
168 172
 
173
+	/**
174
+	 * @param \Closure $field
175
+	 */
169 176
 	public function addField($field){
170 177
 		$this->_instanceViewer->addField($field);
171 178
 		return $this;
172 179
 	}
173 180
 
181
+	/**
182
+	 * @param integer $index
183
+	 * @param \Closure $field
184
+	 */
174 185
 	public function insertField($index,$field){
175 186
 		$this->_instanceViewer->insertField($index, $field);
176 187
 		return $this;
177 188
 	}
178 189
 
190
+	/**
191
+	 * @param \Closure $field
192
+	 */
179 193
 	public function insertInField($index,$field){
180 194
 		$this->_instanceViewer->insertInField($index, $field);
181 195
 		return $this;
@@ -224,16 +238,16 @@  discard block
 block discarded – undo
224 238
 	/**
225 239
 	 * @param string $caption
226 240
 	 * @param callable $callback
227
-	 * @return callable
241
+	 * @return \Closure
228 242
 	 */
229 243
 	private function getFieldButtonCallable($caption,$callback=null){
230 244
 		return $this->getCallable($this->getFieldButton($caption),$callback);
231 245
 	}
232 246
 
233 247
 	/**
234
-	 * @param mixed $object
248
+	 * @param HtmlButton $object
235 249
 	 * @param callable $callback
236
-	 * @return callable
250
+	 * @return \Closure
237 251
 	 */
238 252
 	private function getCallable($object,$callback=null){
239 253
 		$result=function($instance) use($object,$callback){
@@ -292,12 +306,20 @@  discard block
 block discarded – undo
292 306
 		return $this;
293 307
 	}
294 308
 
309
+	/**
310
+	 * @param string $icon
311
+	 * @param string $class
312
+	 */
295 313
 	private function addDefaultButton($icon,$class=null,$callback=null){
296 314
 		$bt=$this->getDefaultButton($icon,$class);
297 315
 		$this->addField($this->getCallable($bt,$callback));
298 316
 		return $this;
299 317
 	}
300 318
 
319
+	/**
320
+	 * @param string $icon
321
+	 * @param string $class
322
+	 */
301 323
 	private function insertDefaultButtonIn($index,$icon,$class=null,$callback=null){
302 324
 		$bt=$this->getDefaultButton($icon,$class);
303 325
 		$this->insertInField($index,$this->getCallable($bt,$callback));
Please login to merge, or discard this patch.