Completed
Push — master ( 70601d...0c3815 )
by Jean-Christophe
03:29
created
Ajax/common/html/BaseHtml.php 1 patch
Doc Comments   +36 added lines patch added patch discarded remove patch
@@ -109,6 +109,10 @@  discard block
 block discarded – undo
109 109
 		return true;
110 110
 	}
111 111
 
112
+	/**
113
+	 * @param string $propertyName
114
+	 * @param string $value
115
+	 */
112 116
 	protected function propertyContains($propertyName,$value){
113 117
 		$values=$this->getProperty($propertyName);
114 118
 		if(isset($values)){
@@ -138,17 +142,28 @@  discard block
 block discarded – undo
138 142
 		return $this;
139 143
 	}
140 144
 
145
+	/**
146
+	 * @param string $name
147
+	 * @param string $value
148
+	 */
141 149
 	protected function removePropertyValue($name,$value){
142 150
 		$this->properties[$name]=\str_replace($value, "", $this->properties[$name]);
143 151
 		return $this;
144 152
 	}
145 153
 
154
+	/**
155
+	 * @param string $name
156
+	 */
146 157
 	protected function removeProperty($name){
147 158
 		if(\array_key_exists($name, $this->properties))
148 159
 			unset($this->properties[$name]);
149 160
 		return $this;
150 161
 	}
151 162
 
163
+	/**
164
+	 * @param string $name
165
+	 * @param string[] $typeCtrl
166
+	 */
152 167
 	protected function addToMemberCtrl(&$name, $value, $typeCtrl, $separator=" ") {
153 168
 		if ($this->ctrl($name, $value, $typeCtrl)===true) {
154 169
 			if (is_array($typeCtrl)) {
@@ -173,6 +188,9 @@  discard block
 block discarded – undo
173 188
 		return $this->addToProperty($name, $value);
174 189
 	}
175 190
 
191
+	/**
192
+	 * @param string $name
193
+	 */
176 194
 	public function addToPropertyCtrl($name, $value, $typeCtrl) {
177 195
 		// if($this->ctrl($name, $value, $typeCtrl)===true){
178 196
 		return $this->addToPropertyUnique($name, $value, $typeCtrl);
@@ -312,6 +330,9 @@  discard block
 block discarded – undo
312 330
 		}
313 331
 	}
314 332
 
333
+	/**
334
+	 * @param string $operation
335
+	 */
315 336
 	public function _ajaxOn($operation, $event, $url, $responseElement="", $parameters=array()) {
316 337
 		$params=array (
317 338
 				"url" => $url,
@@ -322,14 +343,23 @@  discard block
 block discarded – undo
322 343
 		return $this;
323 344
 	}
324 345
 
346
+	/**
347
+	 * @param string $event
348
+	 */
325 349
 	public function getOn($event, $url, $responseElement="", $parameters=array()) {
326 350
 		return $this->_ajaxOn("get", $event, $url, $responseElement, $parameters);
327 351
 	}
328 352
 
353
+	/**
354
+	 * @param string $url
355
+	 */
329 356
 	public function getOnClick($url, $responseElement="", $parameters=array()) {
330 357
 		return $this->getOn("click", $url, $responseElement, $parameters);
331 358
 	}
332 359
 
360
+	/**
361
+	 * @param string $event
362
+	 */
333 363
 	public function postOn($event, $url, $params="{}", $responseElement="", $parameters=array()) {
334 364
 		$parameters ["params"]=$params;
335 365
 		return $this->_ajaxOn("post", $event, $url, $responseElement, $parameters);
@@ -339,6 +369,9 @@  discard block
 block discarded – undo
339 369
 		return $this->postOn("click", $url, $params, $responseElement, $parameters);
340 370
 	}
341 371
 
372
+	/**
373
+	 * @param string $event
374
+	 */
342 375
 	public function postFormOn($event, $url, $form, $responseElement="", $parameters=array()) {
343 376
 		$parameters ["form"]=$form;
344 377
 		return $this->_ajaxOn("postForm", $event, $url, $responseElement, $parameters);
@@ -388,6 +421,9 @@  discard block
 block discarded – undo
388 421
 		return $value;
389 422
 	}
390 423
 
424
+	/**
425
+	 * @param string $jqueryCall
426
+	 */
391 427
 	public function jsDoJquery($jqueryCall, $param=""){
392 428
 		return "$('#".$this->identifier."').".$jqueryCall."(".$this->_prep_value($param).");";
393 429
 	}
Please login to merge, or discard this patch.
Ajax/semantic/html/collections/HtmlGrid.php 1 patch
Doc Comments   +7 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,6 +21,11 @@  discard block
 block discarded – undo
21 21
 	private $_createCols;
22 22
 	private $_colSizing=true;
23 23
 	private $_implicitRows=false;
24
+
25
+	/**
26
+	 * @param string $identifier
27
+	 * @param integer $numCols
28
+	 */
24 29
 	public function __construct( $identifier,$numRows=1,$numCols=NULL,$createCols=true,$implicitRows=false){
25 30
 		parent::__construct( $identifier, "div","ui grid");
26 31
 		$this->_implicitRows=$implicitRows;
@@ -95,7 +100,7 @@  discard block
 block discarded – undo
95 100
 	/**
96 101
 	 * return the row at $index
97 102
 	 * @param int $index
98
-	 * @return \Ajax\semantic\html\collections\HtmlGridRow
103
+	 * @return \Ajax\common\html\HtmlDoubleElement
99 104
 	 */
100 105
 	public function getRow($index){
101 106
 		return $this->getItem($index);
@@ -211,7 +216,7 @@  discard block
 block discarded – undo
211 216
 
212 217
 	/**
213 218
 	 * stretch the row contents to take up the entire column height
214
-	 * @return \Ajax\semantic\html\content\HtmlGridRow
219
+	 * @return HtmlGrid
215 220
 	 */
216 221
 	public function setStretched(){
217 222
 		return $this->addToProperty("class", "stretched");
Please login to merge, or discard this patch.
Ajax/semantic/html/content/HtmlGridRow.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,6 +22,9 @@  discard block
 block discarded – undo
22 22
 	private $_colSize;
23 23
 	private $_implicite=false;
24 24
 
25
+	/**
26
+	 * @param string $identifier
27
+	 */
25 28
 	public function __construct( $identifier,$numCols=NULL,$colSizing=false,$implicite=false){
26 29
 		parent::__construct( $identifier,"div","row");
27 30
 		$this->_implicite=$implicite;
@@ -55,7 +58,7 @@  discard block
 block discarded – undo
55 58
 	/**
56 59
 	 * return the col at $index
57 60
 	 * @param int $index
58
-	 * @return \Ajax\semantic\html\collections\HtmlGridCol
61
+	 * @return \Ajax\common\html\HtmlDoubleElement
59 62
 	 */
60 63
 	public function getCol($index){
61 64
 		return $this->getItem($index);
Please login to merge, or discard this patch.
Ajax/semantic/html/modules/HtmlPopup.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -12,6 +12,10 @@  discard block
 block discarded – undo
12 12
 class HtmlPopup extends HtmlSemDoubleElement {
13 13
 	private $params;
14 14
 	private $_container;
15
+
16
+	/**
17
+	 * @param string $identifier
18
+	 */
15 19
 	public function __construct(BaseHtml $container,$identifier, $content="") {
16 20
 		parent::__construct($identifier, "div");
17 21
 		$this->_container=$container;
@@ -72,6 +76,9 @@  discard block
 block discarded – undo
72 76
 		return $this;
73 77
 	}
74 78
 
79
+	/**
80
+	 * @param string $position
81
+	 */
75 82
 	public function setPosition($position){
76 83
 		$this->params["position"]=$position;
77 84
 		return $this;
Please login to merge, or discard this patch.