@@ -217,7 +217,7 @@ |
||
| 217 | 217 | * |
| 218 | 218 | * @param \App\Request $request |
| 219 | 219 | * |
| 220 | - * @return bool true if valid template exists for this record |
|
| 220 | + * @return boolean|null true if valid template exists for this record |
|
| 221 | 221 | */ |
| 222 | 222 | public function hasValidTemplate(\App\Request $request) |
| 223 | 223 | { |
@@ -324,7 +324,7 @@ |
||
| 324 | 324 | * @param \App\Request $request |
| 325 | 325 | * @param int $i |
| 326 | 326 | * |
| 327 | - * @return bool |
|
| 327 | + * @return false|null |
|
| 328 | 328 | */ |
| 329 | 329 | public function getValueFromRequest(&$insertData, \App\Request $request, $i) |
| 330 | 330 | { |
@@ -41,6 +41,7 @@ |
||
| 41 | 41 | |
| 42 | 42 | /** |
| 43 | 43 | * {@inheritdoc} |
| 44 | + * @param string $columnName |
|
| 44 | 45 | */ |
| 45 | 46 | public function validate($value, $columnName, $isUserFormat = false) |
| 46 | 47 | { |
@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | * |
| 27 | 27 | * @param Vtiger_Module_Model $moduleInstance - module model |
| 28 | 28 | * |
| 29 | - * @return Vtiger_DetailView_Model |
|
| 29 | + * @return Vtiger_DashBoard_Model |
|
| 30 | 30 | */ |
| 31 | 31 | public function setModule($moduleInstance) |
| 32 | 32 | { |
@@ -142,6 +142,9 @@ discard block |
||
| 142 | 142 | return $widgets; |
| 143 | 143 | } |
| 144 | 144 | |
| 145 | + /** |
|
| 146 | + * @param string $moduleName |
|
| 147 | + */ |
|
| 145 | 148 | public function verifyDashboard($moduleName) |
| 146 | 149 | { |
| 147 | 150 | \App\Log::trace('Entering ' . __METHOD__ . '(' . $moduleName . ')'); |
@@ -208,6 +211,7 @@ discard block |
||
| 208 | 211 | * Function to get modules with widgets. |
| 209 | 212 | * |
| 210 | 213 | * @param string $moduleName - module name |
| 214 | + * @param integer $dashboard |
|
| 211 | 215 | * |
| 212 | 216 | * @return <Array> $modules |
| 213 | 217 | */ |
@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | /** |
| 20 | 20 | * Function to get Module instance. |
| 21 | 21 | * |
| 22 | - * @return Vtiger_Module_Model |
|
| 22 | + * @return boolean |
|
| 23 | 23 | */ |
| 24 | 24 | public function getModule() |
| 25 | 25 | { |
@@ -43,7 +43,7 @@ discard block |
||
| 43 | 43 | /** |
| 44 | 44 | * Function to get the Record model. |
| 45 | 45 | * |
| 46 | - * @return Vtiger_Record_Model |
|
| 46 | + * @return boolean |
|
| 47 | 47 | */ |
| 48 | 48 | public function getRecord() |
| 49 | 49 | { |
@@ -93,7 +93,7 @@ discard block |
||
| 93 | 93 | /** |
| 94 | 94 | * Get field label. |
| 95 | 95 | * |
| 96 | - * @return string |
|
| 96 | + * @return boolean |
|
| 97 | 97 | */ |
| 98 | 98 | public function getFieldLabel() |
| 99 | 99 | { |
@@ -103,7 +103,7 @@ discard block |
||
| 103 | 103 | /** |
| 104 | 104 | * Get table name. |
| 105 | 105 | * |
| 106 | - * @return string |
|
| 106 | + * @return boolean |
|
| 107 | 107 | */ |
| 108 | 108 | public function getTableName() |
| 109 | 109 | { |
@@ -113,7 +113,7 @@ discard block |
||
| 113 | 113 | /** |
| 114 | 114 | * Get column label. |
| 115 | 115 | * |
| 116 | - * @return string |
|
| 116 | + * @return boolean |
|
| 117 | 117 | */ |
| 118 | 118 | public function getColumnName() |
| 119 | 119 | { |
@@ -159,6 +159,9 @@ discard block |
||
| 159 | 159 | return $this->module; |
| 160 | 160 | } |
| 161 | 161 | |
| 162 | + /** |
|
| 163 | + * @param Vtiger_Module_Model $moduleInstance |
|
| 164 | + */ |
|
| 162 | 165 | public function setModule($moduleInstance) |
| 163 | 166 | { |
| 164 | 167 | $this->module = $moduleInstance; |
@@ -169,11 +172,10 @@ discard block |
||
| 169 | 172 | * |
| 170 | 173 | * @param mixed $value value which need to be converted to display value |
| 171 | 174 | * @param bool|int $record |
| 172 | - * @param bool|Vtiger_Record_Model $recordInstance |
|
| 173 | 175 | * @param bool $rawText |
| 174 | - * @param int|bool $length Length of the text |
|
| 176 | + * @param boolean $length Length of the text |
|
| 175 | 177 | * |
| 176 | - * @return mixed converted display value |
|
| 178 | + * @return string converted display value |
|
| 177 | 179 | */ |
| 178 | 180 | public function getDisplayValue($value, $record = false, $recordModel = false, $rawText = false, $length = false) |
| 179 | 181 | { |
@@ -907,7 +909,6 @@ discard block |
||
| 907 | 909 | /** |
| 908 | 910 | * Function to retrieve field model for specific block and module. |
| 909 | 911 | * |
| 910 | - * @param Vtiger_Module_Model $blockModel - block instance |
|
| 911 | 912 | * |
| 912 | 913 | * @return <array> List of field model |
| 913 | 914 | */ |
@@ -1070,7 +1071,7 @@ discard block |
||
| 1070 | 1071 | * @param mixed $value |
| 1071 | 1072 | * @param Vtiger_Record_Model $recordModel |
| 1072 | 1073 | * |
| 1073 | - * @return mixed |
|
| 1074 | + * @return string |
|
| 1074 | 1075 | */ |
| 1075 | 1076 | public function getEditViewDisplayValue($value, $recordModel = false) |
| 1076 | 1077 | { |
@@ -125,9 +125,8 @@ |
||
| 125 | 125 | /** |
| 126 | 126 | * Get discount from the account. |
| 127 | 127 | * |
| 128 | - * @param string $moduleName Module name |
|
| 129 | - * @param int $record Record ID |
|
| 130 | 128 | * |
| 129 | + * @param integer $relatedRecord |
|
| 131 | 130 | * @return array |
| 132 | 131 | */ |
| 133 | 132 | public function getAccountDiscount($relatedRecord) |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | * Function to set the value of a given property. |
| 38 | 38 | * |
| 39 | 39 | * @param string $propertyName |
| 40 | - * @param <Object> $propertyValue |
|
| 40 | + * @param boolean $propertyValue |
|
| 41 | 41 | * |
| 42 | 42 | * @return Vtiger_Link_Model instance |
| 43 | 43 | */ |
@@ -200,7 +200,7 @@ discard block |
||
| 200 | 200 | /** |
| 201 | 201 | * Function to check whether the link model has any child links. |
| 202 | 202 | * |
| 203 | - * @return bool true/false |
|
| 203 | + * @return boolean|null true/false |
|
| 204 | 204 | */ |
| 205 | 205 | public function hasChild() |
| 206 | 206 | { |
@@ -25,6 +25,9 @@ discard block |
||
| 25 | 25 | return $this->get('id'); |
| 26 | 26 | } |
| 27 | 27 | |
| 28 | + /** |
|
| 29 | + * @param string $key |
|
| 30 | + */ |
|
| 28 | 31 | public function get($key) |
| 29 | 32 | { |
| 30 | 33 | if (in_array($key, ['conditions', 'params']) && !is_array(parent::get($key))) { |
@@ -34,6 +37,9 @@ discard block |
||
| 34 | 37 | } |
| 35 | 38 | } |
| 36 | 39 | |
| 40 | + /** |
|
| 41 | + * @param string $key |
|
| 42 | + */ |
|
| 37 | 43 | public function getRaw($key) |
| 38 | 44 | { |
| 39 | 45 | return parent::get($key); |
@@ -69,6 +75,10 @@ discard block |
||
| 69 | 75 | } |
| 70 | 76 | } |
| 71 | 77 | |
| 78 | + /** |
|
| 79 | + * @param integer $recordId |
|
| 80 | + * @param string $view |
|
| 81 | + */ |
|
| 72 | 82 | public function getActiveTemplatesForRecord($recordId, $view, $moduleName = false) |
| 73 | 83 | { |
| 74 | 84 | \App\Log::trace('Entering ' . __METHOD__ . '(' . $recordId . ',' . $view . ',' . $moduleName . ') method ...'); |