@@ -48,6 +48,9 @@ |
||
| 48 | 48 | $element->setStyle($value); |
| 49 | 49 | } |
| 50 | 50 | |
| 51 | + /** |
|
| 52 | + * @param HtmlDropdown $bt |
|
| 53 | + */ |
|
| 51 | 54 | private function dropdownAsButton($bt) { |
| 52 | 55 | $this->addExistingDropDown($bt); |
| 53 | 56 | $bt->setTagName("button"); |
@@ -11,6 +11,11 @@ discard block |
||
| 11 | 11 | |
| 12 | 12 | class HtmlButtontoolbar extends HtmlButtongroups { |
| 13 | 13 | |
| 14 | + /** |
|
| 15 | + * @param string $identifier |
|
| 16 | + * @param string $cssStyle |
|
| 17 | + * @param string $size |
|
| 18 | + */ |
|
| 14 | 19 | public function __construct($identifier, $elements=array(), $cssStyle=NULL, $size=NULL, $tagName="div") { |
| 15 | 20 | parent::__construct($identifier, $elements, $cssStyle, $size, $tagName); |
| 16 | 21 | $this->setClass("btn-toolbar"); |
@@ -56,7 +61,7 @@ discard block |
||
| 56 | 61 | |
| 57 | 62 | /** |
| 58 | 63 | * return the Buttongroups at position $index |
| 59 | - * @return \Ajax\bootstrap\html\HtmlButtongroups |
|
| 64 | + * @return HtmlButton |
|
| 60 | 65 | */ |
| 61 | 66 | public function getGroup($index) { |
| 62 | 67 | return parent::getElement($index); |
@@ -23,6 +23,9 @@ discard block |
||
| 23 | 23 | protected $_base=""; |
| 24 | 24 | protected $_glyphs=array (); |
| 25 | 25 | |
| 26 | + /** |
|
| 27 | + * @param string $identifier |
|
| 28 | + */ |
|
| 26 | 29 | public function __construct($identifier, $images=NULL) { |
| 27 | 30 | parent::__construct($identifier); |
| 28 | 31 | $this->_template=include 'templates/tplCarousel.php'; |
@@ -61,7 +64,7 @@ discard block |
||
| 61 | 64 | * |
| 62 | 65 | * @param string $caption |
| 63 | 66 | * @param string $sens |
| 64 | - * @return HtmlCarouselControl|string |
|
| 67 | + * @return HtmlCarouselControl |
|
| 65 | 68 | */ |
| 66 | 69 | private function createControl($caption="next", $sens="left") { |
| 67 | 70 | $control=new HtmlCarouselControl($sens."-ctrl-".$this->identifier); |
@@ -87,6 +87,9 @@ |
||
| 87 | 87 | return $result; |
| 88 | 88 | } |
| 89 | 89 | |
| 90 | + /** |
|
| 91 | + * @return string |
|
| 92 | + */ |
|
| 90 | 93 | private function getPrefix($element) { |
| 91 | 94 | $result="input_text"; |
| 92 | 95 | foreach ( $this->formElementsPrefix as $k => $v ) { |
@@ -208,7 +208,7 @@ |
||
| 208 | 208 | * Includes a modal-backdrop element. |
| 209 | 209 | * Alternatively, specify static for a backdrop which doesn't close the modal on click. |
| 210 | 210 | * @param Boolean $value default : true |
| 211 | - * @return HtmlModal |
|
| 211 | + * @return boolean |
|
| 212 | 212 | */ |
| 213 | 213 | public function setBackdrop($value) { |
| 214 | 214 | return $this->backdrop=$value; |
@@ -5,7 +5,6 @@ |
||
| 5 | 5 | use Phalcon\Mvc\View; |
| 6 | 6 | use Ajax\JsUtils; |
| 7 | 7 | use Ajax\bootstrap\html\base\BaseHtml; |
| 8 | -use Phalcon\Mvc\Dispatcher; |
|
| 9 | 8 | use Phalcon\Mvc\Controller; |
| 10 | 9 | |
| 11 | 10 | /** |
@@ -20,6 +20,9 @@ |
||
| 20 | 20 | protected $_tabsType="tabs"; |
| 21 | 21 | protected $stacked=""; |
| 22 | 22 | |
| 23 | + /** |
|
| 24 | + * @param string $identifier |
|
| 25 | + */ |
|
| 23 | 26 | public function __construct($identifier, $tagName="ul") { |
| 24 | 27 | parent::__construct($identifier, $tagName); |
| 25 | 28 | $this->_template="<%tagName% %properties%>%tabs%</%tagName%>%content%"; |
@@ -20,6 +20,10 @@ discard block |
||
| 20 | 20 | protected $attr; |
| 21 | 21 | |
| 22 | 22 | |
| 23 | + /** |
|
| 24 | + * @param string $identifier |
|
| 25 | + * @param string $tagName |
|
| 26 | + */ |
|
| 23 | 27 | public function __construct($identifier,$tagName){ |
| 24 | 28 | parent::__construct($identifier,$tagName); |
| 25 | 29 | $this->root=""; |
@@ -30,7 +34,6 @@ discard block |
||
| 30 | 34 | * Associate an ajax get to the elements, displayed in $targetSelector |
| 31 | 35 | * $attr member is used to build each element url |
| 32 | 36 | * @param string $targetSelector the target of the get |
| 33 | - * @param string $attr the html attribute used to build the elements url |
|
| 34 | 37 | * @return HtmlNavElement |
| 35 | 38 | */ |
| 36 | 39 | public function autoGetOnClick($targetSelector){ |
@@ -14,6 +14,11 @@ discard block |
||
| 14 | 14 | */ |
| 15 | 15 | class HtmlGridRow extends HtmlDoubleElement { |
| 16 | 16 | private $cols; |
| 17 | + |
|
| 18 | + /** |
|
| 19 | + * @param string $identifier |
|
| 20 | + * @param integer $numCols |
|
| 21 | + */ |
|
| 17 | 22 | public function __construct($identifier,$numCols=NULL){ |
| 18 | 23 | parent::__construct($identifier,"div"); |
| 19 | 24 | $this->setProperty("class", "row"); |
@@ -85,6 +90,11 @@ discard block |
||
| 85 | 90 | $this->delete($size,$start+1, $width); |
| 86 | 91 | } |
| 87 | 92 | } |
| 93 | + |
|
| 94 | + /** |
|
| 95 | + * @param integer $start |
|
| 96 | + * @param integer $width |
|
| 97 | + */ |
|
| 88 | 98 | public function delete($size=CssSize::SIZE_MD,$start,$width){ |
| 89 | 99 | while($start<sizeof($this->cols)+1 && $width>0){ |
| 90 | 100 | $col=$this->getColAt($start,false); |
@@ -16,6 +16,10 @@ |
||
| 16 | 16 | class HtmlGridSystem extends HtmlDoubleElement { |
| 17 | 17 | private $rows; |
| 18 | 18 | |
| 19 | + /** |
|
| 20 | + * @param string $identifier |
|
| 21 | + * @param integer $numCols |
|
| 22 | + */ |
|
| 19 | 23 | public function __construct($identifier,$numRows=1,$numCols=NULL){ |
| 20 | 24 | parent::__construct($identifier,"div"); |
| 21 | 25 | $this->setProperty("class", "container-fluid"); |