Completed
Push — master ( 43b921...4de0c7 )
by Jean-Christophe
08:41 queued 04:10
created
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/collections/HtmlBreadcrumb.php 1 patch
Doc Comments   +3 added lines, -4 removed lines patch added patch discarded remove patch
@@ -64,8 +64,7 @@  discard block
 block discarded – undo
64 64
 	 * Associate an ajax get to the breadcrumb elements, displayed in $targetSelector
65 65
 	 * $attr member is used to build each element url
66 66
 	 * @param string $targetSelector the target of the get
67
-	 * @param string $attr the html attribute used to build the elements url
68
-	 * @return HtmlBreadcrumbs
67
+	 * @return HtmlBreadcrumb
69 68
 	 */
70 69
 	public function autoGetOnClick($targetSelector) {
71 70
 		return $this->getOnClick($this->root, $targetSelector, array ("attr" => $this->attr ));
@@ -91,7 +90,7 @@  discard block
 block discarded – undo
91 90
 	 * Add new elements in breadcrumbs corresponding to request dispatcher : controllerName, actionName, parameters
92 91
 	 * @param JsUtils $js
93 92
 	 * @param Dispatcher $dispatcher the request dispatcher
94
-	 * @return \Ajax\bootstrap\html\HtmlBreadcrumbs
93
+	 * @return HtmlBreadcrumb
95 94
 	 */
96 95
 	public function fromDispatcher(JsUtils $js,$dispatcher, $startIndex=0) {
97 96
 		return $this->addItems($js->fromDispatcher($dispatcher));
@@ -120,7 +119,7 @@  discard block
 block discarded – undo
120 119
 	 * sets the function who generates the href elements.
121 120
 	 * 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/collections/HtmlGrid.php 1 patch
Doc Comments   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,6 +22,9 @@  discard block
 block discarded – undo
22 22
 	private $_colSizing=true;
23 23
 	private $_implicitRows=false;
24 24
 
25
+	/**
26
+	 * @param string $identifier
27
+	 */
25 28
 	public function __construct($identifier, $numRows=1, $numCols=NULL, $createCols=true, $implicitRows=false) {
26 29
 		parent::__construct($identifier, "div", "ui grid");
27 30
 		$this->_implicitRows=$implicitRows;
@@ -158,7 +161,7 @@  discard block
 block discarded – undo
158 161
 	/**
159 162
 	 * return the row at $index
160 163
 	 * @param int $index
161
-	 * @return \Ajax\semantic\html\collections\HtmlGridRow
164
+	 * @return \Ajax\common\html\HtmlDoubleElement
162 165
 	 */
163 166
 	public function getRow($index) {
164 167
 		return $this->getItem($index);
@@ -297,7 +300,7 @@  discard block
 block discarded – undo
297 300
 
298 301
 	/**
299 302
 	 * stretch the row contents to take up the entire column height
300
-	 * @return \Ajax\semantic\html\content\HtmlGridRow
303
+	 * @return HtmlGrid
301 304
 	 */
302 305
 	public function setStretched() {
303 306
 		return $this->addToProperty("class", "stretched");
Please login to merge, or discard this patch.
Ajax/semantic/html/collections/HtmlTable.php 1 patch
Doc Comments   +9 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,6 +17,11 @@  discard block
 block discarded – undo
17 17
 class HtmlTable extends HtmlSemDoubleElement {
18 18
 	private $_colCount;
19 19
 
20
+	/**
21
+	 * @param string $identifier
22
+	 * @param integer $rowCount
23
+	 * @param integer $colCount
24
+	 */
20 25
 	public function __construct($identifier, $rowCount, $colCount) {
21 26
 		parent::__construct($identifier, "table", "ui table");
22 27
 		$this->content=array ();
@@ -96,7 +101,7 @@  discard block
 block discarded – undo
96 101
 	/**
97 102
 	 * Retuns the row at $rowIndex
98 103
 	 * @param int $rowIndex
99
-	 * @return \Ajax\semantic\html\content\HtmlTR
104
+	 * @return \Ajax\common\html\HtmlDoubleElement
100 105
 	 */
101 106
 	public function getRow($rowIndex) {
102 107
 		return $this->getBody()->getRow($rowIndex);
@@ -172,6 +177,9 @@  discard block
 block discarded – undo
172 177
 		return $this->colAlign($colIndex, "colLeft");
173 178
 	}
174 179
 
180
+	/**
181
+	 * @param string $function
182
+	 */
175 183
 	private function colAlign($colIndex, $function) {
176 184
 		if (\is_array($colIndex)) {
177 185
 			foreach ( $colIndex as $cIndex ) {
Please login to merge, or discard this patch.
Ajax/semantic/html/collections/menus/HtmlMenu.php 1 patch
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
 	/**
34 34
 	 * Sets the menu type
35 35
 	 * @param string $type one of text,item
36
-	 * @return \Ajax\semantic\html\collections\HtmlMenu
36
+	 * @return HtmlMenu
37 37
 	 */
38 38
 	public function setType($type="") {
39 39
 		return $this->addToPropertyCtrl("class", $type, array ("","item","text" ));
@@ -81,6 +81,7 @@  discard block
 block discarded – undo
81 81
 	 * {@inheritDoc}
82 82
 	 *
83 83
 	 * @see \Ajax\common\html\HtmlCollection::insertItem()
84
+	 * @param HtmlIcon $item
84 85
 	 */
85 86
 	public function insertItem($item, $position=0) {
86 87
 		$item=parent::insertItem($this->getItemToInsert($item), $position);
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/content/HtmlDropdownItem.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -11,6 +11,10 @@  discard block
 block discarded – undo
11 11
 
12 12
 class HtmlDropdownItem extends HtmlSemDoubleElement {
13 13
 	use IconTrait;
14
+
15
+	/**
16
+	 * @param string $identifier
17
+	 */
14 18
 	public function __construct($identifier, $content="",$value=NULL,$image=NULL) {
15 19
 		parent::__construct($identifier, "a");
16 20
 		$this->setClass("item");
@@ -61,6 +65,9 @@  discard block
 block discarded – undo
61 65
 		return $this;
62 66
 	}
63 67
 
68
+	/**
69
+	 * @param string $content
70
+	 */
64 71
 	public function setContent($content){
65 72
 		if($content==="-"){
66 73
 			$this->asDivider();
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/content/table/HtmlTableContent.php 1 patch
Doc Comments   +16 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,10 +68,16 @@  discard block
 block discarded – undo
68 68
 		return $tr;
69 69
 	}
70 70
 
71
+	/**
72
+	 * @param integer $value
73
+	 */
71 74
 	public function newRow($value) {
72 75
 		return $this->createItem($value);
73 76
 	}
74 77
 
78
+	/**
79
+	 * @param integer $colCount
80
+	 */
75 81
 	public function addRow($colCount) {
76 82
 		return $this->addItem($colCount);
77 83
 	}
@@ -97,7 +103,7 @@  discard block
 block discarded – undo
97 103
 	/**
98 104
 	 *
99 105
 	 * @param int $index
100
-	 * @return \Ajax\semantic\html\content\HtmlTR
106
+	 * @return \Ajax\common\html\HtmlDoubleElement
101 107
 	 */
102 108
 	public function getRow($index) {
103 109
 		return $this->getItem($index);
@@ -141,6 +147,9 @@  discard block
 block discarded – undo
141 147
 		return $this;
142 148
 	}
143 149
 
150
+	/**
151
+	 * @param integer $colIndex
152
+	 */
144 153
 	public function setColValues($colIndex, $values=array()) {
145 154
 		$count=$this->count();
146 155
 		if (\is_array($values) === false) {
@@ -161,6 +170,9 @@  discard block
 block discarded – undo
161 170
 		return $this;
162 171
 	}
163 172
 
173
+	/**
174
+	 * @param integer $rowIndex
175
+	 */
164 176
 	public function setRowValues($rowIndex, $values=array()) {
165 177
 		$count=$this->count();
166 178
 		if (\is_array($values) === false) {
@@ -170,6 +182,9 @@  discard block
 block discarded – undo
170 182
 		return $this;
171 183
 	}
172 184
 
185
+	/**
186
+	 * @param string $function
187
+	 */
173 188
 	private function colAlign($colIndex, $function) {
174 189
 		$count=$this->count();
175 190
 		for($i=0; $i < $count; $i++) {
Please login to merge, or discard this patch.