Completed
Push — master ( 72aa1a...163c98 )
by Jean-Christophe
03:34
created
Ajax/common/Widget.php 1 patch
Doc Comments   +10 added lines patch added patch discarded remove patch
@@ -83,16 +83,26 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
Ajax/semantic/widgets/datatable/DataTable.php 1 patch
Doc Comments   +19 added lines, -3 removed lines patch added patch discarded remove patch
@@ -39,6 +39,10 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.