@@ -124,6 +124,10 @@ discard block |
||
| 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 |
||
| 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 |
||
| 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 |
||
| 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 | } |
@@ -283,6 +306,10 @@ discard block |
||
| 283 | 306 | return null; |
| 284 | 307 | } |
| 285 | 308 | |
| 309 | + /** |
|
| 310 | + * @param string $propertyName |
|
| 311 | + * @param string $value |
|
| 312 | + */ |
|
| 286 | 313 | protected function getElementByPropertyValue($propertyName,$value, $elements) { |
| 287 | 314 | if (is_array($elements)) { |
| 288 | 315 | $flag=false; |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | /** |
| 64 | 64 | * Insert an item at a position |
| 65 | 65 | * @param mixed $item |
| 66 | - * @param number $position |
|
| 66 | + * @param integer $position |
|
| 67 | 67 | * @return \Ajax\semantic\html\content\HtmlDropdownItem|unknown |
| 68 | 68 | */ |
| 69 | 69 | public function insertItem($item,$position=0){ |
@@ -164,6 +164,9 @@ discard block |
||
| 164 | 164 | } |
| 165 | 165 | } |
| 166 | 166 | |
| 167 | + /** |
|
| 168 | + * @param integer $index |
|
| 169 | + */ |
|
| 167 | 170 | public function getItem($index){ |
| 168 | 171 | return $this->items[$index]; |
| 169 | 172 | } |
@@ -254,6 +257,9 @@ discard block |
||
| 254 | 257 | return $this->addToPropertyCtrl("class", $value." pointing",Direction::getConstantValues("pointing")); |
| 255 | 258 | } |
| 256 | 259 | |
| 260 | + /** |
|
| 261 | + * @param string $value |
|
| 262 | + */ |
|
| 257 | 263 | public function setValue($value){ |
| 258 | 264 | $this->value=$value; |
| 259 | 265 | return $this; |
@@ -288,6 +294,9 @@ discard block |
||
| 288 | 294 | return $this->addToPropertyCtrl("class", "compact", array("compact")); |
| 289 | 295 | } |
| 290 | 296 | |
| 297 | + /** |
|
| 298 | + * @param string $action |
|
| 299 | + */ |
|
| 291 | 300 | public function setAction($action){ |
| 292 | 301 | $this->_params["action"]=$action; |
| 293 | 302 | } |