@@ -3,7 +3,6 @@ |
||
| 3 | 3 | |
| 4 | 4 | use Ajax\bootstrap\html\base\CssSize; |
| 5 | 5 | use Ajax\JsUtils; |
| 6 | - |
|
| 7 | 6 | use Ajax\bootstrap\html\base\HtmlBsDoubleElement; |
| 8 | 7 | |
| 9 | 8 | /** |
@@ -14,6 +14,9 @@ discard block |
||
| 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 |
||
| 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); |
@@ -40,7 +46,6 @@ discard block |
||
| 40 | 46 | /** |
| 41 | 47 | * render the content of an existing view : $controller/$action and set the response to a new panel |
| 42 | 48 | * @param string $title The panel title |
| 43 | - * @param Controller $initialController |
|
| 44 | 49 | * @param View $view |
| 45 | 50 | * @param string $controller a Phalcon controller |
| 46 | 51 | * @param string $action a Phalcon action |
@@ -7,7 +7,6 @@ |
||
| 7 | 7 | use Ajax\bootstrap\html\base\CssRef; |
| 8 | 8 | use Ajax\bootstrap\html\base\HtmlBsDoubleElement; |
| 9 | 9 | use Ajax\bootstrap\html\content\HtmlCarouselItem; |
| 10 | - |
|
| 11 | 10 | use Ajax\common\html\BaseHtml; |
| 12 | 11 | /** |
| 13 | 12 | * Composant Twitter Bootstrap Carousel |
@@ -4,7 +4,6 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Ajax\bootstrap\html\base\HtmlBsDoubleElement; |
| 6 | 6 | use Ajax\JsUtils; |
| 7 | - |
|
| 8 | 7 | use Ajax\common\html\html5\HtmlSelect; |
| 9 | 8 | |
| 10 | 9 | class HtmlForm extends HtmlBsDoubleElement { |
@@ -4,7 +4,6 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Ajax\bootstrap\html\base\HtmlBsDoubleElement; |
| 6 | 6 | use Ajax\JsUtils; |
| 7 | - |
|
| 8 | 7 | use Ajax\bootstrap\html\base\CssRef; |
| 9 | 8 | use Ajax\service\JArray; |
| 10 | 9 | |
@@ -124,6 +124,10 @@ discard block |
||
| 124 | 124 | return $this; |
| 125 | 125 | } |
| 126 | 126 | |
| 127 | + /** |
|
| 128 | + * @param string $name |
|
| 129 | + * @param string[] $typeCtrl |
|
| 130 | + */ |
|
| 127 | 131 | protected function setMemberCtrl(&$name, $value, $typeCtrl) { |
| 128 | 132 | if ($this->ctrl($name, $value, $typeCtrl) === true) { |
| 129 | 133 | return $name=$value; |
@@ -139,22 +143,35 @@ discard block |
||
| 139 | 143 | return $this; |
| 140 | 144 | } |
| 141 | 145 | |
| 146 | + /** |
|
| 147 | + * @param string $name |
|
| 148 | + */ |
|
| 142 | 149 | protected function removePropertyValue($name, $value) { |
| 143 | 150 | $this->properties[$name]=\str_replace($value, "", $this->properties[$name]); |
| 144 | 151 | return $this; |
| 145 | 152 | } |
| 146 | 153 | |
| 154 | + /** |
|
| 155 | + * @param string $name |
|
| 156 | + */ |
|
| 147 | 157 | protected function removePropertyValues($name, $values) { |
| 148 | 158 | $this->removeOldValues($this->properties[$name], $values); |
| 149 | 159 | return $this; |
| 150 | 160 | } |
| 151 | 161 | |
| 162 | + /** |
|
| 163 | + * @param string $name |
|
| 164 | + */ |
|
| 152 | 165 | protected function removeProperty($name) { |
| 153 | 166 | if (\array_key_exists($name, $this->properties)) |
| 154 | 167 | unset($this->properties[$name]); |
| 155 | 168 | return $this; |
| 156 | 169 | } |
| 157 | 170 | |
| 171 | + /** |
|
| 172 | + * @param string $name |
|
| 173 | + * @param string[] $typeCtrl |
|
| 174 | + */ |
|
| 158 | 175 | protected function addToMemberCtrl(&$name, $value, $typeCtrl, $separator=" ") { |
| 159 | 176 | if ($this->ctrl($name, $value, $typeCtrl) === true) { |
| 160 | 177 | if (is_array($typeCtrl)) { |
@@ -165,6 +182,9 @@ discard block |
||
| 165 | 182 | return $this; |
| 166 | 183 | } |
| 167 | 184 | |
| 185 | + /** |
|
| 186 | + * @param string $name |
|
| 187 | + */ |
|
| 168 | 188 | protected function addToMember(&$name, $value, $separator=" ") { |
| 169 | 189 | $name=str_ireplace($value, "", $name) . $separator . $value; |
| 170 | 190 | return $this; |
@@ -179,6 +199,9 @@ discard block |
||
| 179 | 199 | return $this->addToProperty($name, $value); |
| 180 | 200 | } |
| 181 | 201 | |
| 202 | + /** |
|
| 203 | + * @param string $name |
|
| 204 | + */ |
|
| 182 | 205 | public function addToPropertyCtrl($name, $value, $typeCtrl) { |
| 183 | 206 | return $this->addToPropertyUnique($name, $value, $typeCtrl); |
| 184 | 207 | } |
@@ -327,14 +350,23 @@ discard block |
||
| 327 | 350 | return $this; |
| 328 | 351 | } |
| 329 | 352 | |
| 353 | + /** |
|
| 354 | + * @param string $event |
|
| 355 | + */ |
|
| 330 | 356 | public function getOn($event, $url, $responseElement="", $parameters=array()) { |
| 331 | 357 | return $this->_ajaxOn("get", $event, $url, $responseElement, $parameters); |
| 332 | 358 | } |
| 333 | 359 | |
| 360 | + /** |
|
| 361 | + * @param string $url |
|
| 362 | + */ |
|
| 334 | 363 | public function getOnClick($url, $responseElement="", $parameters=array()) { |
| 335 | 364 | return $this->getOn("click", $url, $responseElement, $parameters); |
| 336 | 365 | } |
| 337 | 366 | |
| 367 | + /** |
|
| 368 | + * @param string $event |
|
| 369 | + */ |
|
| 338 | 370 | public function postOn($event, $url, $params="{}", $responseElement="", $parameters=array()) { |
| 339 | 371 | $parameters["params"]=$params; |
| 340 | 372 | return $this->_ajaxOn("post", $event, $url, $responseElement, $parameters); |
@@ -344,6 +376,9 @@ discard block |
||
| 344 | 376 | return $this->postOn("click", $url, $params, $responseElement, $parameters); |
| 345 | 377 | } |
| 346 | 378 | |
| 379 | + /** |
|
| 380 | + * @param string $event |
|
| 381 | + */ |
|
| 347 | 382 | public function postFormOn($event, $url, $form, $responseElement="", $parameters=array()) { |
| 348 | 383 | $parameters["form"]=$form; |
| 349 | 384 | return $this->_ajaxOn("postForm", $event, $url, $responseElement, $parameters); |
@@ -371,6 +406,10 @@ discard block |
||
| 371 | 406 | return null; |
| 372 | 407 | } |
| 373 | 408 | |
| 409 | + /** |
|
| 410 | + * @param string $propertyName |
|
| 411 | + * @param string $value |
|
| 412 | + */ |
|
| 374 | 413 | protected function getElementByPropertyValue($propertyName,$value, $elements) { |
| 375 | 414 | if (is_array($elements)) { |
| 376 | 415 | $flag=false; |
@@ -411,6 +450,9 @@ discard block |
||
| 411 | 450 | return $value; |
| 412 | 451 | } |
| 413 | 452 | |
| 453 | + /** |
|
| 454 | + * @param string $jqueryCall |
|
| 455 | + */ |
|
| 414 | 456 | public function jsDoJquery($jqueryCall, $param="") { |
| 415 | 457 | return "$('#" . $this->identifier . "')." . $jqueryCall . "(" . $this->_prep_value($param) . ");"; |
| 416 | 458 | } |
@@ -55,6 +55,9 @@ discard block |
||
| 55 | 55 | return $this->_semantic; |
| 56 | 56 | } |
| 57 | 57 | |
| 58 | + /** |
|
| 59 | + * @param JsUtils $jsUtils |
|
| 60 | + */ |
|
| 58 | 61 | public function __construct($params,$jsUtils) { |
| 59 | 62 | $this->params=array(); |
| 60 | 63 | foreach ( $params as $key => $val ) { |
@@ -175,7 +178,7 @@ discard block |
||
| 175 | 178 | * |
| 176 | 179 | * @param string $element |
| 177 | 180 | * @param array $options |
| 178 | - * @return void |
|
| 181 | + * @return string |
|
| 179 | 182 | */ |
| 180 | 183 | public function sortable($element, $options=array()) { |
| 181 | 184 | if (count($options)>0) { |
@@ -306,6 +309,7 @@ discard block |
||
| 306 | 309 | |
| 307 | 310 | /** |
| 308 | 311 | * A wrapper for writing document.ready() |
| 312 | + * @param string $js |
|
| 309 | 313 | * @return string |
| 310 | 314 | */ |
| 311 | 315 | public function _document_ready($js) { |
@@ -353,6 +357,9 @@ discard block |
||
| 353 | 357 | return $value; |
| 354 | 358 | } |
| 355 | 359 | |
| 360 | + /** |
|
| 361 | + * @param string $input |
|
| 362 | + */ |
|
| 356 | 363 | private function minify($input) { |
| 357 | 364 | if(trim($input) === "") return $input; |
| 358 | 365 | return preg_replace( |
@@ -5,7 +5,6 @@ |
||
| 5 | 5 | use Ajax\semantic\html\base\HtmlSemCollection; |
| 6 | 6 | use Ajax\semantic\html\base\constants\Wide; |
| 7 | 7 | use Ajax\JsUtils; |
| 8 | - |
|
| 9 | 8 | use Ajax\semantic\html\base\HtmlSemDoubleElement; |
| 10 | 9 | use Ajax\semantic\html\collections\form\traits\FieldsTrait; |
| 11 | 10 | |
@@ -4,7 +4,6 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Ajax\semantic\html\base\HtmlSemNavElement; |
| 6 | 6 | use Ajax\semantic\html\base\HtmlSemDoubleElement; |
| 7 | - |
|
| 8 | 7 | use Ajax\semantic\html\elements\HtmlIcon; |
| 9 | 8 | use Ajax\JsUtils; |
| 10 | 9 | |