@@ -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 ) { |
@@ -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"); |
@@ -719,6 +719,9 @@ discard block |
||
| 719 | 719 | return $this->_create_json($json_result, $match_array_type); |
| 720 | 720 | } |
| 721 | 721 | |
| 722 | + /** |
|
| 723 | + * @param boolean $match_array_type |
|
| 724 | + */ |
|
| 722 | 725 | private function _create_json($json_result, $match_array_type) { |
| 723 | 726 | $json=array (); |
| 724 | 727 | $_is_assoc=TRUE; |
@@ -742,7 +745,7 @@ discard block |
||
| 742 | 745 | * Checks for an associative array |
| 743 | 746 | * |
| 744 | 747 | * @param type |
| 745 | - * @return type |
|
| 748 | + * @return boolean |
|
| 746 | 749 | */ |
| 747 | 750 | public function _is_associative_array($arr) { |
| 748 | 751 | foreach ( array_keys($arr) as $key => $val ) { |