@@ -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 ) { |
@@ -19,6 +19,9 @@ discard block |
||
| 19 | 19 | protected $style=""; |
| 20 | 20 | protected $styleLimits=null; |
| 21 | 21 | |
| 22 | + /** |
|
| 23 | + * @param string $identifier |
|
| 24 | + */ |
|
| 22 | 25 | public function __construct($identifier, $style="info", $value=0, $max=100, $min=0) { |
| 23 | 26 | parent::__construct($identifier); |
| 24 | 27 | $this->_template=include 'templates/tplProgressbar.php'; |
@@ -28,6 +31,9 @@ discard block |
||
| 28 | 31 | $this->setStyle($style); |
| 29 | 32 | } |
| 30 | 33 | |
| 34 | + /** |
|
| 35 | + * @param boolean $value |
|
| 36 | + */ |
|
| 31 | 37 | public function setActive($value) { |
| 32 | 38 | if(is_array($this->content)){ |
| 33 | 39 | foreach ($this->content as $pb){ |
@@ -42,6 +48,9 @@ discard block |
||
| 42 | 48 | return $this; |
| 43 | 49 | } |
| 44 | 50 | |
| 51 | + /** |
|
| 52 | + * @param boolean $value |
|
| 53 | + */ |
|
| 45 | 54 | public function setStriped($value) { |
| 46 | 55 | if(is_array($this->content)){ |
| 47 | 56 | foreach ($this->content as $pb){ |
@@ -56,6 +65,9 @@ discard block |
||
| 56 | 65 | return $this; |
| 57 | 66 | } |
| 58 | 67 | |
| 68 | + /** |
|
| 69 | + * @param boolean $value |
|
| 70 | + */ |
|
| 59 | 71 | public function showCaption($value) { |
| 60 | 72 | if(is_array($this->content)){ |
| 61 | 73 | foreach ($this->content as $pb){ |
@@ -113,6 +125,9 @@ discard block |
||
| 113 | 125 | return $this->isStacked; |
| 114 | 126 | } |
| 115 | 127 | |
| 128 | + /** |
|
| 129 | + * @param boolean $isStacked |
|
| 130 | + */ |
|
| 116 | 131 | public function setIsStacked($isStacked) { |
| 117 | 132 | $this->isStacked=$isStacked; |
| 118 | 133 | return $this; |
@@ -121,7 +136,7 @@ discard block |
||
| 121 | 136 | /** |
| 122 | 137 | * define the progressbar style |
| 123 | 138 | * avaible values : "success","info","warning","danger" |
| 124 | - * @param string|int $cssStyle |
|
| 139 | + * @param string $cssStyle |
|
| 125 | 140 | * @return \Ajax\bootstrap\html\HtmlProgressbar default : "" |
| 126 | 141 | */ |
| 127 | 142 | public function setStyle($cssStyle) { |
@@ -7,6 +7,9 @@ |
||
| 7 | 7 | |
| 8 | 8 | class PropertyWrapper { |
| 9 | 9 | |
| 10 | + /** |
|
| 11 | + * @param \Ajax\JsUtils $js |
|
| 12 | + */ |
|
| 10 | 13 | public static function wrap($input, $js=NULL, $separator=' ', $valueQuote='"') { |
| 11 | 14 | $output=""; |
| 12 | 15 | if (is_string($input)) { |
@@ -18,6 +18,9 @@ discard block |
||
| 18 | 18 | */ |
| 19 | 19 | class HtmlListgroupItem extends HtmlElementAsContent { |
| 20 | 20 | |
| 21 | + /** |
|
| 22 | + * @param HtmlBsDoubleElement $element |
|
| 23 | + */ |
|
| 21 | 24 | public function __construct($element) { |
| 22 | 25 | parent::__construct($element); |
| 23 | 26 | $this->element->setProperty("class", "list-group-item"); |
@@ -37,7 +40,7 @@ discard block |
||
| 37 | 40 | * define the Panel style |
| 38 | 41 | * avaible values : "list-group-item-default","list-group-item-primary","list-group-item-success","list-group-item-info","list-group-item-warning","list-group-item-danger" |
| 39 | 42 | * @param string|int $cssStyle |
| 40 | - * @return \Ajax\bootstrap\html\HtmlListgroupItem default : "list-group-item-default" |
|
| 43 | + * @return \Ajax\common\html\HtmlSingleElement default : "list-group-item-default" |
|
| 41 | 44 | */ |
| 42 | 45 | public function setStyle($cssStyle) { |
| 43 | 46 | if (!PhalconUtils::startsWith($cssStyle, "list-group-item")) |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | /** |
| 35 | 35 | * Set the button value |
| 36 | 36 | * @param string $value |
| 37 | - * @return \Ajax\semantic\html\HtmlButton |
|
| 37 | + * @return HtmlButton |
|
| 38 | 38 | */ |
| 39 | 39 | public function setValue($value) { |
| 40 | 40 | $this->content=$value; |
@@ -43,8 +43,8 @@ discard block |
||
| 43 | 43 | |
| 44 | 44 | /** |
| 45 | 45 | * define the button style |
| 46 | - * @param string|int $cssStyle |
|
| 47 | - * @return \Ajax\semantic\html\HtmlButton default : "" |
|
| 46 | + * @param string $cssStyle |
|
| 47 | + * @return HtmlButton default : "" |
|
| 48 | 48 | */ |
| 49 | 49 | public function setStyle($cssStyle) { |
| 50 | 50 | return $this->addToProperty("class",$cssStyle); |
@@ -87,7 +87,7 @@ discard block |
||
| 87 | 87 | } |
| 88 | 88 | |
| 89 | 89 | /** |
| 90 | - * @param string|HtmlIcon $icon |
|
| 90 | + * @param string $icon |
|
| 91 | 91 | * @return \Ajax\semantic\html\elements\HtmlButton |
| 92 | 92 | */ |
| 93 | 93 | public function asIcon($icon){ |
@@ -16,6 +16,10 @@ discard block |
||
| 16 | 16 | class HtmlGridRow extends HtmlCollection{ |
| 17 | 17 | |
| 18 | 18 | private $_colSize; |
| 19 | + |
|
| 20 | + /** |
|
| 21 | + * @param string $identifier |
|
| 22 | + */ |
|
| 19 | 23 | public function __construct( $identifier,$numCols=NULL,$colSizing=false){ |
| 20 | 24 | parent::__construct( $identifier,"div"); |
| 21 | 25 | $this->setClass("row"); |
@@ -49,7 +53,7 @@ discard block |
||
| 49 | 53 | /** |
| 50 | 54 | * return the col at $index |
| 51 | 55 | * @param int $index |
| 52 | - * @return \Ajax\semantic\html\collections\HtmlGridCol |
|
| 56 | + * @return \Ajax\common\html\HtmlDoubleElement |
|
| 53 | 57 | */ |
| 54 | 58 | public function getCol($index){ |
| 55 | 59 | return $this->getItem($index); |
@@ -19,6 +19,11 @@ discard block |
||
| 19 | 19 | private $_createCols; |
| 20 | 20 | private $_colSizing=true; |
| 21 | 21 | private $_implicitRows=false; |
| 22 | + |
|
| 23 | + /** |
|
| 24 | + * @param string $identifier |
|
| 25 | + * @param integer $numCols |
|
| 26 | + */ |
|
| 22 | 27 | public function __construct( $identifier,$numRows=1,$numCols=NULL,$createCols=true,$implicitRows=false){ |
| 23 | 28 | parent::__construct( $identifier, "div"); |
| 24 | 29 | $this->_implicitRows=$implicitRows; |
@@ -51,7 +56,7 @@ discard block |
||
| 51 | 56 | /** |
| 52 | 57 | * return the row at $index |
| 53 | 58 | * @param int $index |
| 54 | - * @return \Ajax\semantic\html\collections\HtmlGridRow |
|
| 59 | + * @return \Ajax\common\html\HtmlDoubleElement |
|
| 55 | 60 | */ |
| 56 | 61 | public function getRow($index){ |
| 57 | 62 | return $this->getItem($index); |
@@ -4,7 +4,6 @@ |
||
| 4 | 4 | use Ajax\semantic\html\base\constants\Side; |
| 5 | 5 | trait AttachedTrait { |
| 6 | 6 | /** |
| 7 | - * @param string $side |
|
| 8 | 7 | * @return \Ajax\semantic\html\base\HtmlSemDoubleElement |
| 9 | 8 | */ |
| 10 | 9 | public function setAttachment($value=Side::BOTH){ |
@@ -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%"; |