@@ -158,7 +158,7 @@ discard block |
||
158 | 158 | * Set a value for a key in the cache, optionally specify a ttl. A ttl value of zero |
159 | 159 | * will indicate that a value should only be stored per the request. |
160 | 160 | * |
161 | - * @param $key |
|
161 | + * @param string $key |
|
162 | 162 | * @param $value |
163 | 163 | * @param $ttl |
164 | 164 | */ |
@@ -192,7 +192,7 @@ discard block |
||
192 | 192 | * PHP's magic __isset() method, used here for checking for a key in the cache. |
193 | 193 | * |
194 | 194 | * @param string $key |
195 | - * @return mixed |
|
195 | + * @return boolean |
|
196 | 196 | */ |
197 | 197 | public function __isset($key) |
198 | 198 | { |
@@ -68,6 +68,9 @@ |
||
68 | 68 | } |
69 | 69 | |
70 | 70 | |
71 | + /** |
|
72 | + * @param string $name |
|
73 | + */ |
|
71 | 74 | function display($name, $xmlFile, $width='320', $height='480', $resize=false) { |
72 | 75 | |
73 | 76 | parent::display($name, $xmlFile, $width, $height, $resize); |
@@ -77,6 +77,9 @@ discard block |
||
77 | 77 | |
78 | 78 | } |
79 | 79 | |
80 | + /** |
|
81 | + * @param integer $depth |
|
82 | + */ |
|
80 | 83 | function tab($str, $depth){ |
81 | 84 | // $str = preg_replace('/(<\w+>)(.*)(<\/\w+>)/e', "'\\1'.htmlentities(from_html('\\2')).'\\3'", $str); |
82 | 85 | return str_repeat("\t", $depth) . $str . "\n"; |
@@ -663,6 +666,9 @@ discard block |
||
663 | 666 | return $html; |
664 | 667 | } |
665 | 668 | |
669 | + /** |
|
670 | + * @param string $jsonContents |
|
671 | + */ |
|
666 | 672 | function saveJsonFile($jsonContents) { |
667 | 673 | $this->jsonFilename = str_replace(".xml",".js",$this->xmlFile); |
668 | 674 | //$jsonContents = $GLOBALS['locale']->translateCharset($jsonContents, 'UTF-8', 'UTF-16LE'); |
@@ -292,11 +292,8 @@ discard block |
||
292 | 292 | /** |
293 | 293 | * returns text with tabs appended before it |
294 | 294 | * |
295 | - * @param string $str xml tag |
|
296 | - int $tagFormat 2 = open and close tag, 1 = close, 0 = open |
|
297 | - sting $value input string |
|
298 | - * int $depth number of times to tab |
|
299 | 295 | * @return string with tabs appended before it |
296 | + * @param integer $depth |
|
300 | 297 | */ |
301 | 298 | |
302 | 299 | function tabValue($tag,$value,$depth) { |
@@ -339,6 +336,9 @@ discard block |
||
339 | 336 | return $data; |
340 | 337 | } |
341 | 338 | |
339 | + /** |
|
340 | + * @param integer $tablevel |
|
341 | + */ |
|
342 | 342 | function processDataGroup($tablevel, $title, $value, $label, $link){ |
343 | 343 | $link = $this->forceHideDataGroupLink ? '' : $link; |
344 | 344 | $data = $this->tab('<group>',$tablevel); |
@@ -645,7 +645,7 @@ discard block |
||
645 | 645 | * This function sets a null group by clause |
646 | 646 | * |
647 | 647 | * @param $sugarSetValue Mixed value |
648 | - * @param $url String value of URL for the link |
|
648 | + * @param string $url String value of URL for the link |
|
649 | 649 | */ |
650 | 650 | private function nullGroup($superSetValue, $url) { |
651 | 651 | return $this->processDataGroup(4, $superSetValue, 'NULL', '', $url); |
@@ -709,7 +709,8 @@ discard block |
||
709 | 709 | * |
710 | 710 | * @param string $xmlFilename location of the xml file |
711 | 711 | * string $xmlContents contents of the xml file |
712 | - * @return string boolean denoting whether save has failed |
|
712 | + * @param string $xmlContents |
|
713 | + * @return null|boolean boolean denoting whether save has failed |
|
713 | 714 | */ |
714 | 715 | function saveXMLFile($xmlFilename,$xmlContents) { |
715 | 716 | global $app_strings; |
@@ -80,8 +80,6 @@ discard block |
||
80 | 80 | |
81 | 81 | /** |
82 | 82 | * Legacy email address handling. This is to allow support for SOAP or customizations |
83 | - * @param string $id |
|
84 | - * @param string $module |
|
85 | 83 | */ |
86 | 84 | function handleLegacySave($bean, $prefix = "") { |
87 | 85 | if(!isset($_REQUEST) || !isset($_REQUEST['useEmailWidget'])) { |
@@ -166,12 +164,6 @@ discard block |
||
166 | 164 | |
167 | 165 | /** |
168 | 166 | * Saves email addresses for a parent bean |
169 | - * @param string $id Parent bean ID |
|
170 | - * @param string $module Parent bean's module |
|
171 | - * @param array $addresses Override of $_REQUEST vars, used to handle non-standard bean saves |
|
172 | - * @param string $primary GUID of primary address |
|
173 | - * @param string $replyTo GUID of reply-to address |
|
174 | - * @param string $invalid GUID of invalid address |
|
175 | 167 | */ |
176 | 168 | public function save($check_notify = FALSE) { |
177 | 169 | $args = func_get_args(); |
@@ -369,7 +361,6 @@ discard block |
||
369 | 361 | * Saves email addresses for a parent bean |
370 | 362 | * @param string $id Parent bean ID |
371 | 363 | * @param string $module Parent bean's module |
372 | - * @param array $addresses Override of $_REQUEST vars, used to handle non-standard bean saves |
|
373 | 364 | * @param string $primary GUID of primary address |
374 | 365 | * @param string $replyTo GUID of reply-to address |
375 | 366 | * @param string $invalid GUID of invalid address |
@@ -620,7 +611,7 @@ discard block |
||
620 | 611 | |
621 | 612 | /** |
622 | 613 | * preps a passed email address for email address storage |
623 | - * @param array $addr Address in focus, must be RFC compliant |
|
614 | + * @param string $addr Address in focus, must be RFC compliant |
|
624 | 615 | * @return string $id email_addresses ID |
625 | 616 | */ |
626 | 617 | function getEmailGUID($addr) { |
@@ -733,7 +724,8 @@ discard block |
||
733 | 724 | |
734 | 725 | /** |
735 | 726 | * Returns Primary or newest email address |
736 | - * @param object $focus Object in focus |
|
727 | + * @param boolean $focus Object in focus |
|
728 | + * @param string $parent_type |
|
737 | 729 | * @return string email |
738 | 730 | */ |
739 | 731 | function getPrimaryAddress($focus,$parent_id=null,$parent_type=null) { |
@@ -804,7 +796,7 @@ discard block |
||
804 | 796 | * Returns all email addresses by parent's GUID |
805 | 797 | * @param string $id Parent's GUID |
806 | 798 | * @param string $module Parent's module |
807 | - * @return array |
|
799 | + * @return string |
|
808 | 800 | */ |
809 | 801 | function getAddressesByGUID($id, $module) { |
810 | 802 | $return = array(); |
@@ -828,7 +820,6 @@ discard block |
||
828 | 820 | |
829 | 821 | /** |
830 | 822 | * Returns the HTML/JS for the EmailAddress widget |
831 | - * @param string $parent_id ID of parent bean, generally $focus |
|
832 | 823 | * @param string $module $focus' module |
833 | 824 | * @param bool asMetadata Default false |
834 | 825 | * @return string HTML/JS for widget |
@@ -965,7 +956,7 @@ discard block |
||
965 | 956 | |
966 | 957 | /** |
967 | 958 | * getEmailAddressWidgetDuplicatesView($focus) |
968 | - * @param object $focus Bean in focus |
|
959 | + * @param Lead $focus Bean in focus |
|
969 | 960 | * @return string HTML that contains hidden input values based off of HTML request |
970 | 961 | */ |
971 | 962 | function getEmailAddressWidgetDuplicatesView($focus) |
@@ -1041,6 +1032,7 @@ discard block |
||
1041 | 1032 | /** |
1042 | 1033 | * getFormBaseURL |
1043 | 1034 | * |
1035 | + * @param SugarBean $focus |
|
1044 | 1036 | */ |
1045 | 1037 | function getFormBaseURL($focus) { |
1046 | 1038 | $get = ""; |
@@ -1081,13 +1073,15 @@ discard block |
||
1081 | 1073 | |
1082 | 1074 | } |
1083 | 1075 | |
1076 | + /** |
|
1077 | + * @param string $view |
|
1078 | + */ |
|
1084 | 1079 | function setView($view) { |
1085 | 1080 | $this->view = $view; |
1086 | 1081 | } |
1087 | 1082 | |
1088 | 1083 | /** |
1089 | 1084 | * This function is here so the Employees/Users division can be handled cleanly in one place |
1090 | - * @param object $focus SugarBean |
|
1091 | 1085 | * @return string The value for the bean_module column in the email_addr_bean_rel table |
1092 | 1086 | */ |
1093 | 1087 | function getCorrectedModule(&$module) { |
@@ -1119,7 +1113,7 @@ discard block |
||
1119 | 1113 | |
1120 | 1114 | /** |
1121 | 1115 | * Convenience function for MVC (Mystique) |
1122 | - * @param object $focus SugarBean |
|
1116 | + * @param SugarBean $focus SugarBean |
|
1123 | 1117 | * @param string $field unused |
1124 | 1118 | * @param string $value unused |
1125 | 1119 | * @param string $view DetailView or EditView |
@@ -114,11 +114,17 @@ discard block |
||
114 | 114 | } |
115 | 115 | |
116 | 116 | |
117 | + /** |
|
118 | + * @return string |
|
119 | + */ |
|
117 | 120 | public function unformatField($formattedField, $vardef){ |
118 | 121 | // The base field doesn't do any formatting, so override it in subclasses for more specific actions |
119 | 122 | return $formattedField; |
120 | 123 | } |
121 | 124 | |
125 | + /** |
|
126 | + * @param string $view |
|
127 | + */ |
|
122 | 128 | function getSmartyView($parentFieldArray, $vardef, $displayParams, $tabindex = -1, $view){ |
123 | 129 | $this->setup($parentFieldArray, $vardef, $displayParams, $tabindex); |
124 | 130 | |
@@ -376,6 +382,9 @@ discard block |
||
376 | 382 | |
377 | 383 | } |
378 | 384 | |
385 | + /** |
|
386 | + * @param string $fieldType |
|
387 | + */ |
|
379 | 388 | protected function getAccessKey($vardef, $fieldType = null, $module = null) { |
380 | 389 | global $app_strings; |
381 | 390 |
@@ -44,7 +44,7 @@ |
||
44 | 44 | class SugarFieldBool extends SugarFieldBase { |
45 | 45 | /** |
46 | 46 | * |
47 | - * @return The html for a drop down if the search field is not 'my_items_only' or a dropdown for all other fields. |
|
47 | + * @return string html for a drop down if the search field is not 'my_items_only' or a dropdown for all other fields. |
|
48 | 48 | * This strange behavior arises from the special needs of PM. They want the my items to be checkboxes and all other boolean fields to be dropdowns. |
49 | 49 | * @author Navjeet Singh |
50 | 50 | * @param $parentFieldArray - |
@@ -351,6 +351,10 @@ discard block |
||
351 | 351 | * Check if the template is cached |
352 | 352 | * return a bool |
353 | 353 | */ |
354 | + |
|
355 | + /** |
|
356 | + * @param string $cacheRowFile |
|
357 | + */ |
|
354 | 358 | function checkTemplate($cacheRowFile){ |
355 | 359 | if(inDeveloperMode() || !empty($_SESSION['developerMode'])){ |
356 | 360 | return false; |
@@ -502,6 +506,11 @@ discard block |
||
502 | 506 | |
503 | 507 | |
504 | 508 | |
509 | + /** |
|
510 | + * @param string $view |
|
511 | + * |
|
512 | + * @return string |
|
513 | + */ |
|
505 | 514 | function findTemplate($view){ |
506 | 515 | static $tplCache = array(); |
507 | 516 |
@@ -102,9 +102,8 @@ |
||
102 | 102 | /** |
103 | 103 | * format the currency field based on system locale values for currency |
104 | 104 | * Note that this may be different from the precision specified in the vardefs. |
105 | - * @param string $rawfield value of the field |
|
106 | - * @param string $somewhere vardef for the field being processed |
|
107 | - * @return number formatted according to currency settings |
|
105 | + * @param string $rawField value of the field |
|
106 | + * @return string formatted according to currency settings |
|
108 | 107 | */ |
109 | 108 | public function formatField($rawField, $vardef) |
110 | 109 | { |