Completed
Push — master ( 2461e8...b569b1 )
by Jean-Christophe
04:01
created
Ajax/semantic/html/collections/HtmlBreadcrumb.php 1 patch
Doc Comments   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -57,8 +57,7 @@  discard block
 block discarded – undo
57 57
 	 * Associate an ajax get to the breadcrumb elements, displayed in $targetSelector
58 58
 	 * $attr member is used to build each element url
59 59
 	 * @param string $targetSelector the target of the get
60
-	 * @param string $attr the html attribute used to build the elements url
61
-	 * @return HtmlBreadcrumbs
60
+	 * @return HtmlBreadcrumb
62 61
 	 */
63 62
 	public function autoGetOnClick($targetSelector){
64 63
 		return $this->getOnClick($this->root, $targetSelector,array("attr"=>$this->attr));
@@ -83,7 +82,7 @@  discard block
 block discarded – undo
83 82
 	/**
84 83
 	 * Add new elements in breadcrumbs corresponding to request dispatcher : controllerName, actionName, parameters
85 84
 	 * @param Dispatcher $dispatcher the request dispatcher
86
-	 * @return \Ajax\bootstrap\html\HtmlBreadcrumbs
85
+	 * @return HtmlBreadcrumb
87 86
 	 */
88 87
 	public function fromDispatcher($dispatcher,$startIndex=0){
89 88
 		$this->startIndex=$startIndex;
@@ -120,7 +119,7 @@  discard block
 block discarded – undo
120 119
 	/**
121 120
 	 * sets the function who generates the href elements. default : function($element){return $element->getContent()}
122 121
 	 * @param function $_hrefFunction
123
-	 * @return \Ajax\bootstrap\html\HtmlBreadcrumbs
122
+	 * @return HtmlBreadcrumb
124 123
 	 */
125 124
 	public function setHrefFunction($_hrefFunction) {
126 125
 		$this->_hrefFunction = $_hrefFunction;
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/traits/SemanticComponentsTrait.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -47,6 +47,9 @@
 block discarded – undo
47 47
 		return $this->addComponent(new Accordion($this->js), $attachTo, $params);
48 48
 	}
49 49
 
50
+	/**
51
+	 * @param string $attachTo
52
+	 */
50 53
 	public function sticky($attachTo=NULL, $params=NULL) {
51 54
 		return $this->addComponent(new Sticky($this->js), $attachTo, $params);
52 55
 	}
Please login to merge, or discard this patch.
Ajax/semantic/html/collections/HtmlGrid.php 1 patch
Doc Comments   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,6 +22,10 @@  discard block
 block discarded – undo
22 22
 	private $_colSizing=true;
23 23
 	private $_implicitRows=false;
24 24
 
25
+	/**
26
+	 * @param string $identifier
27
+	 * @param integer $numCols
28
+	 */
25 29
 	public function __construct( $identifier,$numRows=1,$numCols=NULL,$createCols=true,$implicitRows=false){
26 30
 		parent::__construct( $identifier, "div","ui grid");
27 31
 		$this->_implicitRows=$implicitRows;
@@ -148,7 +152,7 @@  discard block
 block discarded – undo
148 152
 	/**
149 153
 	 * return the row at $index
150 154
 	 * @param int $index
151
-	 * @return \Ajax\semantic\html\collections\HtmlGridRow
155
+	 * @return \Ajax\common\html\HtmlDoubleElement
152 156
 	 */
153 157
 	public function getRow($index){
154 158
 		return $this->getItem($index);
@@ -284,7 +288,7 @@  discard block
 block discarded – undo
284 288
 
285 289
 	/**
286 290
 	 * stretch the row contents to take up the entire column height
287
-	 * @return \Ajax\semantic\html\content\HtmlGridRow
291
+	 * @return HtmlGrid
288 292
 	 */
289 293
 	public function setStretched(){
290 294
 		return $this->addToProperty("class", "stretched");
Please login to merge, or discard this patch.
Ajax/semantic/html/elements/HtmlList.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -10,6 +10,9 @@  discard block
 block discarded – undo
10 10
 class HtmlList extends HtmlSemCollection{
11 11
 	protected $_hasCheckedList;
12 12
 
13
+	/**
14
+	 * @param string $identifier
15
+	 */
13 16
 	public function __construct( $identifier, $items=array()){
14 17
 		parent::__construct( $identifier, "div", "ui list");
15 18
 		$this->addItems($items);
@@ -27,6 +30,9 @@  discard block
 block discarded – undo
27 30
 		return $item;
28 31
 	}
29 32
 
33
+	/**
34
+	 * @param integer $niveau
35
+	 */
30 36
 	public function addHeader($niveau,$content){
31 37
 		return $this->wrap(new HtmlHeader("header-".$this->identifier,$niveau,$content,"page"));
32 38
 	}
Please login to merge, or discard this patch.
Ajax/common/html/BaseHtml.php 1 patch
Doc Comments   +39 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,22 +142,36 @@  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 removePropertyValues($name,$values){
147 158
 		$this->removeOldValues($this->properties[$name], $values);
148 159
 		return $this;
149 160
 	}
150 161
 
162
+	/**
163
+	 * @param string $name
164
+	 */
151 165
 	protected function removeProperty($name){
152 166
 		if(\array_key_exists($name, $this->properties))
153 167
 			unset($this->properties[$name]);
154 168
 		return $this;
155 169
 	}
156 170
 
171
+	/**
172
+	 * @param string $name
173
+	 * @param string[] $typeCtrl
174
+	 */
157 175
 	protected function addToMemberCtrl(&$name, $value, $typeCtrl, $separator=" ") {
158 176
 		if ($this->ctrl($name, $value, $typeCtrl)===true) {
159 177
 			if (is_array($typeCtrl)) {
@@ -178,6 +196,9 @@  discard block
 block discarded – undo
178 196
 		return $this->addToProperty($name, $value);
179 197
 	}
180 198
 
199
+	/**
200
+	 * @param string $name
201
+	 */
181 202
 	public function addToPropertyCtrl($name, $value, $typeCtrl) {
182 203
 		// if($this->ctrl($name, $value, $typeCtrl)===true){
183 204
 		return $this->addToPropertyUnique($name, $value, $typeCtrl);
@@ -317,6 +338,9 @@  discard block
 block discarded – undo
317 338
 		}
318 339
 	}
319 340
 
341
+	/**
342
+	 * @param string $operation
343
+	 */
320 344
 	public function _ajaxOn($operation, $event, $url, $responseElement="", $parameters=array()) {
321 345
 		$params=array (
322 346
 				"url" => $url,
@@ -327,14 +351,23 @@  discard block
 block discarded – undo
327 351
 		return $this;
328 352
 	}
329 353
 
354
+	/**
355
+	 * @param string $event
356
+	 */
330 357
 	public function getOn($event, $url, $responseElement="", $parameters=array()) {
331 358
 		return $this->_ajaxOn("get", $event, $url, $responseElement, $parameters);
332 359
 	}
333 360
 
361
+	/**
362
+	 * @param string $url
363
+	 */
334 364
 	public function getOnClick($url, $responseElement="", $parameters=array()) {
335 365
 		return $this->getOn("click", $url, $responseElement, $parameters);
336 366
 	}
337 367
 
368
+	/**
369
+	 * @param string $event
370
+	 */
338 371
 	public function postOn($event, $url, $params="{}", $responseElement="", $parameters=array()) {
339 372
 		$parameters ["params"]=$params;
340 373
 		return $this->_ajaxOn("post", $event, $url, $responseElement, $parameters);
@@ -344,6 +377,9 @@  discard block
 block discarded – undo
344 377
 		return $this->postOn("click", $url, $params, $responseElement, $parameters);
345 378
 	}
346 379
 
380
+	/**
381
+	 * @param string $event
382
+	 */
347 383
 	public function postFormOn($event, $url, $form, $responseElement="", $parameters=array()) {
348 384
 		$parameters ["form"]=$form;
349 385
 		return $this->_ajaxOn("postForm", $event, $url, $responseElement, $parameters);
@@ -393,6 +429,9 @@  discard block
 block discarded – undo
393 429
 		return $value;
394 430
 	}
395 431
 
432
+	/**
433
+	 * @param string $jqueryCall
434
+	 */
396 435
 	public function jsDoJquery($jqueryCall, $param=""){
397 436
 		return "$('#".$this->identifier."').".$jqueryCall."(".$this->_prep_value($param).");";
398 437
 	}
Please login to merge, or discard this patch.
Ajax/semantic/html/elements/HtmlLabel.php 1 patch
Doc Comments   +5 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,6 +10,11 @@  discard block
 block discarded – undo
10 10
 
11 11
 class HtmlLabel extends HtmlSemDoubleElement {
12 12
 	use LabeledIconTrait;
13
+
14
+	/**
15
+	 * @param string $identifier
16
+	 * @param string $icon
17
+	 */
13 18
 	public function __construct($identifier,$caption="",$icon=NULL,$tagName="div") {
14 19
 		parent::__construct($identifier,$tagName,"ui label");
15 20
 		$this->content=$caption;
@@ -18,7 +23,6 @@  discard block
 block discarded – undo
18 23
 	}
19 24
 
20 25
 	/**
21
-	 * @param string $side
22 26
 	 * @return \Ajax\semantic\html\elements\HtmlLabel
23 27
 	 */
24 28
 	public function setPointing($value=Direction::NONE){
Please login to merge, or discard this patch.