Completed
Push — master ( 781bd5...e04e71 )
by Jean-Christophe
03:39
created
Ajax/common/html/HtmlCollection.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -84,6 +84,9 @@  discard block
 block discarded – undo
84 84
 		return $this;
85 85
 	}
86 86
 
87
+	/**
88
+	 * @param integer $index
89
+	 */
87 90
 	public function removeItem($index){
88 91
 		return array_splice($this->content, $index, 1);
89 92
 	}
@@ -99,6 +102,9 @@  discard block
 block discarded – undo
99 102
 		return $this->addItem($function($object));
100 103
 	}
101 104
 
105
+	/**
106
+	 * @param \Closure $callBack
107
+	 */
102 108
 	public function apply($callBack){
103 109
 		foreach ($this->content as $item){
104 110
 			$callBack($item);
Please login to merge, or discard this patch.
Ajax/semantic/html/content/table/HtmlTR.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -20,6 +20,9 @@
 block discarded – undo
20 20
 	protected $_tabsType="tabs";
21 21
 	protected $stacked="";
22 22
 
23
+	/**
24
+	 * @param string $identifier
25
+	 */
23 26
 	public function __construct($identifier, $tagName="ul") {
24 27
 		parent::__construct($identifier, $tagName);
25 28
 		$this->_template="<%tagName% %properties%>%tabs%</%tagName%>%content%";
Please login to merge, or discard this patch.
Ajax/common/html/html5/HtmlLinkTrait.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -4,6 +4,9 @@
 block discarded – undo
4 4
 
5 5
 trait HtmlLinkTrait {
6 6
 
7
+	/**
8
+	 * @param string $value
9
+	 */
7 10
 	public function setHref($value) {
8 11
 		$this->setProperty("href", $value);
9 12
 	}
Please login to merge, or discard this patch.
Ajax/semantic/traits/SemanticHtmlModulesTrait.php 1 patch
Doc Comments   -2 removed lines patch added patch discarded remove patch
@@ -23,8 +23,6 @@
 block discarded – undo
23 23
 
24 24
 	/**
25 25
 	 * @param string $identifier
26
-	 * @param int $rowCount
27
-	 * @param int $colCount
28 26
 	 */
29 27
 	public function htmlRating($identifier, $value, $max,$icon=""){
30 28
 		return $this->addHtmlComponent(new HtmlRating($identifier, $value, $max,$icon));
Please login to merge, or discard this patch.
Ajax/semantic/html/collections/form/traits/CheckboxTrait.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -6,6 +6,9 @@
 block discarded – undo
6 6
 
7 7
 trait CheckboxTrait {
8 8
 
9
+	/**
10
+	 * @param string $name
11
+	 */
9 12
 	public abstract function addToPropertyCtrl($name, $value, $typeCtrl);
10 13
 
11 14
 	public function setType($checkboxType) {
Please login to merge, or discard this patch.
Ajax/semantic/html/base/traits/BaseTrait.php 1 patch
Doc Comments   +12 added lines patch added patch discarded remove patch
@@ -11,12 +11,24 @@
 block discarded – undo
11 11
 	protected $_states=[ ];
12 12
 	protected $_baseClass;
13 13
 
14
+	/**
15
+	 * @param string $name
16
+	 */
14 17
 	protected abstract function setPropertyCtrl($name, $value, $typeCtrl);
15 18
 
19
+	/**
20
+	 * @param string $name
21
+	 */
16 22
 	protected abstract function addToPropertyCtrl($name, $value, $typeCtrl);
17 23
 
24
+	/**
25
+	 * @param string $name
26
+	 */
18 27
 	protected abstract function addToPropertyCtrlCheck($name, $value, $typeCtrl);
19 28
 
29
+	/**
30
+	 * @param string $name
31
+	 */
20 32
 	public abstract function addToProperty($name, $value, $separator=" ");
21 33
 
22 34
 	public function addVariation($variation) {
Please login to merge, or discard this patch.
Ajax/semantic/html/elements/HtmlButton.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
 	/**
38 38
 	 * Set the button value
39 39
 	 * @param string $value
40
-	 * @return \Ajax\semantic\html\HtmlButton
40
+	 * @return HtmlButton
41 41
 	 */
42 42
 	public function setValue($value) {
43 43
 		$this->content=$value;
@@ -46,8 +46,8 @@  discard block
 block discarded – undo
46 46
 
47 47
 	/**
48 48
 	 * define the button style
49
-	 * @param string|int $cssStyle
50
-	 * @return \Ajax\semantic\html\HtmlButton default : ""
49
+	 * @param string $cssStyle
50
+	 * @return HtmlButton default : ""
51 51
 	 */
52 52
 	public function setStyle($cssStyle) {
53 53
 		return $this->addToProperty("class", $cssStyle);
Please login to merge, or discard this patch.
Ajax/semantic/html/base/traits/IconTrait.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -7,6 +7,10 @@
 block discarded – undo
7 7
 trait IconTrait {
8 8
 	private $_hasIcon=false;
9 9
 
10
+	/**
11
+	 * @param string $name
12
+	 * @param string $value
13
+	 */
10 14
 	protected abstract function addToPropertyCtrl($name, $value, $typeCtrl);
11 15
 	public abstract function addContent($content,$before=false);
12 16
 
Please login to merge, or discard this patch.
Ajax/common/html/BaseHtml.php 1 patch
Doc Comments   +32 added lines patch added patch discarded remove patch
@@ -145,22 +145,36 @@  discard block
 block discarded – undo
145 145
 		return $this;
146 146
 	}
147 147
 
148
+	/**
149
+	 * @param string $name
150
+	 * @param string $value
151
+	 */
148 152
 	protected function removePropertyValue($name, $value) {
149 153
 		$this->properties[$name]=\str_replace($value, "", $this->properties[$name]);
150 154
 		return $this;
151 155
 	}
152 156
 
157
+	/**
158
+	 * @param string $name
159
+	 */
153 160
 	protected function removePropertyValues($name, $values) {
154 161
 		$this->removeOldValues($this->properties[$name], $values);
155 162
 		return $this;
156 163
 	}
157 164
 
165
+	/**
166
+	 * @param string $name
167
+	 */
158 168
 	protected function removeProperty($name) {
159 169
 		if (\array_key_exists($name, $this->properties))
160 170
 			unset($this->properties[$name]);
161 171
 		return $this;
162 172
 	}
163 173
 
174
+	/**
175
+	 * @param string $name
176
+	 * @param string[] $typeCtrl
177
+	 */
164 178
 	protected function addToMemberCtrl(&$name, $value, $typeCtrl, $separator=" ") {
165 179
 		if ($this->ctrl($name, $value, $typeCtrl) === true) {
166 180
 			if (is_array($typeCtrl)) {
@@ -185,6 +199,9 @@  discard block
 block discarded – undo
185 199
 		return $this->addToProperty($name, $value);
186 200
 	}
187 201
 
202
+	/**
203
+	 * @param string $name
204
+	 */
188 205
 	public function addToPropertyCtrl($name, $value, $typeCtrl) {
189 206
 		return $this->addToPropertyUnique($name, $value, $typeCtrl);
190 207
 	}
@@ -332,14 +349,23 @@  discard block
 block discarded – undo
332 349
 		return $this;
333 350
 	}
334 351
 
352
+	/**
353
+	 * @param string $event
354
+	 */
335 355
 	public function getOn($event, $url, $responseElement="", $parameters=array()) {
336 356
 		return $this->_ajaxOn("get", $event, $url, $responseElement, $parameters);
337 357
 	}
338 358
 
359
+	/**
360
+	 * @param string $url
361
+	 */
339 362
 	public function getOnClick($url, $responseElement="", $parameters=array()) {
340 363
 		return $this->getOn("click", $url, $responseElement, $parameters);
341 364
 	}
342 365
 
366
+	/**
367
+	 * @param string $event
368
+	 */
343 369
 	public function postOn($event, $url, $params="{}", $responseElement="", $parameters=array()) {
344 370
 		$parameters["params"]=$params;
345 371
 		return $this->_ajaxOn("post", $event, $url, $responseElement, $parameters);
@@ -349,6 +375,9 @@  discard block
 block discarded – undo
349 375
 		return $this->postOn("click", $url, $params, $responseElement, $parameters);
350 376
 	}
351 377
 
378
+	/**
379
+	 * @param string $event
380
+	 */
352 381
 	public function postFormOn($event, $url, $form, $responseElement="", $parameters=array()) {
353 382
 		$parameters["form"]=$form;
354 383
 		return $this->_ajaxOn("postForm", $event, $url, $responseElement, $parameters);
@@ -398,6 +427,9 @@  discard block
 block discarded – undo
398 427
 		return $value;
399 428
 	}
400 429
 
430
+	/**
431
+	 * @param string $jqueryCall
432
+	 */
401 433
 	public function jsDoJquery($jqueryCall, $param="") {
402 434
 		return "$('#" . $this->identifier . "')." . $jqueryCall . "(" . $this->_prep_value($param) . ");";
403 435
 	}
Please login to merge, or discard this patch.