@@ -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) { |
@@ -307,6 +310,7 @@ discard block |
||
307 | 310 | |
308 | 311 | /** |
309 | 312 | * A wrapper for writing document.ready() |
313 | + * @param string $js |
|
310 | 314 | * @return string |
311 | 315 | */ |
312 | 316 | public function _document_ready($js) { |
@@ -354,6 +358,9 @@ discard block |
||
354 | 358 | return $value; |
355 | 359 | } |
356 | 360 | |
361 | + /** |
|
362 | + * @param string $input |
|
363 | + */ |
|
357 | 364 | private function minify($input) { |
358 | 365 | if(trim($input) === "") return $input; |
359 | 366 | return preg_replace( |
@@ -429,7 +429,7 @@ |
||
429 | 429 | * |
430 | 430 | * @access public |
431 | 431 | * @param array an associative array of key/values |
432 | - * @return array |
|
432 | + * @return string |
|
433 | 433 | * |
434 | 434 | */ |
435 | 435 | function assoc_to_uri($array) { |
@@ -22,6 +22,11 @@ discard block |
||
22 | 22 | protected $_contentSeparator=""; |
23 | 23 | |
24 | 24 | |
25 | + /** |
|
26 | + * @param string $identifier |
|
27 | + * @param string $tagName |
|
28 | + * @param string $baseClass |
|
29 | + */ |
|
25 | 30 | public function __construct($identifier,$tagName,$baseClass){ |
26 | 31 | parent::__construct($identifier,$tagName,$baseClass); |
27 | 32 | $this->root=""; |
@@ -31,7 +36,7 @@ discard block |
||
31 | 36 | /** |
32 | 37 | * Associate an ajax get to the elements, displayed in $targetSelector |
33 | 38 | * @param string $targetSelector the target of the get |
34 | - * @return HtmlNavElement |
|
39 | + * @return HtmlSemNavElement |
|
35 | 40 | */ |
36 | 41 | public function autoGetOnClick($targetSelector){ |
37 | 42 | return $this->getOnClick($this->root, $targetSelector,array("attr"=>$this->attr)); |
@@ -63,7 +68,7 @@ discard block |
||
63 | 68 | /** |
64 | 69 | * Define the html attribute for each element url in ajax |
65 | 70 | * @param string $attr html attribute |
66 | - * @return HtmlNavElement |
|
71 | + * @return HtmlSemNavElement |
|
67 | 72 | */ |
68 | 73 | public function setAttr($attr) { |
69 | 74 | $this->attr = $attr; |
@@ -103,6 +108,9 @@ discard block |
||
103 | 108 | return $this; |
104 | 109 | } |
105 | 110 | |
111 | + /** |
|
112 | + * @param integer $index |
|
113 | + */ |
|
106 | 114 | protected function getContentDivider($index){ |
107 | 115 | if(\is_array($this->_contentSeparator)===true){ |
108 | 116 | return @$this->_contentSeparator[$index]; |
@@ -9,7 +9,6 @@ |
||
9 | 9 | |
10 | 10 | /** |
11 | 11 | * |
12 | - * @param string $side |
|
13 | 12 | * @return \Ajax\semantic\html\base\HtmlSemDoubleElement |
14 | 13 | */ |
15 | 14 | public function setAttachment(HtmlSemDoubleElement $toElement, $value=Side::BOTH) { |
@@ -12,12 +12,24 @@ |
||
12 | 12 | protected $_states=[ ]; |
13 | 13 | protected $_baseClass; |
14 | 14 | |
15 | + /** |
|
16 | + * @param string $name |
|
17 | + */ |
|
15 | 18 | protected abstract function setPropertyCtrl($name, $value, $typeCtrl); |
16 | 19 | |
20 | + /** |
|
21 | + * @param string $name |
|
22 | + */ |
|
17 | 23 | protected abstract function addToPropertyCtrl($name, $value, $typeCtrl); |
18 | 24 | |
25 | + /** |
|
26 | + * @param string $name |
|
27 | + */ |
|
19 | 28 | protected abstract function addToPropertyCtrlCheck($name, $value, $typeCtrl); |
20 | 29 | |
30 | + /** |
|
31 | + * @param string $name |
|
32 | + */ |
|
21 | 33 | public abstract function addToProperty($name, $value, $separator=" "); |
22 | 34 | |
23 | 35 | public function addVariation($variation) { |
@@ -7,6 +7,10 @@ |
||
7 | 7 | trait IconTrait { |
8 | 8 | private $_hasIcon=false; |
9 | 9 | |
10 | + /** |
|
11 | + * @param string $name |
|
12 | + * @param string $value |
|
13 | + */ |
|
10 | 14 | protected abstract function addToPropertyCtrl($name, $value, $typeCtrl); |
11 | 15 | public abstract function addContent($content,$before=false); |
12 | 16 |
@@ -15,6 +15,9 @@ |
||
15 | 15 | protected $_equalWidth; |
16 | 16 | protected $_name; |
17 | 17 | |
18 | + /** |
|
19 | + * @param string $identifier |
|
20 | + */ |
|
18 | 21 | public function __construct($identifier, $fields=array(), $equalWidth=true) { |
19 | 22 | parent::__construct($identifier, "div"); |
20 | 23 | $this->_equalWidth=$equalWidth; |
@@ -6,6 +6,9 @@ |
||
6 | 6 | |
7 | 7 | trait CheckboxTrait { |
8 | 8 | |
9 | + /** |
|
10 | + * @param string $name |
|
11 | + */ |
|
9 | 12 | public abstract function addToPropertyCtrl($name, $value, $typeCtrl); |
10 | 13 | |
11 | 14 | public function setType($checkboxType) { |
@@ -64,8 +64,7 @@ discard block |
||
64 | 64 | * Associate an ajax get to the breadcrumb elements, displayed in $targetSelector |
65 | 65 | * $attr member is used to build each element url |
66 | 66 | * @param string $targetSelector the target of the get |
67 | - * @param string $attr the html attribute used to build the elements url |
|
68 | - * @return HtmlBreadcrumbs |
|
67 | + * @return HtmlBreadcrumb |
|
69 | 68 | */ |
70 | 69 | public function autoGetOnClick($targetSelector) { |
71 | 70 | return $this->getOnClick($this->root, $targetSelector, array ("attr" => $this->attr )); |
@@ -91,7 +90,7 @@ discard block |
||
91 | 90 | * Add new elements in breadcrumbs corresponding to request dispatcher : controllerName, actionName, parameters |
92 | 91 | * @param JsUtils $js |
93 | 92 | * @param Dispatcher $dispatcher the request dispatcher |
94 | - * @return \Ajax\bootstrap\html\HtmlBreadcrumbs |
|
93 | + * @return HtmlBreadcrumb |
|
95 | 94 | */ |
96 | 95 | public function fromDispatcher(JsUtils $js,$dispatcher, $startIndex=0) { |
97 | 96 | return $this->addItems($js->fromDispatcher($dispatcher)); |
@@ -120,7 +119,7 @@ discard block |
||
120 | 119 | * sets the function who generates the href elements. |
121 | 120 | * default : function($element){return $element->getContent()} |
122 | 121 | * @param function $_hrefFunction |
123 | - * @return \Ajax\bootstrap\html\HtmlBreadcrumbs |
|
122 | + * @return HtmlBreadcrumb |
|
124 | 123 | */ |
125 | 124 | public function setHrefFunction($_hrefFunction) { |
126 | 125 | $this->_hrefFunction=$_hrefFunction; |