@@ -53,6 +53,9 @@ |
||
53 | 53 | class json_config { |
54 | 54 | var $global_registry_var_name = 'GLOBAL_REGISTRY'; |
55 | 55 | |
56 | + /** |
|
57 | + * @param string $module |
|
58 | + */ |
|
56 | 59 | function get_static_json_server($configOnly = true, $getStrings = false, $module = null, $record = null, $scheduler = false) { |
57 | 60 | global $current_user; |
58 | 61 | $str = ''; |
@@ -105,6 +105,9 @@ discard block |
||
105 | 105 | } |
106 | 106 | |
107 | 107 | |
108 | +/** |
|
109 | + * @param string $xTemplateSection |
|
110 | + */ |
|
108 | 111 | function processListView($seed, $xTemplateSection, $html_varName) |
109 | 112 | { |
110 | 113 | global $sugar_config; |
@@ -232,8 +235,8 @@ discard block |
||
232 | 235 | /** |
233 | 236 | * @return void |
234 | 237 | * @param unknown $data |
235 | - * @param unknown $xTemplateSection |
|
236 | - * @param unknown $html_varName |
|
238 | + * @param string $xtemplateSection |
|
239 | + * @param string $html_varName |
|
237 | 240 | * @desc INTERNAL FUNCTION handles the rows |
238 | 241 | */ |
239 | 242 | function process_dynamic_listview_rows($data,$parent_data, $xtemplateSection, $html_varName, $subpanel_def) |
@@ -610,6 +613,9 @@ discard block |
||
610 | 613 | * All Rights Reserved. |
611 | 614 | * Contributor(s): ______________________________________. |
612 | 615 | */ |
616 | + /** |
|
617 | + * @param string $value |
|
618 | + */ |
|
613 | 619 | function setHeaderText($value) { |
614 | 620 | $this->header_text = $value; |
615 | 621 | } |
@@ -728,6 +734,9 @@ discard block |
||
728 | 734 | * All Rights Reserved. |
729 | 735 | * Contributor(s): ______________________________________. |
730 | 736 | */ |
737 | + /** |
|
738 | + * @param string $where |
|
739 | + */ |
|
731 | 740 | function setQuery($where, $limit, $orderBy, $varName, $allowOrderByOveride=true) { |
732 | 741 | $this->query_where = $where; |
733 | 742 | if($this->getSessionVariable("query", "where") != $where) { |
@@ -834,6 +843,9 @@ discard block |
||
834 | 843 | * All Rights Reserved. |
835 | 844 | * Contributor(s): ______________________________________. |
836 | 845 | */ |
846 | + /** |
|
847 | + * @param XTemplate $newXTemplate |
|
848 | + */ |
|
837 | 849 | function setXTemplate($newXTemplate) { |
838 | 850 | $this->xTemplate = $newXTemplate; |
839 | 851 | } |
@@ -852,6 +864,9 @@ discard block |
||
852 | 864 | * All Rights Reserved. |
853 | 865 | * Contributor(s): ______________________________________. |
854 | 866 | */ |
867 | + /** |
|
868 | + * @param string $name |
|
869 | + */ |
|
855 | 870 | function xTemplateAssign($name, $value) { |
856 | 871 | |
857 | 872 | if(!isset($this->xTemplate)) { |
@@ -906,6 +921,9 @@ discard block |
||
906 | 921 | * All Rights Reserved. |
907 | 922 | * Contributor(s): ______________________________________. |
908 | 923 | */ |
924 | + /** |
|
925 | + * @param string $varName |
|
926 | + */ |
|
909 | 927 | function getSessionVariable($localVarName,$varName) { |
910 | 928 | //Set any variables pass in through request first |
911 | 929 | if(isset($_REQUEST[$this->getSessionVariableName($localVarName, $varName)])) { |
@@ -961,7 +979,7 @@ discard block |
||
961 | 979 | |
962 | 980 | /** |
963 | 981 | |
964 | - * @return void |
|
982 | + * @return string |
|
965 | 983 | * @param unknown $localVarName |
966 | 984 | * @param unknown $varName |
967 | 985 | * @desc INTERNAL FUNCTION returns the session/query variable name |
@@ -977,7 +995,7 @@ discard block |
||
977 | 995 | |
978 | 996 | * @return void |
979 | 997 | * @param unknown $seed |
980 | - * @param unknown $xTemplateSection |
|
998 | + * @param unknown $xtemplateSection |
|
981 | 999 | * @param unknown $html_varName |
982 | 1000 | * @desc INTERNAL FUNCTION Handles List Views using seeds that extend SugarBean |
983 | 1001 | $XTemplateSection is the section in the XTemplate file that should be parsed usually main |
@@ -1169,8 +1187,7 @@ discard block |
||
1169 | 1187 | } |
1170 | 1188 | /** |
1171 | 1189 | * @return void |
1172 | - * @param unknown $data |
|
1173 | - * @param unknown $xTemplateSection |
|
1190 | + * @param unknown $xtemplateSection |
|
1174 | 1191 | * @param unknown $html_varName |
1175 | 1192 | * @desc INTERNAL FUNCTION process the List Navigation |
1176 | 1193 | * Portions created by SugarCRM are Copyright (C) SugarCRM, Inc. |
@@ -1550,7 +1567,7 @@ discard block |
||
1550 | 1567 | /** |
1551 | 1568 | * @return void |
1552 | 1569 | * @param unknown $data |
1553 | - * @param unknown $xTemplateSection |
|
1570 | + * @param unknown $xtemplateSection |
|
1554 | 1571 | * @param unknown $html_varName |
1555 | 1572 | * @desc INTERNAL FUNCTION handles the rows |
1556 | 1573 | * Portions created by SugarCRM are Copyright (C) SugarCRM, Inc. |
@@ -2036,6 +2053,10 @@ discard block |
||
2036 | 2053 | * All Rights Reserved. |
2037 | 2054 | * Contributor(s): ______________________________________. |
2038 | 2055 | */ |
2056 | + |
|
2057 | + /** |
|
2058 | + * @param string $varName |
|
2059 | + */ |
|
2039 | 2060 | function setLocalSessionVariable($localVarName,$varName, $value) { |
2040 | 2061 | $_SESSION[$localVarName."_".$varName] = $value; |
2041 | 2062 | } |
@@ -2046,6 +2067,12 @@ discard block |
||
2046 | 2067 | * All Rights Reserved. |
2047 | 2068 | * Contributor(s): ______________________________________. |
2048 | 2069 | */ |
2070 | + |
|
2071 | + /** |
|
2072 | + * @param string $varName |
|
2073 | + * |
|
2074 | + * @return string |
|
2075 | + */ |
|
2049 | 2076 | function getLocalSessionVariable($localVarName,$varName) { |
2050 | 2077 | if(isset($_SESSION[$localVarName."_".$varName])) { |
2051 | 2078 | return $_SESSION[$localVarName."_".$varName]; |
@@ -162,7 +162,8 @@ discard block |
||
162 | 162 | /** |
163 | 163 | * based off of a base name it sets base, offset, and order by variable names to retrieve them from requests and sessions |
164 | 164 | * |
165 | - * @param unknown_type $baseName |
|
165 | + * @param string $baseName |
|
166 | + * @param string $where |
|
166 | 167 | */ |
167 | 168 | function setVariableName($baseName, $where, $listviewName = null){ |
168 | 169 | global $timedate; |
@@ -180,6 +181,9 @@ discard block |
||
180 | 181 | $_SESSION[strtoupper($baseName) . "_DETAIL_NAV_HISTORY"] = false; |
181 | 182 | } |
182 | 183 | |
184 | + /** |
|
185 | + * @param string $main_query |
|
186 | + */ |
|
183 | 187 | function getTotalCount($main_query){ |
184 | 188 | if(!empty($this->count_query)){ |
185 | 189 | $count_query = $this->count_query; |
@@ -605,8 +609,8 @@ discard block |
||
605 | 609 | * generates the additional details values |
606 | 610 | * |
607 | 611 | * @param unknown_type $fields |
608 | - * @param unknown_type $adFunction |
|
609 | - * @param unknown_type $editAccess |
|
612 | + * @param string $adFunction |
|
613 | + * @param boolean $editAccess |
|
610 | 614 | * @return array string to attach to field |
611 | 615 | */ |
612 | 616 | function getAdditionalDetails($fields, $adFunction, $editAccess) |
@@ -75,6 +75,10 @@ |
||
75 | 75 | $this->lvd = new ListViewData(); |
76 | 76 | $this->searchColumns = array () ; |
77 | 77 | } |
78 | + |
|
79 | + /** |
|
80 | + * @param string $moduleDir |
|
81 | + */ |
|
78 | 82 | function shouldProcess($moduleDir){ |
79 | 83 | $searching = false; |
80 | 84 | $sessionSearchQuery = "{$moduleDir}2_QUERY_QUERY"; |
@@ -122,6 +122,7 @@ |
||
122 | 122 | * abstraction of precedence |
123 | 123 | * @param string prefName Name of preference to retrieve based on overrides |
124 | 124 | * @param object user User in focus, default null (current_user) |
125 | + * @param string $prefName |
|
125 | 126 | * @return string pref Most significant preference |
126 | 127 | */ |
127 | 128 | function getPrecedentPreference($prefName, $user=null, $sugarConfigPrefName = '') { |
@@ -1151,6 +1151,9 @@ discard block |
||
1151 | 1151 | return $html; |
1152 | 1152 | } |
1153 | 1153 | |
1154 | + /** |
|
1155 | + * @param string $value |
|
1156 | + */ |
|
1154 | 1157 | function date_to_dateTime($field, $value) { |
1155 | 1158 | global $timedate; |
1156 | 1159 | //Check if none was set |
@@ -1180,6 +1183,9 @@ discard block |
||
1180 | 1183 | return $value." ".$oldTime; |
1181 | 1184 | } |
1182 | 1185 | |
1186 | + /** |
|
1187 | + * @param string $value |
|
1188 | + */ |
|
1183 | 1189 | function checkClearField($field, $value) { |
1184 | 1190 | if ($value == 1 && strpos($field, '_flag')) { |
1185 | 1191 | $fName = substr($field, -5); |
@@ -244,6 +244,7 @@ discard block |
||
244 | 244 | |
245 | 245 | /** |
246 | 246 | * Generic load method to load mapping arrays. |
247 | + * @param string $var |
|
247 | 248 | */ |
248 | 249 | private function loadMapping($var, $merge = false){ |
249 | 250 | $$var = sugar_cache_retrieve("CONTROLLER_". $var . "_".$this->module); |
@@ -469,7 +470,8 @@ discard block |
||
469 | 470 | /** |
470 | 471 | * Determine if a given function exists on the objects |
471 | 472 | * @param function - the function to check |
472 | - * @return true if the method exists on the object, false otherwise |
|
473 | + * @param string $function |
|
474 | + * @return boolean if the method exists on the object, false otherwise |
|
473 | 475 | */ |
474 | 476 | protected function hasFunction($function){ |
475 | 477 | return method_exists($this, $function); |
@@ -777,6 +779,7 @@ discard block |
||
777 | 779 | |
778 | 780 | /** |
779 | 781 | * getActionFilename |
782 | + * @param string $action |
|
780 | 783 | */ |
781 | 784 | public static function getActionFilename($action) { |
782 | 785 | if(isset(self::$action_case_file[$action])) { |
@@ -668,7 +668,6 @@ discard block |
||
668 | 668 | * Redirect to another URL |
669 | 669 | * |
670 | 670 | * @access public |
671 | - * @param string $url The URL to redirect to |
|
672 | 671 | */ |
673 | 672 | public static function appendErrorMessage($error_message) |
674 | 673 | { |
@@ -692,6 +691,8 @@ discard block |
||
692 | 691 | /** |
693 | 692 | * Wrapper for the PHP setcookie() function, to handle cases where headers have |
694 | 693 | * already been sent |
694 | + * @param string $name |
|
695 | + * @param string $domain |
|
695 | 696 | */ |
696 | 697 | public static function setCookie( |
697 | 698 | $name, |
@@ -1039,6 +1039,7 @@ discard block |
||
1039 | 1039 | * |
1040 | 1040 | * @param string option - the option that we want to know the valye of |
1041 | 1041 | * @param bool default - what the default value should be if we do not find the option |
1042 | + * @param string $option |
|
1042 | 1043 | * |
1043 | 1044 | * @return bool - the value of the option |
1044 | 1045 | */ |
@@ -1273,7 +1274,7 @@ discard block |
||
1273 | 1274 | * Return the "breadcrumbs" to display at the top of the page |
1274 | 1275 | * |
1275 | 1276 | * @param bool $show_help optional, true if we show the help links |
1276 | - * @return HTML string containing breadcrumb title |
|
1277 | + * @return string string containing breadcrumb title |
|
1277 | 1278 | */ |
1278 | 1279 | public function getModuleTitle( |
1279 | 1280 | $show_help = true |
@@ -1446,6 +1447,9 @@ discard block |
||
1446 | 1447 | } |
1447 | 1448 | } |
1448 | 1449 | |
1450 | + /** |
|
1451 | + * @param string $module |
|
1452 | + */ |
|
1449 | 1453 | protected function getModuleTitleIconPath($module) |
1450 | 1454 | { |
1451 | 1455 | $iconPath = ""; |
@@ -1496,7 +1500,7 @@ discard block |
||
1496 | 1500 | /** |
1497 | 1501 | * Fetch config values to be put into an array for JavaScript |
1498 | 1502 | * |
1499 | - * @return array |
|
1503 | + * @return string[] |
|
1500 | 1504 | */ |
1501 | 1505 | protected function getSugarConfigJS(){ |
1502 | 1506 | global $sugar_config; |