@@ -20,6 +20,9 @@ |
||
| 20 | 20 | protected $_tabsType="tabs"; |
| 21 | 21 | protected $stacked=""; |
| 22 | 22 | |
| 23 | + /** |
|
| 24 | + * @param string $identifier |
|
| 25 | + */ |
|
| 23 | 26 | public function __construct($identifier, $tagName="ul") { |
| 24 | 27 | parent::__construct($identifier, $tagName); |
| 25 | 28 | $this->_template="<%tagName% %properties%>%tabs%</%tagName%>%content%"; |
@@ -155,7 +155,7 @@ discard block |
||
| 155 | 155 | * Outputs a jQuery click event |
| 156 | 156 | * |
| 157 | 157 | * @param string $element The element to attach the event to |
| 158 | - * @param mixed $js The code to execute |
|
| 158 | + * @param string $js The code to execute |
|
| 159 | 159 | * @param boolean $ret_false whether or not to return false |
| 160 | 160 | * @return string |
| 161 | 161 | */ |
@@ -220,6 +220,8 @@ discard block |
||
| 220 | 220 | * @param string - element |
| 221 | 221 | * @param string - Javascript code for mouse over |
| 222 | 222 | * @param string - Javascript code for mouse out |
| 223 | + * @param string $over |
|
| 224 | + * @param string $out |
|
| 223 | 225 | * @return string |
| 224 | 226 | */ |
| 225 | 227 | public function _hover($element='this', $over, $out) { |
@@ -803,7 +805,7 @@ discard block |
||
| 803 | 805 | * |
| 804 | 806 | * @param string $element |
| 805 | 807 | * @param array $options |
| 806 | - * @return void |
|
| 808 | + * @return string |
|
| 807 | 809 | */ |
| 808 | 810 | public function sortable($element, $options=array()) { |
| 809 | 811 | if (count($options)>0) { |
@@ -934,6 +936,7 @@ discard block |
||
| 934 | 936 | /** |
| 935 | 937 | * A wrapper for writing document.ready() |
| 936 | 938 | * |
| 939 | + * @param string $js |
|
| 937 | 940 | * @return string |
| 938 | 941 | */ |
| 939 | 942 | public function _document_ready($js) { |
@@ -988,7 +991,7 @@ discard block |
||
| 988 | 991 | /** |
| 989 | 992 | * Ensures the speed parameter is valid for jQuery |
| 990 | 993 | * |
| 991 | - * @param string|int $speed |
|
| 994 | + * @param string $speed |
|
| 992 | 995 | * @return string |
| 993 | 996 | */ |
| 994 | 997 | private function _validate_speed($speed) { |
@@ -1003,6 +1006,10 @@ discard block |
||
| 1003 | 1006 | return $speed; |
| 1004 | 1007 | } |
| 1005 | 1008 | // ------------------------------------------------------------------------ |
| 1009 | + |
|
| 1010 | + /** |
|
| 1011 | + * @param string $retour |
|
| 1012 | + */ |
|
| 1006 | 1013 | protected function addLoading(&$retour, $responseElement) { |
| 1007 | 1014 | $loading_notifier='<div class="ajax-loader">'; |
| 1008 | 1015 | if ($this->ajaxLoader=='') { |
@@ -1015,13 +1022,25 @@ discard block |
||
| 1015 | 1022 | $retour.="\t\t$(\"{$responseElement}\").prepend('{$loading_notifier}');\n"; |
| 1016 | 1023 | } |
| 1017 | 1024 | |
| 1025 | + /** |
|
| 1026 | + * @param string $url |
|
| 1027 | + * @param string $jsCallback |
|
| 1028 | + */ |
|
| 1018 | 1029 | public function _get($url, $params="{}", $responseElement="", $jsCallback=NULL, $attr="id", $hasLoader=true,$immediatly=false) { |
| 1019 | 1030 | return $this->_ajax("get", $url,$params,$responseElement,$jsCallback,$attr,$hasLoader,$immediatly); |
| 1020 | 1031 | } |
| 1032 | + |
|
| 1033 | + /** |
|
| 1034 | + * @param string $url |
|
| 1035 | + * @param string $jsCallback |
|
| 1036 | + */ |
|
| 1021 | 1037 | public function _post($url, $params="{}", $responseElement="", $jsCallback=NULL, $attr="id", $hasLoader=true,$immediatly=false) { |
| 1022 | 1038 | return $this->_ajax("post", $url,$params,$responseElement,$jsCallback,$attr,$hasLoader,$immediatly); |
| 1023 | 1039 | } |
| 1024 | 1040 | |
| 1041 | + /** |
|
| 1042 | + * @param string $method |
|
| 1043 | + */ |
|
| 1025 | 1044 | protected function _ajax($method,$url, $params="{}", $responseElement="", $jsCallback=NULL, $attr="id", $hasLoader=true,$immediatly=false) { |
| 1026 | 1045 | if(JString::isNull($params)){$params="{}";} |
| 1027 | 1046 | $jsCallback=isset($jsCallback) ? $jsCallback : ""; |
@@ -1036,6 +1055,9 @@ discard block |
||
| 1036 | 1055 | return $retour; |
| 1037 | 1056 | } |
| 1038 | 1057 | |
| 1058 | + /** |
|
| 1059 | + * @param string $attr |
|
| 1060 | + */ |
|
| 1039 | 1061 | protected function _getAjaxUrl($url,$attr){ |
| 1040 | 1062 | $url=$this->_correctAjaxUrl($url); |
| 1041 | 1063 | $retour="url='".$url."';\n"; |
@@ -1105,6 +1127,12 @@ discard block |
||
| 1105 | 1127 | return $retour; |
| 1106 | 1128 | } |
| 1107 | 1129 | |
| 1130 | + /** |
|
| 1131 | + * @param string $url |
|
| 1132 | + * @param string $form |
|
| 1133 | + * @param string $responseElement |
|
| 1134 | + * @param string $jsCallback |
|
| 1135 | + */ |
|
| 1108 | 1136 | public function _postForm($url, $form, $responseElement, $validation=false, $jsCallback=NULL, $attr="id", $hasLoader=true,$immediatly=false) { |
| 1109 | 1137 | $jsCallback=isset($jsCallback) ? $jsCallback : ""; |
| 1110 | 1138 | $retour=$this->_getAjaxUrl($url, $attr); |
@@ -1212,7 +1240,7 @@ discard block |
||
| 1212 | 1240 | * @param string $element |
| 1213 | 1241 | * @param string $elementToModify |
| 1214 | 1242 | * @param string $jqueryCall |
| 1215 | - * @param string|array $param |
|
| 1243 | + * @param string $param |
|
| 1216 | 1244 | * @param boolean $preventDefault |
| 1217 | 1245 | * @param boolean $stopPropagation |
| 1218 | 1246 | * @param string $jsCallback javascript code to execute after the jquery call |
@@ -676,6 +676,9 @@ discard block |
||
| 676 | 676 | return $this->_create_json($json_result, $match_array_type); |
| 677 | 677 | } |
| 678 | 678 | |
| 679 | + /** |
|
| 680 | + * @param boolean $match_array_type |
|
| 681 | + */ |
|
| 679 | 682 | private function _create_json($json_result, $match_array_type) { |
| 680 | 683 | $json=array (); |
| 681 | 684 | $_is_assoc=TRUE; |
@@ -699,7 +702,7 @@ discard block |
||
| 699 | 702 | * Checks for an associative array |
| 700 | 703 | * |
| 701 | 704 | * @param type |
| 702 | - * @return type |
|
| 705 | + * @return boolean |
|
| 703 | 706 | */ |
| 704 | 707 | public function _is_associative_array($arr) { |
| 705 | 708 | foreach ( array_keys($arr) as $key => $val ) { |
@@ -939,7 +942,7 @@ discard block |
||
| 939 | 942 | * @param string $jqueryCall the JQuery callback |
| 940 | 943 | * @param mixed $param array or string parameters |
| 941 | 944 | * @param string $jsCallback javascript code to execute after the jquery call |
| 942 | - * @return mixed |
|
| 945 | + * @return string |
|
| 943 | 946 | */ |
| 944 | 947 | public function doJQuery($element, $jqueryCall, $param="", $jsCallback="") { |
| 945 | 948 | return $this->js->_doJQuery($element, $jqueryCall, $param, $jsCallback, true); |
@@ -951,7 +954,7 @@ discard block |
||
| 951 | 954 | * @param string $jqueryCall the JQuery callback |
| 952 | 955 | * @param mixed $param array or string parameters |
| 953 | 956 | * @param string $jsCallback javascript code to execute after the jquery call |
| 954 | - * @return mixed |
|
| 957 | + * @return string |
|
| 955 | 958 | */ |
| 956 | 959 | public function doJQueryDeferred($element, $jqueryCall, $param="", $jsCallback="") { |
| 957 | 960 | return $this->js->_doJQuery($element, $jqueryCall, $param, $jsCallback, false); |
@@ -20,6 +20,10 @@ discard block |
||
| 20 | 20 | protected $attr; |
| 21 | 21 | |
| 22 | 22 | |
| 23 | + /** |
|
| 24 | + * @param string $identifier |
|
| 25 | + * @param string $tagName |
|
| 26 | + */ |
|
| 23 | 27 | public function __construct($identifier,$tagName){ |
| 24 | 28 | parent::__construct($identifier,$tagName); |
| 25 | 29 | $this->root=""; |
@@ -30,7 +34,6 @@ discard block |
||
| 30 | 34 | * Associate an ajax get to the elements, displayed in $targetSelector |
| 31 | 35 | * $attr member is used to build each element url |
| 32 | 36 | * @param string $targetSelector the target of the get |
| 33 | - * @param string $attr the html attribute used to build the elements url |
|
| 34 | 37 | * @return HtmlNavElement |
| 35 | 38 | */ |
| 36 | 39 | public function autoGetOnClick($targetSelector){ |
@@ -14,6 +14,11 @@ discard block |
||
| 14 | 14 | */ |
| 15 | 15 | class HtmlGridRow extends HtmlDoubleElement { |
| 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"); |
@@ -85,6 +90,11 @@ discard block |
||
| 85 | 90 | $this->delete($size,$start+1, $width); |
| 86 | 91 | } |
| 87 | 92 | } |
| 93 | + |
|
| 94 | + /** |
|
| 95 | + * @param integer $start |
|
| 96 | + * @param integer $width |
|
| 97 | + */ |
|
| 88 | 98 | public function delete($size=CssSize::SIZE_MD,$start,$width){ |
| 89 | 99 | while($start<sizeof($this->cols)+1 && $width>0){ |
| 90 | 100 | $col=$this->getColAt($start,false); |
@@ -16,6 +16,10 @@ |
||
| 16 | 16 | class HtmlGridSystem extends HtmlDoubleElement { |
| 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"); |