@@ -54,6 +54,9 @@ |
||
| 54 | 54 | return $this->setParam("keyboard", $value); |
| 55 | 55 | } |
| 56 | 56 | |
| 57 | + /** |
|
| 58 | + * @param boolean $value |
|
| 59 | + */ |
|
| 57 | 60 | public function setDraggable($value) { |
| 58 | 61 | if ($value) { |
| 59 | 62 | $this->jsCodes ["draggable"]=new Draggable(); |
@@ -19,6 +19,10 @@ discard block |
||
| 19 | 19 | protected $attr; |
| 20 | 20 | |
| 21 | 21 | |
| 22 | + /** |
|
| 23 | + * @param string $identifier |
|
| 24 | + * @param string $tagName |
|
| 25 | + */ |
|
| 22 | 26 | public function __construct($identifier,$tagName){ |
| 23 | 27 | parent::__construct($identifier,$tagName); |
| 24 | 28 | $this->root=""; |
@@ -29,7 +33,6 @@ discard block |
||
| 29 | 33 | * Associate an ajax get to the elements, displayed in $targetSelector |
| 30 | 34 | * $attr member is used to build each element url |
| 31 | 35 | * @param string $targetSelector the target of the get |
| 32 | - * @param string $attr the html attribute used to build the elements url |
|
| 33 | 36 | * @return HtmlNavElement |
| 34 | 37 | */ |
| 35 | 38 | public function autoGetOnClick($targetSelector){ |
@@ -14,6 +14,11 @@ discard block |
||
| 14 | 14 | */ |
| 15 | 15 | class HtmlGridRow extends HtmlBsDoubleElement { |
| 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"); |
@@ -86,6 +91,11 @@ discard block |
||
| 86 | 91 | $this->delete($size,$start+1, $width); |
| 87 | 92 | } |
| 88 | 93 | } |
| 94 | + |
|
| 95 | + /** |
|
| 96 | + * @param integer $start |
|
| 97 | + * @param integer $width |
|
| 98 | + */ |
|
| 89 | 99 | public function delete($size=CssSize::SIZE_MD,$start,$width){ |
| 90 | 100 | while($start<sizeof($this->cols)+1 && $width>0){ |
| 91 | 101 | $col=$this->getColAt($start,false); |
@@ -5,7 +5,6 @@ |
||
| 5 | 5 | use Ajax\semantic\html\base\HtmlSemDoubleElement; |
| 6 | 6 | use Ajax\JsUtils; |
| 7 | 7 | use Ajax\service\JArray; |
| 8 | - |
|
| 9 | 8 | use Ajax\semantic\html\base\constants\State; |
| 10 | 9 | |
| 11 | 10 | class HtmlProgress extends HtmlSemDoubleElement { |
@@ -49,6 +49,9 @@ |
||
| 49 | 49 | $element->setStyle($value); |
| 50 | 50 | } |
| 51 | 51 | |
| 52 | + /** |
|
| 53 | + * @param HtmlDropdown $bt |
|
| 54 | + */ |
|
| 52 | 55 | private function dropdownAsButton($bt) { |
| 53 | 56 | $this->addExistingDropDown($bt); |
| 54 | 57 | $bt->setTagName("button"); |
@@ -12,6 +12,11 @@ discard block |
||
| 12 | 12 | |
| 13 | 13 | class HtmlButtontoolbar extends HtmlButtongroups { |
| 14 | 14 | |
| 15 | + /** |
|
| 16 | + * @param string $identifier |
|
| 17 | + * @param string $cssStyle |
|
| 18 | + * @param string $size |
|
| 19 | + */ |
|
| 15 | 20 | public function __construct($identifier, $elements=array(), $cssStyle=NULL, $size=NULL, $tagName="div") { |
| 16 | 21 | parent::__construct($identifier, $elements, $cssStyle, $size, $tagName); |
| 17 | 22 | $this->setClass("btn-toolbar"); |
@@ -57,7 +62,7 @@ discard block |
||
| 57 | 62 | |
| 58 | 63 | /** |
| 59 | 64 | * return the Buttongroups at position $index |
| 60 | - * @return \Ajax\bootstrap\html\HtmlButtongroups |
|
| 65 | + * @return HtmlButton |
|
| 61 | 66 | */ |
| 62 | 67 | public function getGroup($index) { |
| 63 | 68 | 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); |
@@ -5,7 +5,6 @@ |
||
| 5 | 5 | use Ajax\semantic\html\base\HtmlSemDoubleElement; |
| 6 | 6 | use Ajax\JsUtils; |
| 7 | 7 | use Ajax\service\JArray; |
| 8 | - |
|
| 9 | 8 | use Ajax\semantic\html\base\constants\State; |
| 10 | 9 | |
| 11 | 10 | class HtmlProgress extends HtmlSemDoubleElement { |
@@ -22,6 +22,7 @@ discard block |
||
| 22 | 22 | /** |
| 23 | 23 | * |
| 24 | 24 | * @param string $identifier the id |
| 25 | + * @param string $cssStyle |
|
| 25 | 26 | */ |
| 26 | 27 | public function __construct($identifier, $value="", $items=array(), $cssStyle=null, $onClick=null) { |
| 27 | 28 | parent::__construct($identifier, "", $cssStyle, $onClick); |
@@ -45,7 +46,7 @@ discard block |
||
| 45 | 46 | /** |
| 46 | 47 | * define the button style |
| 47 | 48 | * avaible values : "btn-default","btn-primary","btn-success","btn-info","btn-warning","btn-danger" |
| 48 | - * @param string|int $cssStyle |
|
| 49 | + * @param string $cssStyle |
|
| 49 | 50 | * @return \Ajax\bootstrap\html\HtmlDropdown default : "btn-default" |
| 50 | 51 | */ |
| 51 | 52 | public function setStyle($cssStyle) { |
@@ -149,10 +150,16 @@ discard block |
||
| 149 | 150 | return $this->items [$index]; |
| 150 | 151 | } |
| 151 | 152 | |
| 153 | + /** |
|
| 154 | + * @param string $value |
|
| 155 | + */ |
|
| 152 | 156 | public function setBtnClass($value) { |
| 153 | 157 | $this->class=$value; |
| 154 | 158 | } |
| 155 | 159 | |
| 160 | + /** |
|
| 161 | + * @param string $value |
|
| 162 | + */ |
|
| 156 | 163 | public function setMClass($value) { |
| 157 | 164 | $this->mClass=$value; |
| 158 | 165 | } |
@@ -183,6 +190,7 @@ discard block |
||
| 183 | 190 | /** |
| 184 | 191 | * Sets the tagName's dropdown |
| 185 | 192 | * @see \Ajax\bootstrap\html\BaseHtml::setTagName() |
| 193 | + * @param string $tagName |
|
| 186 | 194 | */ |
| 187 | 195 | public function setTagName($tagName) { |
| 188 | 196 | if ($tagName=="button") |
@@ -194,6 +202,9 @@ discard block |
||
| 194 | 202 | return $this->compile(); |
| 195 | 203 | } |
| 196 | 204 | |
| 205 | + /** |
|
| 206 | + * @param string $btnCaption |
|
| 207 | + */ |
|
| 197 | 208 | public function setBtnCaption($btnCaption) { |
| 198 | 209 | $this->btnCaption=$btnCaption; |
| 199 | 210 | return $this; |
@@ -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 ) { |
@@ -5,7 +5,6 @@ |
||
| 5 | 5 | use Ajax\semantic\html\base\HtmlSemDoubleElement; |
| 6 | 6 | use Ajax\JsUtils; |
| 7 | 7 | use Ajax\service\JArray; |
| 8 | - |
|
| 9 | 8 | use Ajax\semantic\html\base\constants\State; |
| 10 | 9 | |
| 11 | 10 | class HtmlProgress extends HtmlSemDoubleElement { |
@@ -16,6 +16,10 @@ |
||
| 16 | 16 | class HtmlGridSystem extends HtmlBsDoubleElement { |
| 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"); |