@@ -19,7 +19,7 @@ |
||
19 | 19 | /** |
20 | 20 | * Function to get editable fields from this module. |
21 | 21 | * |
22 | - * @return array List of fieldNames |
|
22 | + * @return string[] List of fieldNames |
|
23 | 23 | */ |
24 | 24 | public function getEditableFieldsList() |
25 | 25 | { |
@@ -23,6 +23,9 @@ discard block |
||
23 | 23 | * @return string - currency name |
24 | 24 | */ |
25 | 25 | |
26 | + /** |
|
27 | + * @param string $code |
|
28 | + */ |
|
26 | 29 | public static function getCRMCurrencyName($code) |
27 | 30 | { |
28 | 31 | return (new \App\Db\Query()) |
@@ -49,6 +52,9 @@ discard block |
||
49 | 52 | * @return boolean - true if fetched new exchange rates, false otherwise |
50 | 53 | */ |
51 | 54 | |
55 | + /** |
|
56 | + * @param string $dateCur |
|
57 | + */ |
|
52 | 58 | public function fetchCurrencyRates($dateCur, $cron = false) |
53 | 59 | { |
54 | 60 | $notifyNewRates = false; |
@@ -123,6 +129,9 @@ discard block |
||
123 | 129 | * @param <Float> $exchange - exchange rate |
124 | 130 | */ |
125 | 131 | |
132 | + /** |
|
133 | + * @param string|false $id |
|
134 | + */ |
|
126 | 135 | public function updateCurrencyRate($id, $exchange) |
127 | 136 | { |
128 | 137 | \App\Db::getInstance()->createCommand() |
@@ -172,6 +181,9 @@ discard block |
||
172 | 181 | * @return <Array> - array containing currency rates |
173 | 182 | */ |
174 | 183 | |
184 | + /** |
|
185 | + * @param string $dateCur |
|
186 | + */ |
|
175 | 187 | public function getRatesHistory($bankId, $dateCur, \App\Request $request) |
176 | 188 | { |
177 | 189 | $query = new App\Db\Query(); |
@@ -368,6 +380,9 @@ discard block |
||
368 | 380 | * @return boolean - true on success or false |
369 | 381 | */ |
370 | 382 | |
383 | + /** |
|
384 | + * @param integer $bankId |
|
385 | + */ |
|
371 | 386 | public function setActiveBankById($bankId) |
372 | 387 | { |
373 | 388 | $db = \App\Db::getInstance(); |
@@ -126,7 +126,7 @@ |
||
126 | 126 | /** |
127 | 127 | * Function to get object. |
128 | 128 | * |
129 | - * @return \self |
|
129 | + * @return Settings_Github_Client_Model |
|
130 | 130 | */ |
131 | 131 | public static function getInstance() |
132 | 132 | { |
@@ -78,11 +78,17 @@ discard block |
||
78 | 78 | return explode(':', $id); |
79 | 79 | } |
80 | 80 | |
81 | + /** |
|
82 | + * @param string $type |
|
83 | + */ |
|
81 | 84 | public static function getQualifiedId($type, $id) |
82 | 85 | { |
83 | 86 | return $type . ':' . $id; |
84 | 87 | } |
85 | 88 | |
89 | + /** |
|
90 | + * @param string $type |
|
91 | + */ |
|
86 | 92 | public static function getAllByTypeForGroup($groupModel, $type) |
87 | 93 | { |
88 | 94 | $query = new App\Db\Query(); |
@@ -179,6 +185,7 @@ discard block |
||
179 | 185 | /** |
180 | 186 | * Function to get all the groups. |
181 | 187 | * |
188 | + * @param Settings_Groups_Record_Model $groupModel |
|
182 | 189 | * @return <Array> - Array of Settings_Groups_Record_Model instances |
183 | 190 | */ |
184 | 191 | public static function getAllByGroup($groupModel) |
@@ -314,7 +314,7 @@ |
||
314 | 314 | /** |
315 | 315 | * TransferOwnership. |
316 | 316 | * |
317 | - * @param Settings_Groups_Record_Model|Users_Record_Model $transferToGroup |
|
317 | + * @param Settings_Groups_Record_Model $transferToGroup |
|
318 | 318 | */ |
319 | 319 | protected function transferOwnership($transferToGroup) |
320 | 320 | { |
@@ -177,6 +177,9 @@ discard block |
||
177 | 177 | return false; |
178 | 178 | } |
179 | 179 | |
180 | + /** |
|
181 | + * @param string $qualifiedModuleName |
|
182 | + */ |
|
180 | 183 | public static function getCleanInstance($qualifiedModuleName) |
181 | 184 | { |
182 | 185 | $recordModelClass = Vtiger_Loader::getComponentClassName('Model', 'Record', $qualifiedModuleName); |
@@ -221,6 +224,9 @@ discard block |
||
221 | 224 | return $fieldValue; |
222 | 225 | } |
223 | 226 | |
227 | + /** |
|
228 | + * @param integer $blockId |
|
229 | + */ |
|
224 | 230 | public static function getModuleInstanceByBlockId($blockId) |
225 | 231 | { |
226 | 232 | $tabid = (new \App\Db\Query())->select('tabid') |
@@ -28,6 +28,9 @@ |
||
28 | 28 | return static::$tablename[$type]; |
29 | 29 | } |
30 | 30 | |
31 | + /** |
|
32 | + * @param string $type |
|
33 | + */ |
|
31 | 34 | public static function getConfig($type, $name = false) |
32 | 35 | { |
33 | 36 | \App\Log::trace('Start ' . __METHOD__ . ' | Type: ' . print_r($type, true) . ' | Name: ' . print_r($name, true)); |
@@ -237,7 +237,7 @@ |
||
237 | 237 | /** |
238 | 238 | * Function to get mapping supported modules list. |
239 | 239 | * |
240 | - * @return array |
|
240 | + * @return string[] |
|
241 | 241 | */ |
242 | 242 | public static function getSupportedModulesList() |
243 | 243 | { |
@@ -10,7 +10,7 @@ |
||
10 | 10 | /** |
11 | 11 | * Funtion to get the Login history basic query. |
12 | 12 | * |
13 | - * @return type |
|
13 | + * @return App\Db\Query |
|
14 | 14 | */ |
15 | 15 | public function getBasicListQuery() |
16 | 16 | { |