@@ -25,6 +25,9 @@ discard block |
||
| 25 | 25 | protected $_associative; |
| 26 | 26 | protected $_multiple; |
| 27 | 27 | |
| 28 | + /** |
|
| 29 | + * @param string $identifier |
|
| 30 | + */ |
|
| 28 | 31 | public function __construct($identifier, $value="", $items=array(),$associative=true) { |
| 29 | 32 | parent::__construct($identifier, "div"); |
| 30 | 33 | $this->_template=include dirname(__FILE__).'/../templates/tplDropdown.php'; |
@@ -78,7 +81,7 @@ discard block |
||
| 78 | 81 | /** |
| 79 | 82 | * Insert an item at a position |
| 80 | 83 | * @param mixed $item |
| 81 | - * @param number $position |
|
| 84 | + * @param integer $position |
|
| 82 | 85 | * @return \Ajax\semantic\html\content\HtmlDropdownItem|unknown |
| 83 | 86 | */ |
| 84 | 87 | public function insertItem($item,$position=0){ |
@@ -190,7 +193,7 @@ discard block |
||
| 190 | 193 | * Sets the values of a property for each item in the collection |
| 191 | 194 | * @param string $property |
| 192 | 195 | * @param array $values |
| 193 | - * @return HtmlCollection |
|
| 196 | + * @return HtmlDropdown |
|
| 194 | 197 | */ |
| 195 | 198 | public function setPropertyValues($property,$values){ |
| 196 | 199 | $i=0; |
@@ -209,6 +212,9 @@ discard block |
||
| 209 | 212 | return $this; |
| 210 | 213 | } |
| 211 | 214 | |
| 215 | + /** |
|
| 216 | + * @param integer $index |
|
| 217 | + */ |
|
| 212 | 218 | public function getItem($index){ |
| 213 | 219 | return $this->items[$index]; |
| 214 | 220 | } |
@@ -302,6 +308,9 @@ discard block |
||
| 302 | 308 | return $this->addToPropertyCtrl("class", $value." pointing",Direction::getConstantValues("pointing")); |
| 303 | 309 | } |
| 304 | 310 | |
| 311 | + /** |
|
| 312 | + * @param string $value |
|
| 313 | + */ |
|
| 305 | 314 | public function setValue($value){ |
| 306 | 315 | $this->value=$value; |
| 307 | 316 | return $this; |
@@ -338,6 +347,9 @@ discard block |
||
| 338 | 347 | return $this->addToPropertyCtrl("class", "compact", array("compact")); |
| 339 | 348 | } |
| 340 | 349 | |
| 350 | + /** |
|
| 351 | + * @param string $action |
|
| 352 | + */ |
|
| 341 | 353 | public function setAction($action){ |
| 342 | 354 | $this->_params["action"]=$action; |
| 343 | 355 | } |