@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | * @see checkForDuplicates (method), ContactFormBase.php, LeadFormBase.php, ProspectFormBase.php |
62 | 62 | * @param $focus sugarbean |
63 | 63 | * @param $prefix String value of prefix that may be present in $_POST variables |
64 | - * @return SQL String of the query that should be used for the initial duplicate lookup check |
|
64 | + * @return string String of the query that should be used for the initial duplicate lookup check |
|
65 | 65 | */ |
66 | 66 | public function getDuplicateQuery($focus, $prefix='') |
67 | 67 | { |
@@ -645,6 +645,9 @@ discard block |
||
645 | 645 | } |
646 | 646 | } |
647 | 647 | |
648 | +/** |
|
649 | + * @param string $return_id |
|
650 | + */ |
|
648 | 651 | function handleRedirect($return_id){ |
649 | 652 | if(isset($_POST['return_module']) && $_POST['return_module'] != "") { |
650 | 653 | $return_module = urlencode($_POST['return_module']); |
@@ -48,6 +48,9 @@ |
||
48 | 48 | } |
49 | 49 | } |
50 | 50 | |
51 | + /** |
|
52 | + * @param string $emailSubject |
|
53 | + */ |
|
51 | 54 | function sendEmail($emailTo, $emailSubject, $emailBody, $altemailBody, SugarBean $relatedBean = null) |
52 | 55 | { |
53 | 56 | require_once('modules/Emails/Email.php'); |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | * |
91 | 91 | * @param $amount The currency amount to convert to US Dollars |
92 | 92 | * @param $precision The rounding precision scale |
93 | - * @return currency value in US Dollars from conversion |
|
93 | + * @return double value in US Dollars from conversion |
|
94 | 94 | */ |
95 | 95 | function convertToDollar($amount, $precision = 6) { |
96 | 96 | return round(($amount / $this->conversion_rate), $precision); |
@@ -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) { |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | * |
100 | 100 | * @param STRING $module |
101 | 101 | * @param boolean saveCache Boolean value indicating whether or not to pass saveCache value to saveToVardef, defaults to true |
102 | - * @return unknown |
|
102 | + * @return boolean |
|
103 | 103 | */ |
104 | 104 | function buildCache($module = false, $saveCache=true) { |
105 | 105 | //We can't build the cache while installing as the required database tables may not exist. |
@@ -308,6 +308,9 @@ discard block |
||
308 | 308 | |
309 | 309 | } |
310 | 310 | |
311 | + /** |
|
312 | + * @param string $joinTableAlias |
|
313 | + */ |
|
311 | 314 | function getRelateJoin($field_def, $joinTableAlias, $withIdName = true) { |
312 | 315 | if (empty($field_def['type']) || $field_def['type'] != "relate") { |
313 | 316 | return false; |
@@ -465,7 +468,6 @@ discard block |
||
465 | 468 | /** |
466 | 469 | * Deletes the field from fields_meta_data and drops the database column then it rebuilds the cache |
467 | 470 | * Use the widgets get_db_modify_alter_table() method to get the table sql - some widgets do not need any custom table modifications |
468 | - * @param STRING $name - field name |
|
469 | 471 | */ |
470 | 472 | function deleteField($widget){ |
471 | 473 | require_once('modules/DynamicFields/templates/Fields/TemplateField.php'); |
@@ -525,7 +527,7 @@ discard block |
||
525 | 527 | /** |
526 | 528 | * Adds a custom field using a field object |
527 | 529 | * |
528 | - * @param Field Object $field |
|
530 | + * @param Field TemplateField $field |
|
529 | 531 | * @return boolean |
530 | 532 | */ |
531 | 533 | function addFieldObject(&$field){ |
@@ -605,6 +607,9 @@ discard block |
||
605 | 607 | return true; |
606 | 608 | } |
607 | 609 | |
610 | + /** |
|
611 | + * @param string[] $column_fields |
|
612 | + */ |
|
608 | 613 | function saveExtendedAttributes($field, $column_fields) |
609 | 614 | { |
610 | 615 | require_once ('modules/ModuleBuilder/parsers/StandardField.php') ; |
@@ -686,6 +691,9 @@ discard block |
||
686 | 691 | } |
687 | 692 | } |
688 | 693 | |
694 | + /** |
|
695 | + * @param TemplateField $field |
|
696 | + */ |
|
689 | 697 | protected function removeVardefExtension($field) |
690 | 698 | { |
691 | 699 | $file_loc = "$this->base_path/sugarfield_{$field->name}.php"; |
@@ -710,12 +718,12 @@ discard block |
||
710 | 718 | * @param unknown_type $ext1 |
711 | 719 | * @param unknown_type $ext2 |
712 | 720 | * @param unknown_type $ext3 |
713 | - * @param unknown_type $audited |
|
714 | - * @param unknown_type $inline_edit |
|
715 | - * @param unknown_type $mass_update |
|
721 | + * @param integer $audited |
|
722 | + * @param integer $inline_edit |
|
723 | + * @param integer $mass_update |
|
716 | 724 | * @param unknown_type $ext4 |
717 | 725 | * @param unknown_type $help |
718 | - * @param unknown_type $duplicate_merge |
|
726 | + * @param integer $duplicate_merge |
|
719 | 727 | * @param unknown_type $comment |
720 | 728 | * @return boolean |
721 | 729 | */ |
@@ -983,6 +991,9 @@ discard block |
||
983 | 991 | |
984 | 992 | } |
985 | 993 | |
994 | + /** |
|
995 | + * @param string $type |
|
996 | + */ |
|
986 | 997 | function getAllFieldsView($view, $type){ |
987 | 998 | require_once ('modules/DynamicFields/FieldCases.php'); |
988 | 999 | $results = array(); |
@@ -309,6 +309,9 @@ |
||
309 | 309 | return $GLOBALS['db']->getHelper()->addColumnSQL($table, $this->get_field_def(), true); |
310 | 310 | } |
311 | 311 | |
312 | + /** |
|
313 | + * @param string $table |
|
314 | + */ |
|
312 | 315 | function get_db_delete_alter_table($table) |
313 | 316 | { |
314 | 317 | return $GLOBALS['db']->getHelper()->dropColumnSQL( |
@@ -231,7 +231,7 @@ |
||
231 | 231 | /** |
232 | 232 | * Delete label of id field |
233 | 233 | * @param TemplateField $fieldId |
234 | - * @param $df |
|
234 | + * @param DynamicField $df |
|
235 | 235 | */ |
236 | 236 | protected function deleteIdLabel(TemplateField $fieldId, $df) |
237 | 237 | { |
@@ -107,6 +107,7 @@ |
||
107 | 107 | |
108 | 108 | /** |
109 | 109 | * @see SugarView::getModuleTitleIconPath() |
110 | + * @param string $module |
|
110 | 111 | */ |
111 | 112 | protected function getModuleTitleIconPath($module) |
112 | 113 | { |
@@ -131,6 +131,9 @@ discard block |
||
131 | 131 | |
132 | 132 | } // if |
133 | 133 | |
134 | + /** |
|
135 | + * @param string $order_by |
|
136 | + */ |
|
134 | 137 | function create_queue_items_query($order_by, $where,$filter=array(),$params=array(), $show_deleted = 0,$join_type='', $return_array = false,$parentbean=null, $singleSelect = false) { |
135 | 138 | |
136 | 139 | if ($return_array) { |
@@ -262,6 +265,10 @@ discard block |
||
262 | 265 | } |
263 | 266 | |
264 | 267 | |
268 | + /** |
|
269 | + * @param string $email_type |
|
270 | + * @param string $activity_type |
|
271 | + */ |
|
265 | 272 | function set_as_sent($email_address, $delete= true,$email_id=null, $email_type=null,$activity_type=null){ |
266 | 273 | |
267 | 274 | global $timedate; |
@@ -308,7 +315,7 @@ discard block |
||
308 | 315 | * @param string $subject email subject |
309 | 316 | * @param string $body_text Email Body Text |
310 | 317 | * @param string $body_html Email Body HTML |
311 | - * @param string $campaign_name Campaign Name |
|
318 | + * @param string $campagin_name Campaign Name |
|
312 | 319 | * @param string from_address Email address of the sender, usually email address of the configured inbox. |
313 | 320 | * @param string sender_id If of the user sending the campaign. |
314 | 321 | * @param array macro_nv array of name value pair, one row for each replacable macro in email template text. |
@@ -1158,6 +1158,10 @@ discard block |
||
1158 | 1158 | } |
1159 | 1159 | } |
1160 | 1160 | |
1161 | + /** |
|
1162 | + * @param string $id |
|
1163 | + * @param string $type |
|
1164 | + */ |
|
1161 | 1165 | function linkEmailToAddress($id, $type) { |
1162 | 1166 | // TODO: make this update? |
1163 | 1167 | $q1 = "SELECT * FROM emails_email_addr_rel WHERE email_id = '{$this->id}' AND email_address_id = '{$id}' AND address_type = '{$type}' AND deleted = 0"; |
@@ -1598,6 +1602,9 @@ discard block |
||
1598 | 1602 | * @param array addrs_ids (from contacts) |
1599 | 1603 | * @param array addrs_names (from contacts); |
1600 | 1604 | * @param array addrs_emails (from contacts); |
1605 | + * @param string $addrs_ids |
|
1606 | + * @param string $addrs_names |
|
1607 | + * @param string $addrs_emails |
|
1601 | 1608 | * @return array Parsed assoc array to feed to PHPMailer |
1602 | 1609 | */ |
1603 | 1610 | function parse_addrs($addrs, $addrs_ids, $addrs_names, $addrs_emails) { |
@@ -1940,6 +1947,7 @@ discard block |
||
1940 | 1947 | * @param object mail SugarPHPMailer object |
1941 | 1948 | * @param string mailer_id |
1942 | 1949 | * @param string ieId |
1950 | + * @param SugarPHPMailer $mail |
|
1943 | 1951 | * @return object mail SugarPHPMailer object |
1944 | 1952 | */ |
1945 | 1953 | function setMailer($mail, $mailer_id='', $ieId='') { |
@@ -2645,7 +2653,7 @@ discard block |
||
2645 | 2653 | * Determine if an imported email has an attachment by examining the relationship to notes. |
2646 | 2654 | * |
2647 | 2655 | * @param string $id |
2648 | - * @return boolean |
|
2656 | + * @return integer |
|
2649 | 2657 | */ |
2650 | 2658 | function doesImportedEmailHaveAttachment($id) |
2651 | 2659 | { |
@@ -3075,8 +3083,7 @@ discard block |
||
3075 | 3083 | /** |
3076 | 3084 | * Convert reference to inline image (stored as Note) to URL link |
3077 | 3085 | * Enter description here ... |
3078 | - * @param string $note ID of the note |
|
3079 | - * @param string $ext type of the note |
|
3086 | + * @param string $noteId ID of the note |
|
3080 | 3087 | */ |
3081 | 3088 | public function cid2Link($noteId, $noteType) |
3082 | 3089 | { |
@@ -3144,7 +3151,7 @@ discard block |
||
3144 | 3151 | * Bugs 50972, 50973 |
3145 | 3152 | * Set the field def back to the way it was prior to modification |
3146 | 3153 | * |
3147 | - * @param $field |
|
3154 | + * @param string $field |
|
3148 | 3155 | * @return void |
3149 | 3156 | */ |
3150 | 3157 | public function revertFieldNullable($field) |