Completed
Branch master (90089b)
by Jean-Christophe
07:19
created
Ajax/bootstrap/components/Modal.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -54,6 +54,9 @@
 block discarded – undo
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();
Please login to merge, or discard this patch.
Ajax/bootstrap/html/base/HtmlNavElement.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,6 +19,10 @@  discard block
 block discarded – undo
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
 block discarded – undo
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){
Please login to merge, or discard this patch.
Ajax/bootstrap/html/content/HtmlGridRow.php 1 patch
Doc Comments   +10 added lines patch added patch discarded remove patch
@@ -14,6 +14,11 @@  discard block
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.
Ajax/bootstrap/html/HtmlAccordion.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -14,6 +14,9 @@  discard block
 block discarded – undo
14 14
  */
15 15
 class HtmlAccordion extends HtmlBsDoubleElement {
16 16
 
17
+	/**
18
+	 * @param string $identifier
19
+	 */
17 20
 	public function __construct($identifier, $tagName="div") {
18 21
 		parent::__construct($identifier, $tagName);
19 22
 		$this->setClass("panel-group");
@@ -22,6 +25,9 @@  discard block
 block discarded – undo
22 25
 		$this->content=array ();
23 26
 	}
24 27
 
28
+	/**
29
+	 * @param string $title
30
+	 */
25 31
 	public function addPanel($title, $content) {
26 32
 		$nb=sizeof($this->content)+1;
27 33
 		$panel=new HtmlPanel("panel-".$this->identifier."-".$nb);
Please login to merge, or discard this patch.
Ajax/bootstrap/html/HtmlButtongroups.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -49,6 +49,9 @@
 block discarded – undo
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");
Please login to merge, or discard this patch.
Ajax/bootstrap/html/HtmlButtontoolbar.php 1 patch
Doc Comments   +6 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,6 +12,11 @@  discard block
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.
Ajax/bootstrap/html/HtmlCarousel.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,6 +23,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.
Ajax/bootstrap/html/HtmlDropdown.php 1 patch
Doc Comments   +12 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,6 +22,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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;
Please login to merge, or discard this patch.
Ajax/bootstrap/html/HtmlForm.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -87,6 +87,9 @@
 block discarded – undo
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 ) {
Please login to merge, or discard this patch.