@@ -40,7 +40,7 @@ discard block |
||
| 40 | 40 | /** |
| 41 | 41 | * Function to get module instance of this record. |
| 42 | 42 | * |
| 43 | - * @return <type> |
|
| 43 | + * @return string |
|
| 44 | 44 | */ |
| 45 | 45 | public function getModule() |
| 46 | 46 | { |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | /** |
| 51 | 51 | * Function to set module to this record instance. |
| 52 | 52 | * |
| 53 | - * @param <Settings_CronTasks_Module_Model> $moduleModel |
|
| 53 | + * @param Settings_CronTasks_Module_Model $moduleModel |
|
| 54 | 54 | * |
| 55 | 55 | * @return <Settings_CronTasks_Record_Model> record model |
| 56 | 56 | */ |
@@ -207,7 +207,7 @@ discard block |
||
| 207 | 207 | /** |
| 208 | 208 | * Function to get record instance by using id and moduleName. |
| 209 | 209 | * |
| 210 | - * @param <Integer> $recordId |
|
| 210 | + * @param integer $recordId |
|
| 211 | 211 | * @param string $qualifiedModuleName |
| 212 | 212 | * |
| 213 | 213 | * @return <Settings_CronTasks_Record_Model> RecordModel |
@@ -233,6 +233,9 @@ discard block |
||
| 233 | 233 | return false; |
| 234 | 234 | } |
| 235 | 235 | |
| 236 | + /** |
|
| 237 | + * @param string $name |
|
| 238 | + */ |
|
| 236 | 239 | public static function getInstanceByName($name) |
| 237 | 240 | { |
| 238 | 241 | $query = (new \App\Db\Query()) |
@@ -67,7 +67,7 @@ discard block |
||
| 67 | 67 | /** |
| 68 | 68 | * Create vtiger CRM block. |
| 69 | 69 | * |
| 70 | - * @param \Module $moduleInstance |
|
| 70 | + * @param boolean $moduleInstance |
|
| 71 | 71 | */ |
| 72 | 72 | public function __create($moduleInstance) |
| 73 | 73 | { |
@@ -149,7 +149,7 @@ discard block |
||
| 149 | 149 | * |
| 150 | 150 | * @param FieldBasic $fieldInstance |
| 151 | 151 | * |
| 152 | - * @return Reference to this block instance |
|
| 152 | + * @return Block to this block instance |
|
| 153 | 153 | */ |
| 154 | 154 | public function addField(FieldBasic $fieldInstance) |
| 155 | 155 | { |
@@ -196,7 +196,7 @@ discard block |
||
| 196 | 196 | * |
| 197 | 197 | * @param ModuleBasic $moduleInstance |
| 198 | 198 | * |
| 199 | - * @return self |
|
| 199 | + * @return boolean |
|
| 200 | 200 | */ |
| 201 | 201 | public static function getAllForModule(ModuleBasic $moduleInstance) |
| 202 | 202 | { |
@@ -38,7 +38,8 @@ discard block |
||
| 38 | 38 | /** |
| 39 | 39 | * set the value to the data. |
| 40 | 40 | * |
| 41 | - * @param type $value,$key |
|
| 41 | + * @param string $key |
|
| 42 | + * @param integer $value |
|
| 42 | 43 | */ |
| 43 | 44 | public function set($key, $value) |
| 44 | 45 | { |
@@ -195,6 +196,7 @@ discard block |
||
| 195 | 196 | |
| 196 | 197 | /** |
| 197 | 198 | * Helper function to check the status value. |
| 199 | + * @param integer $value |
|
| 198 | 200 | */ |
| 199 | 201 | public function statusEqual($value) |
| 200 | 202 | { |
@@ -271,7 +273,7 @@ discard block |
||
| 271 | 273 | /** |
| 272 | 274 | * Mark this instance as finished. |
| 273 | 275 | * |
| 274 | - * @return int |
|
| 276 | + * @return Cron |
|
| 275 | 277 | */ |
| 276 | 278 | public function markFinished() |
| 277 | 279 | { |
@@ -250,7 +250,7 @@ discard block |
||
| 250 | 250 | * |
| 251 | 251 | * @param ModuleBasic $moduleInstance |
| 252 | 252 | * |
| 253 | - * @return self |
|
| 253 | + * @return boolean |
|
| 254 | 254 | */ |
| 255 | 255 | public static function getAllForModule(ModuleBasic $moduleInstance) |
| 256 | 256 | { |
@@ -309,6 +309,7 @@ discard block |
||
| 309 | 309 | * Function to remove uitype10 fields. |
| 310 | 310 | * |
| 311 | 311 | * @param Module Instance of module |
| 312 | + * @param ModuleBasic $moduleInstance |
|
| 312 | 313 | */ |
| 313 | 314 | public static function deleteUiType10Fields($moduleInstance) |
| 314 | 315 | { |
@@ -329,6 +330,7 @@ discard block |
||
| 329 | 330 | * Function to remove picklist-type or multiple choice picklist-type table. |
| 330 | 331 | * |
| 331 | 332 | * @param Module Instance of module |
| 333 | + * @param ModuleBasic $moduleInstance |
|
| 332 | 334 | */ |
| 333 | 335 | public static function deletePickLists($moduleInstance) |
| 334 | 336 | { |
@@ -125,6 +125,7 @@ |
||
| 125 | 125 | * Create this field instance. |
| 126 | 126 | * |
| 127 | 127 | * @param vtlib\Block Instance of the block to use |
| 128 | + * @param boolean $blockInstance |
|
| 128 | 129 | */ |
| 129 | 130 | public function __create($blockInstance) |
| 130 | 131 | { |
@@ -46,6 +46,7 @@ discard block |
||
| 46 | 46 | * Create this instance. |
| 47 | 47 | * |
| 48 | 48 | * @param Module Instance of the module to which this filter should be associated with |
| 49 | + * @param boolean $moduleInstance |
|
| 49 | 50 | */ |
| 50 | 51 | public function __create($moduleInstance) |
| 51 | 52 | { |
@@ -285,7 +286,7 @@ discard block |
||
| 285 | 286 | * |
| 286 | 287 | * @param ModuleBasic $moduleInstance |
| 287 | 288 | * |
| 288 | - * @return self |
|
| 289 | + * @return boolean |
|
| 289 | 290 | */ |
| 290 | 291 | public static function getAllForModule(ModuleBasic $moduleInstance) |
| 291 | 292 | { |
@@ -229,7 +229,6 @@ discard block |
||
| 229 | 229 | /** |
| 230 | 230 | * Function get module field infos. |
| 231 | 231 | * |
| 232 | - * @param int|string $mixed |
|
| 233 | 232 | * @param bool $returnByColumn |
| 234 | 233 | * |
| 235 | 234 | * @return mixed[] |
@@ -283,6 +282,10 @@ discard block |
||
| 283 | 282 | } |
| 284 | 283 | |
| 285 | 284 | // Utility |
| 285 | + |
|
| 286 | + /** |
|
| 287 | + * @return string |
|
| 288 | + */ |
|
| 286 | 289 | public static function formatDecimal($value) |
| 287 | 290 | { |
| 288 | 291 | $fld_value = explode('.', $value); |
@@ -733,6 +736,9 @@ discard block |
||
| 733 | 736 | * @return <Date> - last working y |
| 734 | 737 | */ |
| 735 | 738 | |
| 739 | + /** |
|
| 740 | + * @param string $date |
|
| 741 | + */ |
|
| 736 | 742 | public static function getLastWorkingDay($date) |
| 737 | 743 | { |
| 738 | 744 | if (empty($date)) { |
@@ -148,6 +148,7 @@ discard block |
||
| 148 | 148 | * Get all the links related to module. |
| 149 | 149 | * |
| 150 | 150 | * @param int Module ID |
| 151 | + * @param boolean $tabid |
|
| 151 | 152 | */ |
| 152 | 153 | public static function getAll($tabid) |
| 153 | 154 | { |
@@ -280,6 +281,7 @@ discard block |
||
| 280 | 281 | |
| 281 | 282 | /** |
| 282 | 283 | * Extract the links of module for export. |
| 284 | + * @param boolean $tabid |
|
| 283 | 285 | */ |
| 284 | 286 | public static function getAllForExport($tabid) |
| 285 | 287 | { |
@@ -299,7 +301,7 @@ discard block |
||
| 299 | 301 | /** |
| 300 | 302 | * Checks whether the user is admin or not. |
| 301 | 303 | * |
| 302 | - * @param vtlib\LinkData $linkData |
|
| 304 | + * @param LinkData $linkData |
|
| 303 | 305 | * |
| 304 | 306 | * @return bool |
| 305 | 307 | */ |
@@ -183,7 +183,7 @@ |
||
| 183 | 183 | if ($tabid === self::IGNORE_MODULE) { |
| 184 | 184 | $permittedTabIdList = \vtlib\Deprecated::getPermittedModuleIdList(); |
| 185 | 185 | if (!empty($permittedTabIdList)) { |
| 186 | - $permittedTabIdList[] = 0; // Added to support one link for all modules |
|
| 186 | + $permittedTabIdList[] = 0; // Added to support one link for all modules |
|
| 187 | 187 | foreach ($permittedTabIdList as $moduleId) { |
| 188 | 188 | foreach ($type as $typ) { |
| 189 | 189 | if (isset($rows[$moduleId][$typ])) { |
@@ -134,6 +134,9 @@ discard block |
||
| 134 | 134 | * |
| 135 | 135 | * NOTE: $url can have variables like $MODULE (module for which link is associated), |
| 136 | 136 | * $RECORD (record on which link is dispalyed) |
| 137 | + * @param string $type |
|
| 138 | + * @param string $label |
|
| 139 | + * @param string $url |
|
| 137 | 140 | */ |
| 138 | 141 | public function addLink($type, $label, $url, $iconpath = '', $sequence = 0, $handlerInfo = null) |
| 139 | 142 | { |
@@ -231,6 +234,7 @@ discard block |
||
| 231 | 234 | * Get instance of the module class. |
| 232 | 235 | * |
| 233 | 236 | * @param string Module name |
| 237 | + * @param string $modulename |
|
| 234 | 238 | */ |
| 235 | 239 | public static function getClassInstance($modulename) |
| 236 | 240 | { |
@@ -274,6 +278,7 @@ discard block |
||
| 274 | 278 | |
| 275 | 279 | /** |
| 276 | 280 | * Toggle the module (enable/disable). |
| 281 | + * @param boolean $enableDisable |
|
| 277 | 282 | */ |
| 278 | 283 | public static function toggleModuleAccess($moduleName, $enableDisable) |
| 279 | 284 | { |