Completed
Push — master ( 399f52...f857c1 )
by Jean-Christophe
02:58
created
Ajax/semantic/widgets/dataform/FormFieldAsTrait.php 1 patch
Doc Comments   +11 added lines patch added patch discarded remove patch
@@ -17,7 +17,14 @@  discard block
 block discarded – undo
17 17
 
18 18
 trait FormFieldAsTrait{
19 19
 
20
+	/**
21
+	 * @param string $prefix
22
+	 */
20 23
 	abstract protected function _getFieldIdentifier($prefix);
24
+
25
+	/**
26
+	 * @param \Closure $callback
27
+	 */
21 28
 	abstract public function setValueFunction($index,$callback);
22 29
 	abstract protected function _applyAttributes($element,&$attributes,$index);
23 30
 	abstract public function getIdentifier();
@@ -39,6 +46,10 @@  discard block
 block discarded – undo
39 46
 		}
40 47
 	}
41 48
 
49
+	/**
50
+	 * @param \Closure $elementCallback
51
+	 * @param string $identifier
52
+	 */
42 53
 	protected function _fieldAs($elementCallback,$index,$attributes=NULL,$identifier=null){
43 54
 		$this->setValueFunction($index,function($value) use ($index,&$attributes,$elementCallback){
44 55
 			$caption=$this->_instanceViewer->getCaption($index);
Please login to merge, or discard this patch.
Ajax/semantic/widgets/datatable/DataTable.php 1 patch
Doc Comments   +18 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->_init(new InstanceViewer($identifier), "table", new HtmlTable($identifier, 0,0), false);
@@ -154,6 +158,9 @@  discard block
 block discarded – undo
154 158
 		return $this;
155 159
 	}
156 160
 
161
+	/**
162
+	 * @param PositionInTable $part
163
+	 */
157 164
 	private function addToolbarRow($part,$table,$captions){
158 165
 		$hasPart=$table->hasPart($part);
159 166
 		if($hasPart){
@@ -198,7 +205,7 @@  discard block
 block discarded – undo
198 205
 	/**
199 206
 	 * @param string $caption
200 207
 	 * @param callable $callback
201
-	 * @return callable
208
+	 * @return \Closure
202 209
 	 */
203 210
 	private function getFieldButtonCallable($caption,$callback=null){
204 211
 		return $this->getCallable("getFieldButton",[$caption],$callback);
@@ -206,9 +213,9 @@  discard block
 block discarded – undo
206 213
 
207 214
 	/**
208 215
 	 * @param callable $thisCallback
209
-	 * @param array $parameters
216
+	 * @param string[] $parameters
210 217
 	 * @param callable $callback
211
-	 * @return callable
218
+	 * @return \Closure
212 219
 	 */
213 220
 	private function getCallable($thisCallback,$parameters,$callback=null){
214 221
 		$result=function($instance) use($thisCallback,$parameters,$callback){
@@ -269,11 +276,19 @@  discard block
 block discarded – undo
269 276
 		return $this;
270 277
 	}
271 278
 
279
+	/**
280
+	 * @param string $icon
281
+	 * @param string $class
282
+	 */
272 283
 	private function addDefaultButton($icon,$class=null,$callback=null){
273 284
 		$this->addField($this->getCallable("getDefaultButton",[$icon,$class],$callback));
274 285
 		return $this;
275 286
 	}
276 287
 
288
+	/**
289
+	 * @param string $icon
290
+	 * @param string $class
291
+	 */
277 292
 	private function insertDefaultButtonIn($index,$icon,$class=null,$callback=null){
278 293
 		$this->insertInField($index,$this->getCallable("getDefaultButton",[$icon,$class],$callback));
279 294
 		return $this;
Please login to merge, or discard this patch.