@@ -631,8 +631,6 @@ |
||
631 | 631 | /** |
632 | 632 | * Get discount from the account. |
633 | 633 | * |
634 | - * @param string $moduleName Module name |
|
635 | - * @param int $record Record ID |
|
636 | 634 | * |
637 | 635 | * @return array |
638 | 636 | */ |
@@ -564,6 +564,7 @@ discard block |
||
564 | 564 | /** |
565 | 565 | * Function gives fields based on the uitype. |
566 | 566 | * |
567 | + * @param integer $uitype |
|
567 | 568 | * @return Vtiger_Field_Model[] with field id as key |
568 | 569 | */ |
569 | 570 | public function getFieldsByUiType($uitype) |
@@ -926,6 +927,9 @@ discard block |
||
926 | 927 | return $modulesModelsList; |
927 | 928 | } |
928 | 929 | |
930 | + /** |
|
931 | + * @param string $moduleName |
|
932 | + */ |
|
929 | 933 | public static function getCleanInstance($moduleName) |
930 | 934 | { |
931 | 935 | $modelClassName = Vtiger_Loader::getComponentClassName('Model', 'Module', $moduleName); |
@@ -1015,7 +1019,7 @@ discard block |
||
1015 | 1019 | /** |
1016 | 1020 | * Function returns comments and recent activities across module. |
1017 | 1021 | * |
1018 | - * @param <Vtiger_Paging_Model> $pagingModel |
|
1022 | + * @param Vtiger_Paging_Model $pagingModel |
|
1019 | 1023 | * @param string $type - comments, updates or all |
1020 | 1024 | * |
1021 | 1025 | * @return <Array> |
@@ -157,7 +157,7 @@ discard block |
||
157 | 157 | /** |
158 | 158 | * Function to get the Module to which the record belongs. |
159 | 159 | * |
160 | - * @return Vtiger_Module_Model |
|
160 | + * @return boolean |
|
161 | 161 | */ |
162 | 162 | public function getModule() |
163 | 163 | { |
@@ -335,7 +335,7 @@ discard block |
||
335 | 335 | * @param string $fieldName Field name for which values need to get |
336 | 336 | * @param int|bool $record Record Id |
337 | 337 | * @param bool $rawText |
338 | - * @param int|bool $length Length of the text |
|
338 | + * @param boolean $length Length of the text |
|
339 | 339 | * |
340 | 340 | * @return bool |
341 | 341 | */ |
@@ -373,7 +373,7 @@ discard block |
||
373 | 373 | /** |
374 | 374 | * Function to get the display value in ListView. |
375 | 375 | * |
376 | - * @param string|Vtiger_Field_Model $field |
|
376 | + * @param Vtiger_Field_Model $field |
|
377 | 377 | * @param bool $rawText |
378 | 378 | * |
379 | 379 | * @throws \App\Exceptions\AppException |
@@ -920,7 +920,6 @@ discard block |
||
920 | 920 | /** |
921 | 921 | * Function to get Display value for RelatedList. |
922 | 922 | * |
923 | - * @param string $value |
|
924 | 923 | * |
925 | 924 | * @return string |
926 | 925 | */ |
@@ -1001,6 +1000,7 @@ discard block |
||
1001 | 1000 | * Function to set record module field values. |
1002 | 1001 | * |
1003 | 1002 | * @param parent record model |
1003 | + * @param Vtiger_Record_Model $parentRecordModel |
|
1004 | 1004 | */ |
1005 | 1005 | public function setRecordFieldValues($parentRecordModel) |
1006 | 1006 | { |
@@ -38,7 +38,6 @@ |
||
38 | 38 | * |
39 | 39 | * @param string $untilModifiedTime |
40 | 40 | * @param int $userId |
41 | - * @param int[] $recordsToDelete |
|
42 | 41 | * |
43 | 42 | * @throws \App\Exceptions\NoPermitted |
44 | 43 | */ |
@@ -50,7 +50,7 @@ discard block |
||
50 | 50 | /** |
51 | 51 | * Function to get watermark type. |
52 | 52 | * |
53 | - * @return array |
|
53 | + * @return string[] |
|
54 | 54 | */ |
55 | 55 | public function getWatermarkType() |
56 | 56 | { |
@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | * |
101 | 101 | * @param string $key |
102 | 102 | * |
103 | - * @return mixed |
|
103 | + * @return string |
|
104 | 104 | */ |
105 | 105 | public function getRaw($key) |
106 | 106 | { |
@@ -96,7 +96,7 @@ |
||
96 | 96 | */ |
97 | 97 | public function getDBValue($value, ?string $name = '') |
98 | 98 | { |
99 | - return (int)$value; |
|
99 | + return (int) $value; |
|
100 | 100 | } |
101 | 101 | |
102 | 102 | /** |
@@ -1,5 +1,5 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -$is_admin=true; |
|
4 | -$user_info=['user_name'=>'admin', 'is_admin'=>'on', 'user_password'=>'$2y$10$mvy47VqQjd853TpAUr5aE.pd2fSTjBv.Z3G0g8AqyPwPNcV/YtB02', 'confirm_password'=>'', 'first_name'=>'', 'last_name'=>'Administrator', 'roleid'=>'H2', 'email1'=>'[email protected]', 'status'=>'Active', 'activity_view'=>'This Month', 'lead_view'=>'Today', 'hour_format'=>'24', 'start_hour'=>'08:00', 'reports_to_id'=>0, 'date_format'=>'yyyy-mm-dd', 'description'=>'', 'accesskey'=>'aOFXop10GCJ1uw0P', 'time_zone'=>'Europe/Sarajevo', 'currency_id'=>1, 'currency_grouping_pattern'=>'123456789', 'currency_decimal_separator'=>'.', 'currency_grouping_separator'=>' ', 'currency_symbol_placement'=>'1.0$', 'imagename'=>'', 'internal_mailer'=>1, 'theme'=>'twilight', 'language'=>'pl-PL', 'reminder_interval'=>'15 Minutes', 'phone_crm_extension'=>'', 'no_of_currency_decimals'=>'2', 'truncate_trailing_zeros'=>1, 'dayoftheweek'=>'Monday', 'callduration'=>'60', 'othereventduration'=>'60', 'default_record_view'=>'Summary', 'leftpanelhide'=>0, 'rowheight'=>'medium', 'defaulteventstatus'=>'PLL_PLANNED', 'defaultactivitytype'=>'Meeting', 'is_owner'=>'1', 'end_hour'=>'23:00', 'emailoptout'=>1, 'available'=>1, 'auto_assign'=>0, 'view_date_format'=>'PLL_ELAPSED', 'login_method'=>'PLL_PASSWORD', 'currency_name'=>'Poland, Zlotych', 'currency_code'=>'PLN', 'currency_symbol'=>'zł', 'conv_rate'=>'1.00000', 'id'=>1]; |
|
3 | +$is_admin = true; |
|
4 | +$user_info = ['user_name'=>'admin', 'is_admin'=>'on', 'user_password'=>'$2y$10$mvy47VqQjd853TpAUr5aE.pd2fSTjBv.Z3G0g8AqyPwPNcV/YtB02', 'confirm_password'=>'', 'first_name'=>'', 'last_name'=>'Administrator', 'roleid'=>'H2', 'email1'=>'[email protected]', 'status'=>'Active', 'activity_view'=>'This Month', 'lead_view'=>'Today', 'hour_format'=>'24', 'start_hour'=>'08:00', 'reports_to_id'=>0, 'date_format'=>'yyyy-mm-dd', 'description'=>'', 'accesskey'=>'aOFXop10GCJ1uw0P', 'time_zone'=>'Europe/Sarajevo', 'currency_id'=>1, 'currency_grouping_pattern'=>'123456789', 'currency_decimal_separator'=>'.', 'currency_grouping_separator'=>' ', 'currency_symbol_placement'=>'1.0$', 'imagename'=>'', 'internal_mailer'=>1, 'theme'=>'twilight', 'language'=>'pl-PL', 'reminder_interval'=>'15 Minutes', 'phone_crm_extension'=>'', 'no_of_currency_decimals'=>'2', 'truncate_trailing_zeros'=>1, 'dayoftheweek'=>'Monday', 'callduration'=>'60', 'othereventduration'=>'60', 'default_record_view'=>'Summary', 'leftpanelhide'=>0, 'rowheight'=>'medium', 'defaulteventstatus'=>'PLL_PLANNED', 'defaultactivitytype'=>'Meeting', 'is_owner'=>'1', 'end_hour'=>'23:00', 'emailoptout'=>1, 'available'=>1, 'auto_assign'=>0, 'view_date_format'=>'PLL_ELAPSED', 'login_method'=>'PLL_PASSWORD', 'currency_name'=>'Poland, Zlotych', 'currency_code'=>'PLN', 'currency_symbol'=>'zł', 'conv_rate'=>'1.00000', 'id'=>1]; |
|
5 | 5 | return ['details'=>['user_name'=>'admin', 'is_admin'=>'1', 'user_password'=>'$2y$10$mvy47VqQjd853TpAUr5aE.pd2fSTjBv.Z3G0g8AqyPwPNcV/YtB02', 'confirm_password'=>'', 'first_name'=>'', 'last_name'=>'Administrator', 'roleid'=>'H2', 'email1'=>'[email protected]', 'status'=>'Active', 'activity_view'=>'This Month', 'lead_view'=>'Today', 'hour_format'=>'24', 'start_hour'=>'08:00', 'reports_to_id'=>0, 'date_format'=>'yyyy-mm-dd', 'description'=>'', 'accesskey'=>'aOFXop10GCJ1uw0P', 'time_zone'=>'Europe/Sarajevo', 'currency_id'=>1, 'currency_grouping_pattern'=>'123456789', 'currency_decimal_separator'=>'.', 'currency_grouping_separator'=>' ', 'currency_symbol_placement'=>'1.0$', 'imagename'=>'', 'internal_mailer'=>1, 'theme'=>'twilight', 'language'=>'pl-PL', 'reminder_interval'=>'15 Minutes', 'phone_crm_extension'=>'', 'no_of_currency_decimals'=>'2', 'truncate_trailing_zeros'=>1, 'dayoftheweek'=>'Monday', 'callduration'=>'60', 'othereventduration'=>'60', 'default_record_view'=>'Summary', 'leftpanelhide'=>0, 'rowheight'=>'medium', 'defaulteventstatus'=>'PLL_PLANNED', 'defaultactivitytype'=>'Meeting', 'is_owner'=>'1', 'end_hour'=>'23:00', 'emailoptout'=>1, 'available'=>1, 'auto_assign'=>0, 'records_limit'=>'', 'phone_crm_extension_extra'=>'', 'date_password_change'=>'', 'force_password_change'=>'', 'view_date_format'=>'PLL_ELAPSED', 'authy_methods'=>'', 'authy_secret_totp'=>'', 'login_method'=>'PLL_PASSWORD', 'currency_name'=>'Poland, Zlotych', 'currency_code'=>'PLN', 'currency_symbol'=>'zł', 'conv_rate'=>'1.00000', 'record_id'=>1, 'record_module'=>'Users'], 'displayName'=>'Administrator', 'profiles'=>[1], 'groups'=>[3], 'parent_roles'=>['H1'], 'parent_role_seq'=>'H1::H2']; |