@@ -48,6 +48,9 @@ discard block |
||
48 | 48 | return $this; |
49 | 49 | } |
50 | 50 | |
51 | + /** |
|
52 | + * @param string $name |
|
53 | + */ |
|
51 | 54 | public function getProperty($name) { |
52 | 55 | if (array_key_exists($name, $this->properties)) |
53 | 56 | return $this->properties [$name]; |
@@ -113,6 +116,10 @@ discard block |
||
113 | 116 | return $this; |
114 | 117 | } |
115 | 118 | |
119 | + /** |
|
120 | + * @param string $name |
|
121 | + * @param string[] $typeCtrl |
|
122 | + */ |
|
116 | 123 | protected function setMemberCtrl(&$name, $value, $typeCtrl) { |
117 | 124 | if ($this->ctrl($name, $value, $typeCtrl)===true) { |
118 | 125 | return $name=$value; |
@@ -128,6 +135,10 @@ discard block |
||
128 | 135 | return $this; |
129 | 136 | } |
130 | 137 | |
138 | + /** |
|
139 | + * @param string $name |
|
140 | + * @param string[] $typeCtrl |
|
141 | + */ |
|
131 | 142 | protected function addToMemberCtrl(&$name, $value, $typeCtrl, $separator=" ") { |
132 | 143 | if ($this->ctrl($name, $value, $typeCtrl)===true) { |
133 | 144 | if (is_array($typeCtrl)) { |
@@ -138,6 +149,9 @@ discard block |
||
138 | 149 | return $this; |
139 | 150 | } |
140 | 151 | |
152 | + /** |
|
153 | + * @param string $name |
|
154 | + */ |
|
141 | 155 | protected function addToMember(&$name, $value, $separator=" ") { |
142 | 156 | $name=str_ireplace($value, "", $name).$separator.$value; |
143 | 157 | return $this; |
@@ -152,6 +166,10 @@ discard block |
||
152 | 166 | return $this->addToProperty($name, $value); |
153 | 167 | } |
154 | 168 | |
169 | + /** |
|
170 | + * @param string $name |
|
171 | + * @param string[] $typeCtrl |
|
172 | + */ |
|
155 | 173 | public function addToPropertyCtrl($name, $value, $typeCtrl) { |
156 | 174 | // if($this->ctrl($name, $value, $typeCtrl)===true){ |
157 | 175 | return $this->addToPropertyUnique($name, $value, $typeCtrl); |
@@ -219,6 +237,9 @@ discard block |
||
219 | 237 | |
220 | 238 | } |
221 | 239 | |
240 | + /** |
|
241 | + * @param string $before |
|
242 | + */ |
|
222 | 243 | public function wrap($before, $after="") { |
223 | 244 | $this->wrapBefore.=$before; |
224 | 245 | $this->wrapAfter=$after.$this->wrapAfter; |
@@ -285,6 +306,9 @@ discard block |
||
285 | 306 | } |
286 | 307 | } |
287 | 308 | |
309 | + /** |
|
310 | + * @param string $operation |
|
311 | + */ |
|
288 | 312 | public function _ajaxOn($operation, $event, $url, $responseElement="", $parameters=array()) { |
289 | 313 | $params=array ( |
290 | 314 | "url" => $url, |
@@ -295,14 +319,23 @@ discard block |
||
295 | 319 | return $this; |
296 | 320 | } |
297 | 321 | |
322 | + /** |
|
323 | + * @param string $event |
|
324 | + */ |
|
298 | 325 | public function getOn($event, $url, $responseElement="", $parameters=array()) { |
299 | 326 | return $this->_ajaxOn("get", $event, $url, $responseElement, $parameters); |
300 | 327 | } |
301 | 328 | |
329 | + /** |
|
330 | + * @param string $url |
|
331 | + */ |
|
302 | 332 | public function getOnClick($url, $responseElement="", $parameters=array()) { |
303 | 333 | return $this->getOn("click", $url, $responseElement, $parameters); |
304 | 334 | } |
305 | 335 | |
336 | + /** |
|
337 | + * @param string $event |
|
338 | + */ |
|
306 | 339 | public function postOn($event, $url, $params="{}", $responseElement="", $parameters=array()) { |
307 | 340 | $parameters ["params"]=$params; |
308 | 341 | return $this->_ajaxOn("post", $event, $url, $responseElement, $parameters); |
@@ -312,6 +345,9 @@ discard block |
||
312 | 345 | return $this->postOn("click", $url, $params, $responseElement, $parameters); |
313 | 346 | } |
314 | 347 | |
348 | + /** |
|
349 | + * @param string $event |
|
350 | + */ |
|
315 | 351 | public function postFormOn($event, $url, $form, $responseElement="", $parameters=array()) { |
316 | 352 | $parameters ["form"]=$form; |
317 | 353 | return $this->_ajaxOn("postForm", $event, $url, $responseElement, $parameters); |
@@ -361,6 +397,9 @@ discard block |
||
361 | 397 | return $value; |
362 | 398 | } |
363 | 399 | |
400 | + /** |
|
401 | + * @param string $jqueryCall |
|
402 | + */ |
|
364 | 403 | public function jsDoJquery($jqueryCall, $param=""){ |
365 | 404 | return "$('#".$this->identifier."').".$jqueryCall."(".$this->_prep_value($param).");"; |
366 | 405 | } |
@@ -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 HtmlDoubleElement $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\bootstrap\html\base\HtmlSingleElement default : "list-group-item-default" |
|
41 | 44 | */ |
42 | 45 | public function setStyle($cssStyle) { |
43 | 46 | if (!PhalconUtils::startsWith($cssStyle, "list-group-item")) |
@@ -175,7 +175,6 @@ discard block |
||
175 | 175 | * Associate an ajax get to the breadcrumbs elements, displayed in $targetSelector |
176 | 176 | * $attr member is used to build each element url |
177 | 177 | * @param string $targetSelector the target of the get |
178 | - * @param string $attr the html attribute used to build the elements url |
|
179 | 178 | * @return HtmlBreadcrumbs |
180 | 179 | */ |
181 | 180 | public function autoGetOnClick($targetSelector){ |
@@ -197,6 +196,9 @@ discard block |
||
197 | 196 | $jsUtils->html("#".$this->identifier,str_replace("\"","'", $this->contentAsString()),true); |
198 | 197 | } |
199 | 198 | |
199 | + /** |
|
200 | + * @param integer $index |
|
201 | + */ |
|
200 | 202 | public function getElement($index){ |
201 | 203 | return $this->content[$index]; |
202 | 204 | } |
@@ -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; |