Completed
Push — master ( 525ea5...e3c757 )
by Jean-Christophe
03:48
created
Ajax/semantic/html/modules/HtmlModal.php 1 patch
Doc Comments   +9 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,6 +14,9 @@  discard block
 block discarded – undo
14 14
 	protected $_params=array();
15 15
 	protected $_paramParts=array();
16 16
 
17
+	/**
18
+	 * @param string $identifier
19
+	 */
17 20
 	public function __construct($identifier, $header="", $content="", $actions=array()) {
18 21
 		parent::__construct($identifier, "div","ui modal");
19 22
 		if(isset($header)){
@@ -27,6 +30,9 @@  discard block
 block discarded – undo
27 30
 		}
28 31
 	}
29 32
 
33
+	/**
34
+	 * @param string $value
35
+	 */
30 36
 	public function setHeader($value) {
31 37
 		$this->content["header"]=new HtmlSemDoubleElement("header-" . $this->identifier, "a", "header", $value);
32 38
 		return $this;
@@ -103,6 +109,9 @@  discard block
 block discarded – undo
103 109
 		return $this->addElementInPart(new HtmlSemDoubleElement($part."-" . $this->identifier, "div", $uiClass, $content), $part);
104 110
 	}
105 111
 
112
+	/**
113
+	 * @param BaseHtml $element
114
+	 */
106 115
 	private function addElementInPart($element,$part) {
107 116
 		$this->content[$part]->addContent($element);
108 117
 		return $element;
@@ -141,7 +150,6 @@  discard block
 block discarded – undo
141 150
 	/**
142 151
 	 * render the content of $controller::$action and set the response to the modal content
143 152
 	 * @param JsUtils $js
144
-	 * @param string $title The panel title
145 153
 	 * @param Controller $initialControllerInstance
146 154
 	 * @param string $controllerName the controller name
147 155
 	 * @param string $actionName the action name
Please login to merge, or discard this patch.
Ajax/semantic/traits/SemanticComponentsTrait.php 1 patch
Doc Comments   +18 added lines patch added patch discarded remove patch
@@ -59,6 +59,9 @@  discard block
 block discarded – undo
59 59
 		return $this->addComponent(new Accordion($this->js), $attachTo, $params);
60 60
 	}
61 61
 
62
+	/**
63
+	 * @param string $attachTo
64
+	 */
62 65
 	public function sticky($attachTo=NULL, $params=NULL) {
63 66
 		return $this->addComponent(new Sticky($this->js), $attachTo, $params);
64 67
 	}
@@ -67,22 +70,37 @@  discard block
 block discarded – undo
67 70
 		return $this->addComponent(new Checkbox($this->js), $attachTo, $params);
68 71
 	}
69 72
 
73
+	/**
74
+	 * @param string $attachTo
75
+	 */
70 76
 	public function rating($attachTo=NULL, $params=NULL) {
71 77
 		return $this->addComponent(new Rating($this->js), $attachTo, $params);
72 78
 	}
73 79
 
80
+	/**
81
+	 * @param string $attachTo
82
+	 */
74 83
 	public function progress($attachTo=NULL, $params=NULL) {
75 84
 		return $this->addComponent(new Progress($this->js), $attachTo, $params);
76 85
 	}
77 86
 
87
+	/**
88
+	 * @param string $attachTo
89
+	 */
78 90
 	public function search($attachTo=NULL, $params=NULL) {
79 91
 		return $this->addComponent(new Search($this->js), $attachTo, $params);
80 92
 	}
81 93
 
94
+	/**
95
+	 * @param string $attachTo
96
+	 */
82 97
 	public function dimmer($attachTo=NULL, $params=NULL) {
83 98
 		return $this->addComponent(new Dimmer($this->js), $attachTo, $params);
84 99
 	}
85 100
 
101
+	/**
102
+	 * @param string $attachTo
103
+	 */
86 104
 	public function modal($attachTo=NULL, $params=NULL,$paramsParts=NULL) {
87 105
 		$result= $this->addComponent(new Modal($this->js), $attachTo, $params);
88 106
 		$result->setParamParts($paramsParts);
Please login to merge, or discard this patch.
Ajax/bootstrap/html/content/HtmlGridRow.php 1 patch
Doc Comments   +10 added lines patch added patch discarded remove patch
@@ -14,6 +14,11 @@  discard block
 block discarded – undo
14 14
  */
15 15
 class HtmlGridRow extends HtmlBsDoubleElement {
16 16
 	private $cols;
17
+
18
+	/**
19
+	 * @param string $identifier
20
+	 * @param integer $numCols
21
+	 */
17 22
 	public function __construct($identifier,$numCols=NULL){
18 23
 		parent::__construct($identifier,"div");
19 24
 		$this->setProperty("class", "row");
@@ -86,6 +91,11 @@  discard block
 block discarded – undo
86 91
 			$this->delete($size,$start+1, $width);
87 92
 		}
88 93
 	}
94
+
95
+	/**
96
+	 * @param integer $start
97
+	 * @param integer $width
98
+	 */
89 99
 	public function delete($size=CssSize::SIZE_MD,$start,$width){
90 100
 		while($start<sizeof($this->cols)+1 && $width>0){
91 101
 			$col=$this->getColAt($start,false);
Please login to merge, or discard this patch.
Ajax/bootstrap/html/HtmlAccordion.php 1 patch
Doc Comments   +6 added 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);
Please login to merge, or discard this patch.
Ajax/bootstrap/html/HtmlCarousel.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -23,6 +23,9 @@
 block discarded – undo
23 23
 	protected $_base="";
24 24
 	protected $_glyphs=array ();
25 25
 
26
+	/**
27
+	 * @param string $identifier
28
+	 */
26 29
 	public function __construct($identifier, $images=NULL) {
27 30
 		parent::__construct($identifier);
28 31
 		$this->_template=include 'templates/tplCarousel.php';
Please login to merge, or discard this patch.
Ajax/bootstrap/html/HtmlGridsystem.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -16,6 +16,10 @@
 block discarded – undo
16 16
 class HtmlGridSystem extends HtmlBsDoubleElement {
17 17
 	private $rows;
18 18
 	
19
+	/**
20
+	 * @param string $identifier
21
+	 * @param integer $numCols
22
+	 */
19 23
 	public function __construct($identifier,$numRows=1,$numCols=NULL){
20 24
 		parent::__construct($identifier,"div");
21 25
 		$this->setProperty("class", "container-fluid");
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
 	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
 	}
@@ -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/semantic/html/base/traits/AttachedTrait.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,6 @@
 block discarded – undo
9 9
 
10 10
 	/**
11 11
 	 *
12
-	 * @param string $side
13 12
 	 * @return \Ajax\semantic\html\base\HtmlSemDoubleElement
14 13
 	 */
15 14
 	public function setAttachment(HtmlSemDoubleElement $toElement, $value=Side::BOTH) {
Please login to merge, or discard this patch.
Ajax/semantic/html/collections/form/HtmlFormFields.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -15,6 +15,9 @@
 block discarded – undo
15 15
 	protected $_equalWidth;
16 16
 	protected $_name;
17 17
 
18
+	/**
19
+	 * @param string $identifier
20
+	 */
18 21
 	public function __construct($identifier, $fields=array(), $equalWidth=true) {
19 22
 		parent::__construct($identifier, "div");
20 23
 		$this->_equalWidth=$equalWidth;
Please login to merge, or discard this patch.