Completed
Push — master ( fff9f5...ef609f )
by Jean-Christophe
07:06
created
Ajax/semantic/widgets/base/FieldAsTrait.php 1 patch
Doc Comments   +11 added lines patch added patch discarded remove patch
@@ -30,9 +30,17 @@  discard block
 block discarded – undo
30 30
 trait FieldAsTrait{
31 31
 
32 32
 	abstract protected function _getFieldIdentifier($prefix,$name="");
33
+
34
+	/**
35
+	 * @param \Closure $callback
36
+	 */
33 37
 	abstract public function setValueFunction($index,$callback);
34 38
 	abstract protected function _getFieldName($index);
35 39
 	abstract protected function _getFieldCaption($index);
40
+
41
+	/**
42
+	 * @param string $event
43
+	 */
36 44
 	abstract protected function _buttonAsSubmit(BaseHtml &$button,$event,$url,$responseElement=NULL,$parameters=NULL);
37 45
 
38 46
 	/**
@@ -243,6 +251,9 @@  discard block
 block discarded – undo
243 251
 		}
244 252
 	}
245 253
 
254
+	/**
255
+	 * @param integer $index
256
+	 */
246 257
 	public function fieldAs($index,$type,$attributes=NULL){
247 258
 		$method="fieldAs".\ucfirst($type);
248 259
 		if(\method_exists($this, $method)){
Please login to merge, or discard this patch.
Ajax/semantic/html/collections/HtmlGrid.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 $_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;
@@ -162,7 +165,7 @@  discard block
 block discarded – undo
162 165
 	/**
163 166
 	 * return the row at $index
164 167
 	 * @param int $index
165
-	 * @return \Ajax\semantic\html\collections\HtmlGridRow
168
+	 * @return \Ajax\common\html\HtmlDoubleElement
166 169
 	 */
167 170
 	public function getRow($index) {
168 171
 		return $this->getItem($index);
Please login to merge, or discard this patch.
Ajax/semantic/widgets/dataform/DataForm.php 1 patch
Doc Comments   +11 added lines patch added patch discarded remove patch
@@ -72,6 +72,9 @@  discard block
 block discarded – undo
72 72
 		}
73 73
 	}
74 74
 
75
+	/**
76
+	 * @param HtmlForm $form
77
+	 */
75 78
 	protected function _generateFields($form,$values,$headers,$sepFirst,$wrappers){
76 79
 		$wrapper=null;
77 80
 		if(isset($headers[$sepFirst+1]))
@@ -136,12 +139,20 @@  discard block
 block discarded – undo
136 139
 		$this->content[$this->_toolbarPosition]=$this->_toolbar;
137 140
 	}
138 141
 
142
+	/**
143
+	 * @param integer $index
144
+	 * @param string $title
145
+	 */
139 146
 	public function addDividerBefore($index,$title){
140 147
 		$index=$this->_getIndex($index);
141 148
 		$this->_instanceViewer->addHeaderDividerBefore($index, $title);
142 149
 		return $this;
143 150
 	}
144 151
 
152
+	/**
153
+	 * @param string $index
154
+	 * @param string $contentAfter
155
+	 */
145 156
 	public function addWrapper($index,$contentBefore,$contentAfter=null){
146 157
 		$index=$this->_getIndex($index);
147 158
 		$this->_instanceViewer->addWrapper($index, $contentBefore,$contentAfter);
Please login to merge, or discard this patch.
Ajax/semantic/traits/SemanticHtmlViewsTrait.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,6 @@
 block discarded – undo
21 21
 
22 22
 	/**
23 23
 	 * @param string $identifier
24
-	 * @param array $items
25 24
 	 * @return HtmlCardGroups
26 25
 	 */
27 26
 	public function htmlCardGroups($identifier, $cards=array()) {
Please login to merge, or discard this patch.
Ajax/semantic/html/content/view/ContentPartTrait.php 1 patch
Doc Comments   +5 added lines patch added patch discarded remove patch
@@ -7,6 +7,11 @@
 block discarded – undo
7 7
  * @property mixed $content
8 8
  */
9 9
 trait ContentPartTrait{
10
+
11
+	/**
12
+	 * @param \Ajax\semantic\html\elements\HtmlButtonGroups $element
13
+	 * @param string $partKey
14
+	 */
10 15
 	public function addElementInPart($element,$partKey,$before=false,$force=false){
11 16
 		$part=$this->getPart($partKey,null,$force);
12 17
 		if($part instanceof  HtmlSemDoubleElement){
Please login to merge, or discard this patch.
Ajax/semantic/html/content/view/HtmlViewContent.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -12,6 +12,10 @@
 block discarded – undo
12 12
 
13 13
 class HtmlViewContent extends HtmlSemDoubleElement {
14 14
 	use ContentPartTrait;
15
+
16
+	/**
17
+	 * @param string $identifier
18
+	 */
15 19
 	public function __construct($identifier, $content=array()) {
16 20
 		parent::__construct($identifier, "div", "content",[]);
17 21
 		$this->setContent($content);
Please login to merge, or discard this patch.
Ajax/bootstrap/html/HtmlForm.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -87,6 +87,9 @@
 block discarded – undo
87 87
 		return $result;
88 88
 	}
89 89
 
90
+	/**
91
+	 * @return string
92
+	 */
90 93
 	protected function getPrefix($element) {
91 94
 		$result="input_text";
92 95
 		foreach ( $this->formElementsPrefix as $k => $v ) {
Please login to merge, or discard this patch.
Ajax/bootstrap/html/HtmlProgressbar.php 1 patch
Doc Comments   +16 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,6 +19,9 @@  discard block
 block discarded – undo
19 19
 	protected $style="";
20 20
 	protected $styleLimits=null;
21 21
 
22
+	/**
23
+	 * @param string $identifier
24
+	 */
22 25
 	public function __construct($identifier, $style="info", $value=0, $max=100, $min=0) {
23 26
 		parent::__construct($identifier);
24 27
 		$this->_template=include 'templates/tplProgressbar.php';
@@ -28,6 +31,9 @@  discard block
 block discarded – undo
28 31
 		$this->setStyle($style);
29 32
 	}
30 33
 
34
+	/**
35
+	 * @param boolean $value
36
+	 */
31 37
 	public function setActive($value) {
32 38
 		if(\is_array($this->content)){
33 39
 			foreach ($this->content as $pb){
@@ -42,6 +48,9 @@  discard block
 block discarded – undo
42 48
 		return $this;
43 49
 	}
44 50
 
51
+	/**
52
+	 * @param boolean $value
53
+	 */
45 54
 	public function setStriped($value) {
46 55
 		if(\is_array($this->content)){
47 56
 			foreach ($this->content as $pb){
@@ -56,6 +65,9 @@  discard block
 block discarded – undo
56 65
 		return $this;
57 66
 	}
58 67
 
68
+	/**
69
+	 * @param boolean $value
70
+	 */
59 71
 	public function showCaption($value) {
60 72
 		if(\is_array($this->content)){
61 73
 			foreach ($this->content as $pb){
@@ -113,6 +125,9 @@  discard block
 block discarded – undo
113 125
 		return $this->stacked;
114 126
 	}
115 127
 
128
+	/**
129
+	 * @param boolean $stacked
130
+	 */
116 131
 	public function setStacked($stacked) {
117 132
 		$this->stacked=$stacked;
118 133
 		return $this;
@@ -121,7 +136,7 @@  discard block
 block discarded – undo
121 136
 	/**
122 137
 	 * define the progressbar style
123 138
 	 * avaible values : "success","info","warning","danger"
124
-	 * @param string|int $cssStyle
139
+	 * @param string $cssStyle
125 140
 	 * @return \Ajax\bootstrap\html\HtmlProgressbar default : ""
126 141
 	 */
127 142
 	public function setStyle($cssStyle) {
Please login to merge, or discard this patch.
Ajax/common/html/BaseHtml.php 1 patch
Doc Comments   +17 added lines patch added patch discarded remove patch
@@ -63,6 +63,10 @@  discard block
 block discarded – undo
63 63
 
64 64
 
65 65
 
66
+	/**
67
+	 * @param string $name
68
+	 * @param string[] $typeCtrl
69
+	 */
66 70
 	protected function setMemberCtrl(&$name, $value, $typeCtrl) {
67 71
 		if ($this->ctrl($name, $value, $typeCtrl) === true) {
68 72
 			return $name=$value;
@@ -80,6 +84,10 @@  discard block
 block discarded – undo
80 84
 
81 85
 
82 86
 
87
+	/**
88
+	 * @param string $name
89
+	 * @param string[] $typeCtrl
90
+	 */
83 91
 	protected function addToMemberCtrl(&$name, $value, $typeCtrl, $separator=" ") {
84 92
 		if ($this->ctrl($name, $value, $typeCtrl) === true) {
85 93
 			if (\is_array($typeCtrl)) {
@@ -90,6 +98,9 @@  discard block
 block discarded – undo
90 98
 		return $this;
91 99
 	}
92 100
 
101
+	/**
102
+	 * @param string $name
103
+	 */
93 104
 	protected function addToMember(&$name, $value, $separator=" ") {
94 105
 		$name=str_ireplace($value, "", $name) . $separator . $value;
95 106
 		return $this;
@@ -102,6 +113,9 @@  discard block
 block discarded – undo
102 113
 		$oldValue=trim($oldValue);
103 114
 	}
104 115
 
116
+	/**
117
+	 * @param \Closure $callback
118
+	 */
105 119
 	protected function _getElementBy($callback,$elements){
106 120
 		if (\is_array($elements)) {
107 121
 			$elements=\array_values($elements);
@@ -183,6 +197,9 @@  discard block
 block discarded – undo
183 197
 		return $this->_bsComponent;
184 198
 	}
185 199
 
200
+	/**
201
+	 * @param \Ajax\semantic\components\Form $bsComponent
202
+	 */
186 203
 	public function setBsComponent($bsComponent) {
187 204
 		$this->_bsComponent=$bsComponent;
188 205
 		return $this;
Please login to merge, or discard this patch.