Completed
Push — master ( aa0ebb...030ef0 )
by Jean-Christophe
03:09
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.
Ajax/semantic/widgets/dataform/DataForm.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -13,6 +13,9 @@
 block discarded – undo
13 13
  */
14 14
 class HtmlIconGroups extends HtmlSemCollection {
15 15
 
16
+	/**
17
+	 * @param string $identifier
18
+	 */
16 19
 	public function __construct($identifier, $icons=array(), $size="") {
17 20
 		parent::__construct($identifier, "i", "icons");
18 21
 		$this->addItems($icons);
Please login to merge, or discard this patch.
Ajax/semantic/widgets/base/FieldAsTrait.php 1 patch
Doc Comments   +8 added lines patch added patch discarded remove patch
@@ -18,6 +18,10 @@  discard block
 block discarded – undo
18 18
 trait FieldAsTrait{
19 19
 
20 20
 	abstract protected function _getFieldIdentifier($prefix);
21
+
22
+	/**
23
+	 * @param \Closure $callback
24
+	 */
21 25
 	abstract public function setValueFunction($index,$callback);
22 26
 
23 27
 	private function _getLabelField($caption,$icon=NULL){
@@ -27,6 +31,10 @@  discard block
 block discarded – undo
27 31
 
28 32
 	protected function _addRules($element,$attributes){}
29 33
 
34
+	/**
35
+	 * @param \Closure $elementCallback
36
+	 * @param string $prefix
37
+	 */
30 38
 	protected function _fieldAs($elementCallback,$index,$attributes=NULL,$prefix=null){
31 39
 		$this->setValueFunction($index,function($value)use ($index,&$attributes,$elementCallback,$prefix){
32 40
 			$name=$this->_instanceViewer->getCaption($index)."[]";
Please login to merge, or discard this patch.
Ajax/semantic/widgets/dataform/FormFieldAsTrait.php 1 patch
Doc Comments   +13 added lines patch added patch discarded remove patch
@@ -16,7 +16,14 @@  discard block
 block discarded – undo
16 16
 
17 17
 trait FormFieldAsTrait{
18 18
 
19
+	/**
20
+	 * @param string $prefix
21
+	 */
19 22
 	abstract protected function _getFieldIdentifier($prefix);
23
+
24
+	/**
25
+	 * @param \Closure $callback
26
+	 */
20 27
 	abstract public function setValueFunction($index,$callback);
21 28
 
22 29
 	private function _getLabelField($caption,$icon=NULL){
@@ -40,6 +47,9 @@  discard block
 block discarded – undo
40 47
 		$element->fromArray($attributes);
41 48
 	}
42 49
 
50
+	/**
51
+	 * @param HtmlFormField $element
52
+	 */
43 53
 	protected function _addRules($element,$attributes){
44 54
 		if(isset($attributes["rules"])){
45 55
 			$rules=$attributes["rules"];
@@ -51,6 +61,9 @@  discard block
 block discarded – undo
51 61
 		}
52 62
 	}
53 63
 
64
+	/**
65
+	 * @param \Closure $elementCallback
66
+	 */
54 67
 	protected function _fieldAs($elementCallback,$index,$attributes=NULL,$identifier=null){
55 68
 		$this->setValueFunction($index,function($value)use ($index,&$attributes,$elementCallback){
56 69
 			$caption=$this->_instanceViewer->getCaption($index);
Please login to merge, or discard this patch.
Ajax/semantic/html/collections/form/traits/FormTrait.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -48,6 +48,9 @@
 block discarded – undo
48 48
 		return $this->_buttonAsSubmit($bt, "click",$url,$responseElement);
49 49
 	}
50 50
 
51
+	/**
52
+	 * @param string $event
53
+	 */
51 54
 	protected function _buttonAsSubmit($button,$event,$url,$responseElement=NULL){
52 55
 		$form=$this->getForm();
53 56
 		if(isset($url) && isset($responseElement)){
Please login to merge, or discard this patch.