Completed
Push — master ( 3555a5...e61355 )
by Jean-Christophe
03:33
created
Ajax/semantic/html/content/table/HtmlTableContent.php 1 patch
Doc Comments   +13 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,6 +69,9 @@  discard block
 block discarded – undo
69 69
 		return $tr;
70 70
 	}
71 71
 
72
+	/**
73
+	 * @param integer $value
74
+	 */
72 75
 	public function newRow($value) {
73 76
 		return $this->createItem($value);
74 77
 	}
@@ -102,7 +105,7 @@  discard block
 block discarded – undo
102 105
 	/**
103 106
 	 *
104 107
 	 * @param int $index
105
-	 * @return \Ajax\semantic\html\content\HtmlTR
108
+	 * @return \Ajax\common\html\HtmlDoubleElement
106 109
 	 */
107 110
 	public function getRow($index) {
108 111
 		return $this->getItem($index);
@@ -146,6 +149,9 @@  discard block
 block discarded – undo
146 149
 		return $this;
147 150
 	}
148 151
 
152
+	/**
153
+	 * @param integer $colIndex
154
+	 */
149 155
 	public function setColValues($colIndex, $values=array()) {
150 156
 		$count=$this->count();
151 157
 		if (\is_array($values) === false) {
@@ -166,6 +172,9 @@  discard block
 block discarded – undo
166 172
 		return $this;
167 173
 	}
168 174
 
175
+	/**
176
+	 * @param integer $rowIndex
177
+	 */
169 178
 	public function setRowValues($rowIndex, $values=array()) {
170 179
 		$count=$this->count();
171 180
 		if (\is_array($values) === false) {
@@ -175,6 +184,9 @@  discard block
 block discarded – undo
175 184
 		return $this;
176 185
 	}
177 186
 
187
+	/**
188
+	 * @param string $function
189
+	 */
178 190
 	private function colAlign($colIndex, $function) {
179 191
 		$count=$this->count();
180 192
 		for($i=0; $i < $count; $i++) {
Please login to merge, or discard this patch.
Ajax/semantic/widgets/datatable/DataTable.php 1 patch
Doc Comments   +28 added lines, -3 removed lines patch added patch discarded remove patch
@@ -33,6 +33,10 @@  discard block
 block discarded – undo
33 33
 		parent::run($js);
34 34
 	}
35 35
 
36
+	/**
37
+	 * @param string $identifier
38
+	 * @param string $model
39
+	 */
36 40
 	public function __construct($identifier,$model,$modelInstance=NULL) {
37 41
 		parent::__construct($identifier, $model,$modelInstance);
38 42
 		$this->_instanceViewer=new InstanceViewer();
@@ -112,6 +116,9 @@  discard block
 block discarded – undo
112 116
 		return parent::compile($js,$view);
113 117
 	}
114 118
 
119
+	/**
120
+	 * @param string $part
121
+	 */
115 122
 	private function addToolbarRow($part,$table,$captions){
116 123
 		$row=$table->getPart($part)->addRow(\sizeof($captions));
117 124
 		$row->mergeCol();
@@ -137,16 +144,26 @@  discard block
 block discarded – undo
137 144
 		return $this;
138 145
 	}
139 146
 
147
+	/**
148
+	 * @param \Closure $field
149
+	 */
140 150
 	public function addField($field){
141 151
 		$this->_instanceViewer->addField($field);
142 152
 		return $this;
143 153
 	}
144 154
 
155
+	/**
156
+	 * @param integer $index
157
+	 * @param \Closure $field
158
+	 */
145 159
 	public function insertField($index,$field){
146 160
 		$this->_instanceViewer->insertField($index, $field);
147 161
 		return $this;
148 162
 	}
149 163
 
164
+	/**
165
+	 * @param \Closure $field
166
+	 */
150 167
 	public function insertInField($index,$field){
151 168
 		$this->_instanceViewer->insertInField($index, $field);
152 169
 		return $this;
@@ -195,16 +212,16 @@  discard block
 block discarded – undo
195 212
 	/**
196 213
 	 * @param string $caption
197 214
 	 * @param callable $callback
198
-	 * @return callable
215
+	 * @return \Closure
199 216
 	 */
200 217
 	private function getFieldButtonCallable($caption,$callback=null){
201 218
 		return $this->getCallable($this->getFieldButton($caption),$callback);
202 219
 	}
203 220
 
204 221
 	/**
205
-	 * @param mixed $object
222
+	 * @param HtmlButton $object
206 223
 	 * @param callable $callback
207
-	 * @return callable
224
+	 * @return \Closure
208 225
 	 */
209 226
 	private function getCallable($object,$callback=null){
210 227
 		$result=function($instance) use($object,$callback){
@@ -263,12 +280,20 @@  discard block
 block discarded – undo
263 280
 		return $this;
264 281
 	}
265 282
 
283
+	/**
284
+	 * @param string $icon
285
+	 * @param string $class
286
+	 */
266 287
 	private function addDefaultButton($icon,$class=null,$callback=null){
267 288
 		$bt=$this->getDefaultButton($icon,$class);
268 289
 		$this->addField($this->getCallable($bt,$callback));
269 290
 		return $this;
270 291
 	}
271 292
 
293
+	/**
294
+	 * @param string $icon
295
+	 * @param string $class
296
+	 */
272 297
 	private function insertDefaultButtonIn($index,$icon,$class=null,$callback=null){
273 298
 		$bt=$this->getDefaultButton($icon,$class);
274 299
 		$this->insertInField($index,$this->getCallable($bt,$callback));
Please login to merge, or discard this patch.