Completed
Push — master ( 73e21a...085edf )
by Jean-Christophe
04:37
created
Ajax/bootstrap/html/HtmlAccordion.php 1 patch
Doc Comments   +6 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,6 +14,9 @@  discard block
 block discarded – undo
14 14
  */
15 15
 class HtmlAccordion extends HtmlBsDoubleElement {
16 16
 
17
+	/**
18
+	 * @param string $identifier
19
+	 */
17 20
 	public function __construct($identifier, $tagName="div") {
18 21
 		parent::__construct($identifier, $tagName);
19 22
 		$this->setClass("panel-group");
@@ -22,6 +25,9 @@  discard block
 block discarded – undo
22 25
 		$this->content=array ();
23 26
 	}
24 27
 
28
+	/**
29
+	 * @param string $title
30
+	 */
25 31
 	public function addPanel($title, $content) {
26 32
 		$nb=sizeof($this->content)+1;
27 33
 		$panel=new HtmlPanel("panel-".$this->identifier."-".$nb);
@@ -40,7 +46,6 @@  discard block
 block discarded – undo
40 46
 	/**
41 47
 	 * render the content of an existing view : $controller/$action and set the response to a new panel
42 48
 	 * @param string $title The panel title
43
-	 * @param Controller $initialController
44 49
 	 * @param View $view
45 50
 	 * @param string $controller a Phalcon controller
46 51
 	 * @param string $action a Phalcon action
Please login to merge, or discard this patch.
Ajax/common/html/BaseHtml.php 1 patch
Doc Comments   +42 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
 	protected 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
 	}
@@ -327,14 +350,23 @@  discard block
 block discarded – undo
327 350
 		return $this;
328 351
 	}
329 352
 
353
+	/**
354
+	 * @param string $event
355
+	 */
330 356
 	public function getOn($event, $url, $responseElement="", $parameters=array()) {
331 357
 		return $this->_ajaxOn("get", $event, $url, $responseElement, $parameters);
332 358
 	}
333 359
 
360
+	/**
361
+	 * @param string $url
362
+	 */
334 363
 	public function getOnClick($url, $responseElement="", $parameters=array()) {
335 364
 		return $this->getOn("click", $url, $responseElement, $parameters);
336 365
 	}
337 366
 
367
+	/**
368
+	 * @param string $event
369
+	 */
338 370
 	public function postOn($event, $url, $params="{}", $responseElement="", $parameters=array()) {
339 371
 		$parameters["params"]=$params;
340 372
 		return $this->_ajaxOn("post", $event, $url, $responseElement, $parameters);
@@ -344,6 +376,9 @@  discard block
 block discarded – undo
344 376
 		return $this->postOn("click", $url, $params, $responseElement, $parameters);
345 377
 	}
346 378
 
379
+	/**
380
+	 * @param string $event
381
+	 */
347 382
 	public function postFormOn($event, $url, $form, $responseElement="", $parameters=array()) {
348 383
 		$parameters["form"]=$form;
349 384
 		return $this->_ajaxOn("postForm", $event, $url, $responseElement, $parameters);
@@ -371,6 +406,10 @@  discard block
 block discarded – undo
371 406
 		return null;
372 407
 	}
373 408
 
409
+	/**
410
+	 * @param string $propertyName
411
+	 * @param string $value
412
+	 */
374 413
 	protected function getElementByPropertyValue($propertyName,$value, $elements) {
375 414
 		if (is_array($elements)) {
376 415
 			$flag=false;
@@ -411,6 +450,9 @@  discard block
 block discarded – undo
411 450
 		return $value;
412 451
 	}
413 452
 
453
+	/**
454
+	 * @param string $jqueryCall
455
+	 */
414 456
 	public function jsDoJquery($jqueryCall, $param="") {
415 457
 		return "$('#" . $this->identifier . "')." . $jqueryCall . "(" . $this->_prep_value($param) . ");";
416 458
 	}
Please login to merge, or discard this patch.
Ajax/Jquery.php 1 patch
Doc Comments   +8 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,6 +55,9 @@  discard block
 block discarded – undo
55 55
 		return $this->_semantic;
56 56
 	}
57 57
 
58
+	/**
59
+	 * @param JsUtils $jsUtils
60
+	 */
58 61
 	public function __construct($params,$jsUtils) {
59 62
 		$this->params=array();
60 63
 		foreach ( $params as $key => $val ) {
@@ -175,7 +178,7 @@  discard block
 block discarded – undo
175 178
 	 *
176 179
 	 * @param string $element
177 180
 	 * @param array $options
178
-	 * @return void
181
+	 * @return string
179 182
 	 */
180 183
 	public function sortable($element, $options=array()) {
181 184
 		if (count($options)>0) {
@@ -306,6 +309,7 @@  discard block
 block discarded – undo
306 309
 
307 310
 	/**
308 311
 	 * A wrapper for writing document.ready()
312
+	 * @param string $js
309 313
 	 * @return string
310 314
 	 */
311 315
 	public function _document_ready($js) {
@@ -353,6 +357,9 @@  discard block
 block discarded – undo
353 357
 		return $value;
354 358
 	}
355 359
 
360
+	/**
361
+	 * @param string $input
362
+	 */
356 363
 	private function minify($input) {
357 364
 	if(trim($input) === "") return $input;
358 365
 	return preg_replace(
Please login to merge, or discard this patch.
Ajax/semantic/html/content/HtmlAbsractItem.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -11,6 +11,9 @@
 block discarded – undo
11 11
 
12 12
 abstract class HtmlAbsractItem extends HtmlSemDoubleElement {
13 13
 
14
+	/**
15
+	 * @param string $baseClass
16
+	 */
14 17
 	public function __construct($identifier, $baseClass,$content=NULL) {
15 18
 		parent::__construct($identifier, "div", $baseClass);
16 19
 		$this->content=array();
Please login to merge, or discard this patch.
Ajax/semantic/html/elements/HtmlButton.php 1 patch
Doc Comments   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 	/**
39 39
 	 * Set the button value
40 40
 	 * @param string $value
41
-	 * @return \Ajax\semantic\html\HtmlButton
41
+	 * @return HtmlButton
42 42
 	 */
43 43
 	public function setValue($value) {
44 44
 		$this->content=$value;
@@ -47,8 +47,8 @@  discard block
 block discarded – undo
47 47
 
48 48
 	/**
49 49
 	 * define the button style
50
-	 * @param string|int $cssStyle
51
-	 * @return \Ajax\semantic\html\HtmlButton default : ""
50
+	 * @param string $cssStyle
51
+	 * @return HtmlButton default : ""
52 52
 	 */
53 53
 	public function setStyle($cssStyle) {
54 54
 		return $this->addToProperty("class", $cssStyle);
@@ -98,7 +98,6 @@  discard block
 block discarded – undo
98 98
 
99 99
 	/**
100 100
 	 * Add and return a button label
101
-	 * @param string $caption
102 101
 	 * @param string $before
103 102
 	 * @param string $icon
104 103
 	 * @return \Ajax\semantic\html\elements\HtmlLabel
Please login to merge, or discard this patch.
Ajax/semantic/html/elements/HtmlLabel.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 use Ajax\semantic\html\base\constants\Side;
5 5
 trait AttachedTrait {
6 6
 	/**
7
-	 * @param string $side
8 7
 	 * @return \Ajax\semantic\html\base\HtmlSemDoubleElement
9 8
 	 */
10 9
 	public function setAttachment($value=Side::BOTH){
Please login to merge, or discard this patch.