@@ -113,6 +113,9 @@ |
||
113 | 113 | return $ret; |
114 | 114 | } |
115 | 115 | |
116 | + /** |
|
117 | + * @param SugarBean $template |
|
118 | + */ |
|
116 | 119 | public function sendEmail($emails, $template, $signature = array(), $caseId = null, $addDelimiter = true, $contactId = null){ |
117 | 120 | $GLOBALS['log']->info("AOPCaseUpdates: sendEmail called"); |
118 | 121 | require_once("include/SugarPHPMailer.php"); |
@@ -230,6 +230,9 @@ |
||
230 | 230 | //field was 0. |
231 | 231 | //The approach below will strip off the fractional part if it is only zeroes (and in this case the decimal separator |
232 | 232 | //will also be stripped off) The custom decimal separator is passed in to the function from the locale settings |
233 | +/** |
|
234 | + * @param string $inputString |
|
235 | + */ |
|
233 | 236 | function stripDecimalPointsAndTrailingZeroes($inputString,$decimalSeparator) |
234 | 237 | { |
235 | 238 | return preg_replace('/'.preg_quote($decimalSeparator).'[0]+$/','',$inputString); |
@@ -21,6 +21,9 @@ discard block |
||
21 | 21 | |
22 | 22 | } |
23 | 23 | |
24 | + /** |
|
25 | + * @param integer $i |
|
26 | + */ |
|
24 | 27 | private function getWizardMenuItemHTML($i, $label, $link = false) |
25 | 28 | { |
26 | 29 | if($i>=4) { |
@@ -38,6 +41,9 @@ discard block |
||
38 | 41 | return $html; |
39 | 42 | } |
40 | 43 | |
44 | + /** |
|
45 | + * @param string $innerHTML |
|
46 | + */ |
|
41 | 47 | private function getWizardMenuHTML($innerHTML) |
42 | 48 | { |
43 | 49 | $imgdir = 'themes/SuiteR/images/wizmenu/'; |
@@ -42,6 +42,9 @@ discard block |
||
42 | 42 | return $html; |
43 | 43 | } |
44 | 44 | |
45 | + /** |
|
46 | + * @param string $booleanFields |
|
47 | + */ |
|
45 | 48 | private static function getFormFooterHTML($webFormFooter, $webFormSubmitLabel, $webFormCampaign, $webRedirectURL, $webAssignedUser, $booleanFields, $moduleDir) { |
46 | 49 | $webFormCampaignInput = $webFormCampaign ? "<input type='hidden' id='campaign_id' name='campaign_id' value='$webFormCampaign'>" : ''; |
47 | 50 | $webRedirectURLInput = $webRedirectURL ? "<input type='hidden' id='redirect_url' name='redirect_url' value='$webRedirectURL'>" : ''; |
@@ -130,6 +133,9 @@ discard block |
||
130 | 133 | |
131 | 134 | // enums |
132 | 135 | |
136 | + /** |
|
137 | + * @param string $fieldLabel |
|
138 | + */ |
|
133 | 139 | private static function getFieldEnumHTML($lead, $fieldName, $appListStringsFieldOptions, $fieldRequired, $fieldLabel, $webRequiredSymbol, $colsField) { |
134 | 140 | $html = ''; |
135 | 141 | |
@@ -147,6 +153,9 @@ discard block |
||
147 | 153 | return $html; |
148 | 154 | } |
149 | 155 | |
156 | + /** |
|
157 | + * @param string $leadOptions |
|
158 | + */ |
|
150 | 159 | private static function getFieldEnumMultiSelectHTML($fieldName, $leadOptions, $fieldRequired) { |
151 | 160 | $_required = $fieldRequired ? ' required' : ''; |
152 | 161 | $html = "<select id=\"$fieldName\" multiple=\"true\" name=\"{$fieldName}[]\" tabindex=\"1\"$_required>$leadOptions</select>"; |
@@ -172,6 +181,9 @@ discard block |
||
172 | 181 | return $html; |
173 | 182 | } |
174 | 183 | |
184 | + /** |
|
185 | + * @param string $leadOptions |
|
186 | + */ |
|
175 | 187 | private static function getFieldEnumSelectHTML($fieldName, $leadOptions, $fieldRequired) { |
176 | 188 | $_required = $fieldRequired ? ' required' : ''; |
177 | 189 | $html = "<select id=\"$fieldName\" name=\"$fieldName\" tabindex=\"1\"$_required>$leadOptions</select>"; |
@@ -180,6 +192,9 @@ discard block |
||
180 | 192 | |
181 | 193 | // bool |
182 | 194 | |
195 | + /** |
|
196 | + * @param string $fieldLabel |
|
197 | + */ |
|
183 | 198 | private static function getFieldBoolHTML($fieldName, $fieldRequired, $fieldLabel, $webRequiredSymbol, $fieldRequired) { |
184 | 199 | $_required = $fieldRequired ? ' required' : ''; |
185 | 200 | $html = self::getFieldLabelHTML($fieldLabel, $fieldRequired, $webRequiredSymbol); |
@@ -189,6 +204,9 @@ discard block |
||
189 | 204 | |
190 | 205 | // date |
191 | 206 | |
207 | + /** |
|
208 | + * @param string $fieldLabel |
|
209 | + */ |
|
192 | 210 | private static function getFieldDateHTML($fieldName, $fieldRequired, $fieldLabel, $webRequiredSymbol) { |
193 | 211 | $_required = $fieldRequired ? ' required' : ''; |
194 | 212 | $html = self::getFieldLabelHTML($fieldLabel, $fieldRequired, $webRequiredSymbol); |
@@ -198,6 +216,9 @@ discard block |
||
198 | 216 | |
199 | 217 | // char strings |
200 | 218 | |
219 | + /** |
|
220 | + * @param string $fieldLabel |
|
221 | + */ |
|
201 | 222 | private static function getFieldCharsHTML($fieldName, $fieldLabel, $fieldRequired, $webRequiredSymbol) { |
202 | 223 | $isRequired = $fieldName=='last_name' || $fieldRequired; |
203 | 224 | $_required = $isRequired ? ' required' : ''; |
@@ -209,6 +230,10 @@ discard block |
||
209 | 230 | |
210 | 231 | // text |
211 | 232 | |
233 | + /** |
|
234 | + * @param string $fieldLabel |
|
235 | + * @param boolean $fieldRequired |
|
236 | + */ |
|
212 | 237 | private static function getFieldTextHTML($fieldName, $fieldLabel, $fieldRequired, $webRequiredSymbol) { |
213 | 238 | $_required = $fieldRequired ? ' required' : ''; |
214 | 239 | $html = self::getFieldLabelHTML($fieldLabel, $fieldRequired, $webRequiredSymbol); |
@@ -218,6 +243,10 @@ discard block |
||
218 | 243 | |
219 | 244 | // relate |
220 | 245 | |
246 | + /** |
|
247 | + * @param string $fieldLabel |
|
248 | + * @param boolean $fieldRequired |
|
249 | + */ |
|
221 | 250 | private static function getFieldRelateHTML($fieldName, $fieldLabel, $fieldRequired, $webRequiredSymbol) { |
222 | 251 | $_required = $fieldRequired ? ' required' : ''; |
223 | 252 | $html = self::getFieldLabelHTML($fieldLabel, $fieldRequired, $webRequiredSymbol); |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | * |
104 | 104 | * @param $amount The currency amount in US Dollars |
105 | 105 | * @param $precision The rounding precision scale |
106 | - * @return currency value from US Dollar conversion |
|
106 | + * @return double value from US Dollar conversion |
|
107 | 107 | */ |
108 | 108 | function convertFromDollar($amount, $precision = 6){ |
109 | 109 | return round(($amount * $this->conversion_rate), $precision); |
@@ -174,6 +174,9 @@ discard block |
||
174 | 174 | return $list_form; |
175 | 175 | } |
176 | 176 | |
177 | + /** |
|
178 | + * @return integer |
|
179 | + */ |
|
177 | 180 | function retrieve_id_by_name($name) { |
178 | 181 | $query = "select id from currencies where name='$name' and deleted=0;"; |
179 | 182 | $result = $this->db->query($query); |
@@ -405,6 +408,9 @@ discard block |
||
405 | 408 | |
406 | 409 | |
407 | 410 | |
411 | +/** |
|
412 | + * @param boolean $symbol_space |
|
413 | + */ |
|
408 | 414 | function format_place_symbol($amount, $symbol, $symbol_space) { |
409 | 415 | if($symbol != '') { |
410 | 416 | if($symbol_space == true) { |
@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | |
119 | 119 | /** |
120 | 120 | * Generates the extended field_defs for creating macros |
121 | - * @return array |
|
121 | + * @return string |
|
122 | 122 | */ |
123 | 123 | function generateFieldDefsJS() |
124 | 124 | { |
@@ -365,7 +365,7 @@ discard block |
||
365 | 365 | /** |
366 | 366 | * |
367 | 367 | * Method for replace "preg_match_all" in method "parse_tracker_urls" |
368 | - * @param $text string String in which we need to search all string that match the pattern {.} |
|
368 | + * @param string $text string String in which we need to search all string that match the pattern {.} |
|
369 | 369 | * @return array result of search |
370 | 370 | */ |
371 | 371 | private function _preg_match_tracker_url($text) |
@@ -165,6 +165,10 @@ |
||
165 | 165 | $this->handleAttachmentsProcessImages($focus, $redirect, $useSiteURL, $entryPoint, $useUploadFolder); |
166 | 166 | } |
167 | 167 | |
168 | + /** |
|
169 | + * @param SugarBean $focus |
|
170 | + * @param boolean $redirect |
|
171 | + */ |
|
168 | 172 | public function handleAttachmentsProcessImages($focus, $redirect, $useSiteURL = false, $entryPoint = 'download', $useUploadFolder = false) { |
169 | 173 | global $sugar_config; |
170 | 174 | $preProcessedImages = array(); |
@@ -190,7 +190,7 @@ discard block |
||
190 | 190 | /** |
191 | 191 | * retrieves I-E bean |
192 | 192 | * @param string id |
193 | - * @return object Bean |
|
193 | + * @return SugarBean|null Bean |
|
194 | 194 | */ |
195 | 195 | function retrieve($id = -1, $encode=true, $deleted=true) { |
196 | 196 | $ret = parent::retrieve($id,$encode,$deleted); |
@@ -453,6 +453,7 @@ discard block |
||
453 | 453 | /** |
454 | 454 | * sets the cache timestamp |
455 | 455 | * @param string mbox |
456 | + * @param string $mbox |
|
456 | 457 | */ |
457 | 458 | function setCacheTimestamp($mbox) { |
458 | 459 | $key = $this->db->quote("{$this->id}_{$mbox}"); |
@@ -486,6 +487,7 @@ discard block |
||
486 | 487 | /** |
487 | 488 | * Returns total number of emails for a mailbox |
488 | 489 | * @param string mbox |
490 | + * @param string $mbox |
|
489 | 491 | * @return int |
490 | 492 | */ |
491 | 493 | function getCacheCount($mbox) { |
@@ -541,6 +543,7 @@ discard block |
||
541 | 543 | |
542 | 544 | /** |
543 | 545 | * Retrieves cached headers |
546 | + * @param string|null $mbox |
|
544 | 547 | * @return array |
545 | 548 | */ |
546 | 549 | function getCacheValueForUIDs($mbox, $UIDs) { |
@@ -1728,7 +1731,6 @@ discard block |
||
1728 | 1731 | * Deletes cached messages when moving from folder to folder |
1729 | 1732 | * @param string $uids |
1730 | 1733 | * @param string $fromFolder |
1731 | - * @param string $toFolder |
|
1732 | 1734 | */ |
1733 | 1735 | function deleteCachedMessages($uids, $fromFolder) { |
1734 | 1736 | global $sugar_config; |
@@ -2546,31 +2548,65 @@ discard block |
||
2546 | 2548 | } |
2547 | 2549 | } |
2548 | 2550 | |
2551 | + /** |
|
2552 | + * @param string $server_url |
|
2553 | + * @param string $email_user |
|
2554 | + * @param string $port |
|
2555 | + */ |
|
2549 | 2556 | function getSessionConnectionString($server_url, $email_user, $port, $protocol) { |
2550 | 2557 | $sessionConnectionString = $server_url . $email_user . $port . $protocol; |
2551 | 2558 | return (isset($_SESSION[$sessionConnectionString]) ? $_SESSION[$sessionConnectionString] : ""); |
2552 | 2559 | } |
2553 | 2560 | |
2561 | + /** |
|
2562 | + * @param string $server_url |
|
2563 | + * @param string $email_user |
|
2564 | + * @param string $port |
|
2565 | + * @param string $protocol |
|
2566 | + */ |
|
2554 | 2567 | function setSessionConnectionString($server_url, $email_user, $port, $protocol, $goodStr) { |
2555 | 2568 | $sessionConnectionString = $server_url . $email_user . $port . $protocol; |
2556 | 2569 | $_SESSION[$sessionConnectionString] = $goodStr; |
2557 | 2570 | } |
2558 | 2571 | |
2572 | + /** |
|
2573 | + * @param string $server_url |
|
2574 | + * @param string $email_user |
|
2575 | + * @param string $port |
|
2576 | + */ |
|
2559 | 2577 | function getSessionInboundDelimiterString($server_url, $email_user, $port, $protocol) { |
2560 | 2578 | $sessionInboundDelimiterString = $server_url . $email_user . $port . $protocol . "delimiter"; |
2561 | 2579 | return (isset($_SESSION[$sessionInboundDelimiterString]) ? $_SESSION[$sessionInboundDelimiterString] : ""); |
2562 | 2580 | } |
2563 | 2581 | |
2582 | + /** |
|
2583 | + * @param string $server_url |
|
2584 | + * @param string $email_user |
|
2585 | + * @param string $port |
|
2586 | + * @param string $protocol |
|
2587 | + */ |
|
2564 | 2588 | function setSessionInboundDelimiterString($server_url, $email_user, $port, $protocol, $delimiter) { |
2565 | 2589 | $sessionInboundDelimiterString = $server_url . $email_user . $port . $protocol . "delimiter"; |
2566 | 2590 | $_SESSION[$sessionInboundDelimiterString] = $delimiter; |
2567 | 2591 | } |
2568 | 2592 | |
2593 | + /** |
|
2594 | + * @param string $server_url |
|
2595 | + * @param string $email_user |
|
2596 | + * @param string $port |
|
2597 | + * @param string $protocol |
|
2598 | + */ |
|
2569 | 2599 | function getSessionInboundFoldersString($server_url, $email_user, $port, $protocol) { |
2570 | 2600 | $sessionInboundFoldersListString = $server_url . $email_user . $port . $protocol . "foldersList"; |
2571 | 2601 | return (isset($_SESSION[$sessionInboundFoldersListString]) ? $_SESSION[$sessionInboundFoldersListString] : ""); |
2572 | 2602 | } |
2573 | 2603 | |
2604 | + /** |
|
2605 | + * @param string $server_url |
|
2606 | + * @param string $email_user |
|
2607 | + * @param string $port |
|
2608 | + * @param string $protocol |
|
2609 | + */ |
|
2574 | 2610 | function setSessionInboundFoldersString($server_url, $email_user, $port, $protocol, $foldersList) { |
2575 | 2611 | $sessionInboundFoldersListString = $server_url . $email_user . $port . $protocol . "foldersList"; |
2576 | 2612 | $_SESSION[$sessionInboundFoldersListString] = $foldersList; |
@@ -2729,6 +2765,7 @@ discard block |
||
2729 | 2765 | * |
2730 | 2766 | * @param object email Email object passed as a reference |
2731 | 2767 | * @param object header Header object generated by imap_headerinfo(); |
2768 | + * @param Email $email |
|
2732 | 2769 | */ |
2733 | 2770 | function handleMailboxType(&$email, &$header) { |
2734 | 2771 | switch($this->mailbox_type) { |
@@ -2763,6 +2800,9 @@ discard block |
||
2763 | 2800 | return ($this->mailbox_type == 'createcase' && !empty($this->groupfolder_id)); |
2764 | 2801 | } // fn |
2765 | 2802 | |
2803 | + /** |
|
2804 | + * @param Email $email |
|
2805 | + */ |
|
2766 | 2806 | function handleCreateCase($email, $userId) { |
2767 | 2807 | global $current_user, $mod_strings, $current_language; |
2768 | 2808 | $mod_strings = return_module_language($current_language, "Emails"); |
@@ -3004,7 +3044,8 @@ discard block |
||
3004 | 3044 | * takes a breadcrumb and returns the encoding at that level |
3005 | 3045 | * @param string bc the breadcrumb string in format (1.1.1) |
3006 | 3046 | * @param array parts the root level parts array |
3007 | - * @return int retInt Int key to transfer encoding (see handleTranserEncoding()) |
|
3047 | + * @param string $bc |
|
3048 | + * @return string retInt Int key to transfer encoding (see handleTranserEncoding()) |
|
3008 | 3049 | */ |
3009 | 3050 | function getEncodingFromBreadCrumb($bc, $parts) { |
3010 | 3051 | if(strstr($bc,'.')) { |
@@ -3030,6 +3071,7 @@ discard block |
||
3030 | 3071 | * |
3031 | 3072 | * @param string bc target part of the message in format (1.1.1) |
3032 | 3073 | * @param array parts 1 level above ROOT array of Objects representing a multipart body |
3074 | + * @param string $bc |
|
3033 | 3075 | * @return string charset name |
3034 | 3076 | */ |
3035 | 3077 | function getCharsetFromBreadCrumb($bc, $parts) |
@@ -3098,6 +3140,7 @@ discard block |
||
3098 | 3140 | * |
3099 | 3141 | * @param int msgNo the relative message number for the monitored mailbox |
3100 | 3142 | * @param string $type the type of text processed, either 'PLAIN' or 'HTML' |
3143 | + * @param string $fullHeader |
|
3101 | 3144 | * @return string UTF-8 encoded version of the requested message text |
3102 | 3145 | */ |
3103 | 3146 | function getMessageText($msgNo, $type, $structure, $fullHeader,$clean_email=true, $bcOffset = "") { |
@@ -3256,7 +3299,7 @@ discard block |
||
3256 | 3299 | * Builds up the "breadcrumb" trail that imap_fetchbody() uses to return |
3257 | 3300 | * parts of an email message, including attachments and inline images |
3258 | 3301 | * @param $parts array of objects |
3259 | - * @param $subtype what type of trail to return? HTML? Plain? binaries? |
|
3302 | + * @param string $subtype what type of trail to return? HTML? Plain? binaries? |
|
3260 | 3303 | * @param $breadcrumb text trail to build up |
3261 | 3304 | */ |
3262 | 3305 | function buildBreadCrumbs($parts, $subtype, $breadcrumb = '0') { |
@@ -3579,6 +3622,8 @@ discard block |
||
3579 | 3622 | * @param string thisBc Breadcrumb to navigate email structure to find the content |
3580 | 3623 | * @param object part IMAP standard object that contains the "parts" of this section of email |
3581 | 3624 | * @param bool $forDisplay |
3625 | + * @param null|Note $attach |
|
3626 | + * @param integer $msgNo |
|
3582 | 3627 | */ |
3583 | 3628 | function saveAttachmentBinaries($attach, $msgNo, $thisBc, $part, $forDisplay) { |
3584 | 3629 | // decide where to place the file temporarily |
@@ -3622,7 +3667,7 @@ discard block |
||
3622 | 3667 | /** |
3623 | 3668 | * decodes a string based on its associated encoding |
3624 | 3669 | * if nothing is passed, we default to no-encoding type |
3625 | - * @param $str encoded string |
|
3670 | + * @param string $str encoded string |
|
3626 | 3671 | * @param $enc detected encoding |
3627 | 3672 | */ |
3628 | 3673 | function handleTranserEncoding($str, $enc=0) { |
@@ -3668,6 +3713,7 @@ discard block |
||
3668 | 3713 | * @param int message number (mailserver's key) of email |
3669 | 3714 | * @param object header object generated by imap_headerinfo() |
3670 | 3715 | * @param string textHeader Headers in normal text format |
3716 | + * @param string $textHeader |
|
3671 | 3717 | * @return bool |
3672 | 3718 | */ |
3673 | 3719 | function importDupeCheck($message_id, $header, $textHeader) { |
@@ -4197,6 +4243,8 @@ discard block |
||
4197 | 4243 | * handles UU Encoded emails - a legacy from pre-RFC 822 which must still be supported (?) |
4198 | 4244 | * @param string raw The raw email body |
4199 | 4245 | * @param string id Parent email ID |
4246 | + * @param string $raw |
|
4247 | + * @param string $id |
|
4200 | 4248 | * @return string The filtered email body, stripped of attachments |
4201 | 4249 | */ |
4202 | 4250 | function handleUUEncodedEmailBody($raw, $id) { |
@@ -4243,6 +4291,8 @@ discard block |
||
4243 | 4291 | * wrapper for UUDecode |
4244 | 4292 | * @param string id Id of the email |
4245 | 4293 | * @param string UUEncode Encode US-ASCII |
4294 | + * @param string $fileName |
|
4295 | + * @param string $UUEncode |
|
4246 | 4296 | */ |
4247 | 4297 | function handleUUDecode($id, $fileName, $UUEncode) { |
4248 | 4298 | global $sugar_config; |
@@ -4525,6 +4575,9 @@ discard block |
||
4525 | 4575 | return false; |
4526 | 4576 | } |
4527 | 4577 | |
4578 | + /** |
|
4579 | + * @param string $option_name |
|
4580 | + */ |
|
4528 | 4581 | function get_stored_options($option_name,$default_value=null,$stored_options=null) { |
4529 | 4582 | if (empty($stored_options)) { |
4530 | 4583 | $stored_options=$this->stored_options; |
@@ -4547,6 +4600,7 @@ discard block |
||
4547 | 4600 | * This function returns a contact or user ID if a matching email is found |
4548 | 4601 | * @param $email the email address to match |
4549 | 4602 | * @param $table which table to query |
4603 | + * @param string $module |
|
4550 | 4604 | */ |
4551 | 4605 | function getRelatedId($email, $module) { |
4552 | 4606 | $email = trim(strtoupper($email)); |
@@ -4792,7 +4846,7 @@ discard block |
||
4792 | 4846 | * @param string $password The password associated with the username |
4793 | 4847 | * @param integer $options Bitmask for options parameter to the imap_open function |
4794 | 4848 | * |
4795 | - * @return resource|boolean Connection resource on success, FALSE on failure |
|
4849 | + * @return resource|null Connection resource on success, FALSE on failure |
|
4796 | 4850 | */ |
4797 | 4851 | protected function getImapConnection($mailbox, $username, $password, $options = 0) |
4798 | 4852 | { |
@@ -5377,6 +5431,7 @@ discard block |
||
5377 | 5431 | /** |
5378 | 5432 | * Gets the UIDL from database for the corresponding msgno |
5379 | 5433 | * @param int messageNo of a message |
5434 | + * @param integer $msgNo |
|
5380 | 5435 | * @return UIDL for the message |
5381 | 5436 | */ |
5382 | 5437 | function getUIDLForMessage($msgNo) { |
@@ -5409,6 +5464,7 @@ discard block |
||
5409 | 5464 | * Get the users default IE account id |
5410 | 5465 | * |
5411 | 5466 | * @param User $user |
5467 | + * @param string $oe_id |
|
5412 | 5468 | */ |
5413 | 5469 | function setUsersDefaultOutboundServerId($user,$oe_id) |
5414 | 5470 | { |
@@ -5515,6 +5571,8 @@ discard block |
||
5515 | 5571 | |
5516 | 5572 | /** |
5517 | 5573 | * Sets status for a particular attribute on the mailserver and the local cache file |
5574 | + * @param string $field |
|
5575 | + * @param integer $value |
|
5518 | 5576 | */ |
5519 | 5577 | function setStatuses($uid, $field, $value) { |
5520 | 5578 | global $sugar_config; |
@@ -5591,6 +5649,7 @@ discard block |
||
5591 | 5649 | * @param int uid UID of email to display |
5592 | 5650 | * @param string mbox Mailbox to look in for the message |
5593 | 5651 | * @param bool isMsgNo Flag to assume $uid is a MessageNo, not UniqueID, default false |
5652 | + * @param string|null $mbox |
|
5594 | 5653 | */ |
5595 | 5654 | function displayOneEmail($uid, $mbox, $isMsgNo=false) { |
5596 | 5655 | require_once("include/JSON.php"); |
@@ -5793,7 +5852,7 @@ discard block |
||
5793 | 5852 | /** |
5794 | 5853 | * Sorts IMAP's imap_fetch_overview() results |
5795 | 5854 | * @param array $arr Array of standard objects |
5796 | - * @param string $sort Column to sort by |
|
5855 | + * @param integer $sort Column to sort by |
|
5797 | 5856 | * @param string direction Direction to sort by (asc/desc) |
5798 | 5857 | * @return array Sorted array of obj. |
5799 | 5858 | */ |
@@ -5903,6 +5962,7 @@ discard block |
||
5903 | 5962 | * Returns a list of emails in a mailbox. |
5904 | 5963 | * @param string mbox Name of mailbox using dot notation paths to display |
5905 | 5964 | * @param string $forceRefresh Flag to use cache or not |
5965 | + * @param string $mbox |
|
5906 | 5966 | */ |
5907 | 5967 | function displayFolderContents($mbox, $forceRefresh='false', $page) { |
5908 | 5968 | global $current_user; |
@@ -6244,7 +6304,6 @@ discard block |
||
6244 | 6304 | |
6245 | 6305 | /** |
6246 | 6306 | * sorts the folders in a mailbox in a multi-dimensional array |
6247 | - * @param string $MBOX |
|
6248 | 6307 | * @param array $ret |
6249 | 6308 | * @return array |
6250 | 6309 | */ |
@@ -101,6 +101,10 @@ discard block |
||
101 | 101 | } |
102 | 102 | } |
103 | 103 | |
104 | + /** |
|
105 | + * @param string $eventModule |
|
106 | + * @param string $eventModuleId |
|
107 | + */ |
|
104 | 108 | private static function saveRemindersData($eventModule, $eventModuleId, $remindersData) |
105 | 109 | { |
106 | 110 | $savedReminderIds = array(); |
@@ -426,6 +430,9 @@ discard block |
||
426 | 430 | return null; |
427 | 431 | } |
428 | 432 | |
433 | + /** |
|
434 | + * @param string $person_table |
|
435 | + */ |
|
429 | 436 | private function upgradeEventPersonQuery(SugarBean $event, $person_table) |
430 | 437 | { |
431 | 438 | $eventIdField = strtolower($event->object_name) . '_id'; |
@@ -634,6 +641,9 @@ discard block |
||
634 | 641 | self::removeOldReminder($eventModule, $eventModuleId); |
635 | 642 | } |
636 | 643 | |
644 | + /** |
|
645 | + * @param string $reminderId |
|
646 | + */ |
|
637 | 647 | private static function migrateReminderInvitees($reminderId, $invitees) |
638 | 648 | { |
639 | 649 | $ret = array(); |