@@ -102,6 +102,9 @@ discard block |
||
| 102 | 102 | vtlib\Deprecated::relateEntities($recordModel->getEntity(), $moduleName, $recordModel->getId(), 'Calendar', $newRecordModel->getId()); |
| 103 | 103 | } |
| 104 | 104 | |
| 105 | + /** |
|
| 106 | + * @param Vtiger_Record_Model $recordModel |
|
| 107 | + */ |
|
| 105 | 108 | private function calculateDate($recordModel, $days, $direction, $datefield) |
| 106 | 109 | { |
| 107 | 110 | $baseDate = $recordModel->get($datefield); |
@@ -124,7 +127,7 @@ discard block |
||
| 124 | 127 | * |
| 125 | 128 | * @param type $timeStr |
| 126 | 129 | * |
| 127 | - * @return time |
|
| 130 | + * @return string |
|
| 128 | 131 | */ |
| 129 | 132 | public static function convertToDBFormat($timeStr) |
| 130 | 133 | { |
@@ -24,7 +24,7 @@ |
||
| 24 | 24 | /** |
| 25 | 25 | * Get field names. |
| 26 | 26 | * |
| 27 | - * @return array |
|
| 27 | + * @return string[] |
|
| 28 | 28 | */ |
| 29 | 29 | public function getFieldNames() |
| 30 | 30 | { |
@@ -85,7 +85,7 @@ |
||
| 85 | 85 | * @param string[] $relatedData |
| 86 | 86 | * @param string $fieldValue |
| 87 | 87 | * |
| 88 | - * @return bool |
|
| 88 | + * @return false|null |
|
| 89 | 89 | */ |
| 90 | 90 | private function updateRecords($recordModel, $relatedData, $fieldValue) |
| 91 | 91 | { |
@@ -82,7 +82,7 @@ discard block |
||
| 82 | 82 | /** |
| 83 | 83 | * Retrieve a task from the database. |
| 84 | 84 | * |
| 85 | - * @param $taskId The id of the task to retrieve |
|
| 85 | + * @param integer $taskId The id of the task to retrieve |
|
| 86 | 86 | * |
| 87 | 87 | * @return VTTask The retrieved task |
| 88 | 88 | */ |
@@ -143,7 +143,7 @@ discard block |
||
| 143 | 143 | /** |
| 144 | 144 | * Return all tasks. |
| 145 | 145 | * |
| 146 | - * @return array |
|
| 146 | + * @return VTTask[] |
|
| 147 | 147 | */ |
| 148 | 148 | public function getTasks() |
| 149 | 149 | { |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | * Queue a task for execution. |
| 18 | 18 | * |
| 19 | 19 | * @param $taskId The id of the task to queue |
| 20 | - * @param $entityId The id of the crm entity the task is assiciated with |
|
| 20 | + * @param integer $entityId The id of the crm entity the task is assiciated with |
|
| 21 | 21 | * @param $when The time after which the task should be executed. This is |
| 22 | 22 | * an optional value with a default value of 0 |
| 23 | 23 | */ |
@@ -154,7 +154,7 @@ discard block |
||
| 154 | 154 | * |
| 155 | 155 | * @param DateTime $referenceTime |
| 156 | 156 | * |
| 157 | - * @return Workflow |
|
| 157 | + * @return Workflow[] |
|
| 158 | 158 | */ |
| 159 | 159 | public function getScheduledWorkflows($referenceTime = false) |
| 160 | 160 | { |
@@ -244,7 +244,7 @@ discard block |
||
| 244 | 244 | * |
| 245 | 245 | * @param string $type |
| 246 | 246 | * |
| 247 | - * @return \workflowClass |
|
| 247 | + * @return Workflow |
|
| 248 | 248 | */ |
| 249 | 249 | protected function getWorkflowInstance($type = 'basic') |
| 250 | 250 | { |
@@ -261,7 +261,7 @@ discard block |
||
| 261 | 261 | * |
| 262 | 262 | * @param The id of the workflow |
| 263 | 263 | * |
| 264 | - * @return A workflow object |
|
| 264 | + * @return Workflow|null workflow object |
|
| 265 | 265 | */ |
| 266 | 266 | public function retrieve($id) |
| 267 | 267 | { |
@@ -207,7 +207,7 @@ |
||
| 207 | 207 | /** |
| 208 | 208 | * Special Date functions. |
| 209 | 209 | * |
| 210 | - * @return array |
|
| 210 | + * @return string[] |
|
| 211 | 211 | */ |
| 212 | 212 | public function specialDateTimeOperator() |
| 213 | 213 | { |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | * |
| 64 | 64 | * @param string $moduleName |
| 65 | 65 | * |
| 66 | - * @return Vtiger_Record_Model or Module Specific Record Model instance |
|
| 66 | + * @return CustomView_Record_Model or Module Specific Record Model instance |
|
| 67 | 67 | */ |
| 68 | 68 | public function setModule($moduleName) |
| 69 | 69 | { |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | * |
| 78 | 78 | * @param Vtiger_Module_Model $module |
| 79 | 79 | * |
| 80 | - * @return Vtiger_Record_Model or Module Specific Record Model instance |
|
| 80 | + * @return CustomView_Record_Model or Module Specific Record Model instance |
|
| 81 | 81 | */ |
| 82 | 82 | public function setModuleFromInstance($module) |
| 83 | 83 | { |
@@ -630,7 +630,7 @@ |
||
| 630 | 630 | ->innerJoin('vtiger_customview', 'vtiger_cvcolumnlist.cvid = vtiger_customview.cvid') |
| 631 | 631 | ->where(['vtiger_customview.cvid' => $cvId])->orderBy('vtiger_cvcolumnlist.columnindex') |
| 632 | 632 | ->createCommand()->queryAllByGroup(1); |
| 633 | - return array_map(function ($item) { |
|
| 633 | + return array_map(function($item) { |
|
| 634 | 634 | return "{$item['module_name']}:{$item['field_name']}" . ($item['source_field_name'] ? ":{$item['source_field_name']}" : ''); |
| 635 | 635 | }, $selectedFields); |
| 636 | 636 | } |
@@ -168,7 +168,7 @@ |
||
| 168 | 168 | /** |
| 169 | 169 | * The function decide about mandatory save record. |
| 170 | 170 | * |
| 171 | - * @return type |
|
| 171 | + * @return boolean |
|
| 172 | 172 | */ |
| 173 | 173 | public function isMandatorySave() |
| 174 | 174 | { |