@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | /** |
| 26 | 26 | * @param string $placeholder |
| 27 | 27 | * @param string $icon |
| 28 | - * @return \Ajax\semantic\html\content\HtmlDropdownItem|\Ajax\semantic\html\content\HtmlMenuItem |
|
| 28 | + * @return MenuItemTrait |
|
| 29 | 29 | */ |
| 30 | 30 | public function asSearchInput($placeholder=NULL,$icon=NULL){ |
| 31 | 31 | $this->setClass("ui icon search input"); |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | } |
| 40 | 40 | |
| 41 | 41 | /** |
| 42 | - * @return \Ajax\semantic\html\content\HtmlDropdownItem|\Ajax\semantic\html\content\HtmlMenuItem |
|
| 42 | + * @return MenuItemTrait |
|
| 43 | 43 | */ |
| 44 | 44 | public function asDivider(){ |
| 45 | 45 | $this->content=NULL; |
@@ -51,7 +51,7 @@ discard block |
||
| 51 | 51 | /** |
| 52 | 52 | * @param string $caption |
| 53 | 53 | * @param string $icon |
| 54 | - * @return \Ajax\semantic\html\content\HtmlDropdownItem|\Ajax\semantic\html\content\HtmlMenuItem |
|
| 54 | + * @return MenuItemTrait |
|
| 55 | 55 | */ |
| 56 | 56 | public function asHeader($caption=NULL,$icon=NULL){ |
| 57 | 57 | $this->setClass("header"); |
@@ -12,6 +12,10 @@ discard block |
||
| 12 | 12 | protected $variation; |
| 13 | 13 | protected $params; |
| 14 | 14 | protected $semElement; |
| 15 | + |
|
| 16 | + /** |
|
| 17 | + * @param HtmlSemDoubleElement $semElement |
|
| 18 | + */ |
|
| 15 | 19 | public function __construct($semElement,$title="",$content="",$variation=NULL,$params=array()){ |
| 16 | 20 | $this->semElement=$semElement; |
| 17 | 21 | $this->title=$title; |
@@ -19,6 +23,9 @@ discard block |
||
| 19 | 23 | $this->setAttributes($variation,$params); |
| 20 | 24 | } |
| 21 | 25 | |
| 26 | + /** |
|
| 27 | + * @param string $html |
|
| 28 | + */ |
|
| 22 | 29 | public function setHtml($html) { |
| 23 | 30 | $this->html= $html; |
| 24 | 31 | return $this; |
@@ -22,6 +22,9 @@ discard block |
||
| 22 | 22 | protected $input; |
| 23 | 23 | protected $value; |
| 24 | 24 | |
| 25 | + /** |
|
| 26 | + * @param string $identifier |
|
| 27 | + */ |
|
| 25 | 28 | public function __construct($identifier, $value="", $items=array()) { |
| 26 | 29 | parent::__construct($identifier, "div"); |
| 27 | 30 | $this->_template=include dirname(__FILE__).'/../templates/tplDropdown.php'; |
@@ -49,7 +52,7 @@ discard block |
||
| 49 | 52 | /** |
| 50 | 53 | * Insert an item at a position |
| 51 | 54 | * @param mixed $item |
| 52 | - * @param number $position |
|
| 55 | + * @param integer $position |
|
| 53 | 56 | * @return \Ajax\semantic\html\content\HtmlDropdownItem|unknown |
| 54 | 57 | */ |
| 55 | 58 | public function insertItem($item,$position=0){ |
@@ -240,6 +243,9 @@ discard block |
||
| 240 | 243 | return $this->addToPropertyCtrl("class", $value." pointing",Direction::getConstantValues("pointing")); |
| 241 | 244 | } |
| 242 | 245 | |
| 246 | + /** |
|
| 247 | + * @param string $value |
|
| 248 | + */ |
|
| 243 | 249 | public function setValue($value){ |
| 244 | 250 | $this->value=$value; |
| 245 | 251 | return $this; |
@@ -274,6 +280,9 @@ discard block |
||
| 274 | 280 | return $this->addToPropertyCtrl("class", "compact", array("compact")); |
| 275 | 281 | } |
| 276 | 282 | |
| 283 | + /** |
|
| 284 | + * @param string $action |
|
| 285 | + */ |
|
| 277 | 286 | public function setAction($action){ |
| 278 | 287 | $this->_params["action"]=$action; |
| 279 | 288 | } |
@@ -27,6 +27,9 @@ discard block |
||
| 27 | 27 | return $result; |
| 28 | 28 | } |
| 29 | 29 | |
| 30 | + /** |
|
| 31 | + * @param string $key |
|
| 32 | + */ |
|
| 30 | 33 | private function addElementInContent($key, $element) { |
| 31 | 34 | if (\array_key_exists($key, $this->content) === false) { |
| 32 | 35 | $this->content[$key]=array (); |
@@ -35,6 +38,9 @@ discard block |
||
| 35 | 38 | return $element; |
| 36 | 39 | } |
| 37 | 40 | |
| 41 | + /** |
|
| 42 | + * @param string $part |
|
| 43 | + */ |
|
| 38 | 44 | private function getPart($part, $index=NULL) { |
| 39 | 45 | if (\array_key_exists($part, $this->content)) { |
| 40 | 46 | if (isset($index)) |
@@ -59,6 +65,10 @@ discard block |
||
| 59 | 65 | return $this->addElementInContent("content", $image); |
| 60 | 66 | } |
| 61 | 67 | |
| 68 | + /** |
|
| 69 | + * @param HtmlImage $visibleContent |
|
| 70 | + * @param HtmlImage $hiddenContent |
|
| 71 | + */ |
|
| 62 | 72 | public function addReveal($visibleContent, $hiddenContent=NULL, $type=RevealType::FADE, $attributeType=NULL) { |
| 63 | 73 | $reveal=$visibleContent; |
| 64 | 74 | if (!$visibleContent instanceof HtmlReveal) { |