Completed
Push — master ( 29801f...fdca69 )
by Jean-Christophe
03:11
created
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/bootstrap/html/HtmlBreadcrumbs.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -177,6 +177,9 @@
 block discarded – undo
177 177
 		return parent::contentAsString();
178 178
 	}
179 179
 
180
+	/**
181
+	 * @param integer $index
182
+	 */
180 183
 	public function getElement($index){
181 184
 		return $this->content[$index];
182 185
 	}
Please login to merge, or discard this patch.
Ajax/common/html/BaseHtml.php 1 patch
Doc Comments   +27 added lines patch added patch discarded remove patch
@@ -124,6 +124,10 @@  discard block
 block discarded – undo
124 124
 		return $this;
125 125
 	}
126 126
 
127
+	/**
128
+	 * @param string $name
129
+	 * @param string[] $typeCtrl
130
+	 */
127 131
 	protected function setMemberCtrl(&$name, $value, $typeCtrl) {
128 132
 		if ($this->ctrl($name, $value, $typeCtrl) === true) {
129 133
 			return $name=$value;
@@ -139,22 +143,35 @@  discard block
 block discarded – undo
139 143
 		return $this;
140 144
 	}
141 145
 
146
+	/**
147
+	 * @param string $name
148
+	 */
142 149
 	protected function removePropertyValue($name, $value) {
143 150
 		$this->properties[$name]=\str_replace($value, "", $this->properties[$name]);
144 151
 		return $this;
145 152
 	}
146 153
 
154
+	/**
155
+	 * @param string $name
156
+	 */
147 157
 	protected function removePropertyValues($name, $values) {
148 158
 		$this->removeOldValues($this->properties[$name], $values);
149 159
 		return $this;
150 160
 	}
151 161
 
162
+	/**
163
+	 * @param string $name
164
+	 */
152 165
 	public function removeProperty($name) {
153 166
 		if (\array_key_exists($name, $this->properties))
154 167
 			unset($this->properties[$name]);
155 168
 		return $this;
156 169
 	}
157 170
 
171
+	/**
172
+	 * @param string $name
173
+	 * @param string[] $typeCtrl
174
+	 */
158 175
 	protected function addToMemberCtrl(&$name, $value, $typeCtrl, $separator=" ") {
159 176
 		if ($this->ctrl($name, $value, $typeCtrl) === true) {
160 177
 			if (is_array($typeCtrl)) {
@@ -165,6 +182,9 @@  discard block
 block discarded – undo
165 182
 		return $this;
166 183
 	}
167 184
 
185
+	/**
186
+	 * @param string $name
187
+	 */
168 188
 	protected function addToMember(&$name, $value, $separator=" ") {
169 189
 		$name=str_ireplace($value, "", $name) . $separator . $value;
170 190
 		return $this;
@@ -179,6 +199,9 @@  discard block
 block discarded – undo
179 199
 		return $this->addToProperty($name, $value);
180 200
 	}
181 201
 
202
+	/**
203
+	 * @param string $name
204
+	 */
182 205
 	public function addToPropertyCtrl($name, $value, $typeCtrl) {
183 206
 		return $this->addToPropertyUnique($name, $value, $typeCtrl);
184 207
 	}
@@ -283,6 +306,10 @@  discard block
 block discarded – undo
283 306
 		return null;
284 307
 	}
285 308
 
309
+	/**
310
+	 * @param string $propertyName
311
+	 * @param string $value
312
+	 */
286 313
 	protected function getElementByPropertyValue($propertyName,$value, $elements) {
287 314
 		if (is_array($elements)) {
288 315
 			$flag=false;
Please login to merge, or discard this patch.
Ajax/semantic/html/elements/HtmlButtonGroups.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/html/modules/HtmlDropdown.php 1 patch
Doc Comments   +10 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
 	/**
64 64
 	 * Insert an item at a position
65 65
 	 * @param mixed $item
66
-	 * @param number $position
66
+	 * @param integer $position
67 67
 	 * @return \Ajax\semantic\html\content\HtmlDropdownItem|unknown
68 68
 	 */
69 69
 	public function insertItem($item,$position=0){
@@ -164,6 +164,9 @@  discard block
 block discarded – undo
164 164
 		}
165 165
 	}
166 166
 
167
+	/**
168
+	 * @param integer $index
169
+	 */
167 170
 	public function getItem($index){
168 171
 		return $this->items[$index];
169 172
 	}
@@ -254,6 +257,9 @@  discard block
 block discarded – undo
254 257
 		return $this->addToPropertyCtrl("class", $value." pointing",Direction::getConstantValues("pointing"));
255 258
 	}
256 259
 
260
+	/**
261
+	 * @param string $value
262
+	 */
257 263
 	public function setValue($value){
258 264
 		$this->value=$value;
259 265
 		return $this;
@@ -288,6 +294,9 @@  discard block
 block discarded – undo
288 294
 		return $this->addToPropertyCtrl("class", "compact", array("compact"));
289 295
 	}
290 296
 
297
+	/**
298
+	 * @param string $action
299
+	 */
291 300
 	public function setAction($action){
292 301
 		$this->_params["action"]=$action;
293 302
 	}
Please login to merge, or discard this patch.
Ajax/semantic/html/elements/html5/HtmlImg.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/html/base/traits/BaseTrait.php 1 patch
Doc Comments   +22 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,18 +16,39 @@  discard block
 block discarded – undo
16 16
 	protected $_states=[ ];
17 17
 	protected $_baseClass;
18 18
 
19
+	/**
20
+	 * @param string $name
21
+	 */
19 22
 	abstract protected function setPropertyCtrl($name, $value, $typeCtrl);
20 23
 
24
+	/**
25
+	 * @param string $name
26
+	 */
21 27
 	abstract protected function addToPropertyCtrl($name, $value, $typeCtrl);
22 28
 
29
+	/**
30
+	 * @param string $name
31
+	 */
23 32
 	abstract protected function addToPropertyCtrlCheck($name, $value, $typeCtrl);
24 33
 
34
+	/**
35
+	 * @param string $name
36
+	 */
25 37
 	abstract public function addToProperty($name, $value, $separator=" ");
26 38
 
39
+	/**
40
+	 * @param string $name
41
+	 */
27 42
 	abstract public function setProperty($name, $value);
28 43
 
44
+	/**
45
+	 * @param HtmlIcon $content
46
+	 */
29 47
 	abstract public function addContent($content,$before=false);
30 48
 
49
+	/**
50
+	 * @param string $jsCode
51
+	 */
31 52
 	abstract public function onCreate($jsCode);
32 53
 
33 54
 	public function addVariation($variation) {
@@ -108,7 +129,7 @@  discard block
 block discarded – undo
108 129
 	/**
109 130
 	 * show it is currently unable to be interacted with
110 131
 	 * @param boolean $disable
111
-	 * @return \Ajax\semantic\html\elements\HtmlSemDoubleElement
132
+	 * @return BaseTrait
112 133
 	 */
113 134
 	public function setDisabled($disable=true) {
114 135
 		if($disable)
Please login to merge, or discard this patch.
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
 
@@ -38,6 +45,10 @@  discard block
 block discarded – undo
38 45
 		}
39 46
 	}
40 47
 
48
+	/**
49
+	 * @param \Closure $elementCallback
50
+	 * @param string $identifier
51
+	 */
41 52
 	protected function _fieldAs($elementCallback,$index,$attributes=NULL,$identifier=null){
42 53
 		$this->setValueFunction($index,function($value) use ($index,&$attributes,$elementCallback){
43 54
 			$caption=$this->_instanceViewer->getCaption($index);
Please login to merge, or discard this patch.
Ajax/common/html/traits/BaseHtmlEventsTrait.php 1 patch
Doc Comments   +20 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
 	/**
29 29
 	 * @param string $event
30 30
 	 * @param string $jsCode
31
-	 * @return BaseHtml
31
+	 * @return BaseHtmlEventsTrait
32 32
 	 */
33 33
 	public function _addEvent($event, $jsCode) {
34 34
 		if (array_key_exists($event, $this->_events)) {
@@ -55,6 +55,9 @@  discard block
 block discarded – undo
55 55
 		return $this->onClick($jsCode);
56 56
 	}
57 57
 
58
+	/**
59
+	 * @param string $jsCode
60
+	 */
58 61
 	public function onCreate($jsCode){
59 62
 		if(isset($this->_events["_create"])){
60 63
 			$this->_events["_create"][]=$jsCode;
@@ -105,7 +108,7 @@  discard block
 block discarded – undo
105 108
 	 * @param string $url
106 109
 	 * @param string $responseElement
107 110
 	 * @param array $parameters
108
-	 * @return BaseHtml
111
+	 * @return BaseHtmlEventsTrait
109 112
 	 */
110 113
 	public function _ajaxOn($operation, $event, $url, $responseElement="", $parameters=array()) {
111 114
 		$params=array ("url" => $url,"responseElement" => $responseElement );
@@ -114,14 +117,23 @@  discard block
 block discarded – undo
114 117
 		return $this;
115 118
 	}
116 119
 
120
+	/**
121
+	 * @param string $event
122
+	 */
117 123
 	public function getOn($event, $url, $responseElement="", $parameters=array()) {
118 124
 		return $this->_ajaxOn("get", $event, $url, $responseElement, $parameters);
119 125
 	}
120 126
 
127
+	/**
128
+	 * @param string $url
129
+	 */
121 130
 	public function getOnClick($url, $responseElement="", $parameters=array()) {
122 131
 		return $this->getOn("click", $url, $responseElement, $parameters);
123 132
 	}
124 133
 
134
+	/**
135
+	 * @param string $event
136
+	 */
125 137
 	public function postOn($event, $url, $params="{}", $responseElement="", $parameters=array()) {
126 138
 		$parameters["params"]=$params;
127 139
 		return $this->_ajaxOn("post", $event, $url, $responseElement, $parameters);
@@ -131,6 +143,9 @@  discard block
 block discarded – undo
131 143
 		return $this->postOn("click", $url, $params, $responseElement, $parameters);
132 144
 	}
133 145
 
146
+	/**
147
+	 * @param string $event
148
+	 */
134 149
 	public function postFormOn($event, $url, $form, $responseElement="", $parameters=array()) {
135 150
 		$parameters["form"]=$form;
136 151
 		return $this->_ajaxOn("postForm", $event, $url, $responseElement, $parameters);
@@ -140,6 +155,9 @@  discard block
 block discarded – undo
140 155
 		return $this->postFormOn("click", $url, $form, $responseElement, $parameters);
141 156
 	}
142 157
 
158
+	/**
159
+	 * @param string $jqueryCall
160
+	 */
143 161
 	public function jsDoJquery($jqueryCall, $param="") {
144 162
 		return "$('#" . $this->identifier . "')." . $jqueryCall . "(" . Javascript::prep_value($param) . ");";
145 163
 	}
Please login to merge, or discard this patch.