@@ -11,6 +11,9 @@ |
||
| 11 | 11 | class VTExpressionTokenizer |
| 12 | 12 | { |
| 13 | 13 | |
| 14 | + /** |
|
| 15 | + * @param string $expr |
|
| 16 | + */ |
|
| 14 | 17 | public function __construct($expr) |
| 15 | 18 | { |
| 16 | 19 | $tokenTypes = [ |
@@ -32,6 +32,9 @@ discard block |
||
| 32 | 32 | } |
| 33 | 33 | } |
| 34 | 34 | |
| 35 | + /** |
|
| 36 | + * @param string $ns |
|
| 37 | + */ |
|
| 35 | 38 | public static function get($ns, $key) |
| 36 | 39 | { |
| 37 | 40 | $self = self::getInstance(); |
@@ -41,6 +44,9 @@ discard block |
||
| 41 | 44 | return false; |
| 42 | 45 | } |
| 43 | 46 | |
| 47 | + /** |
|
| 48 | + * @param string $ns |
|
| 49 | + */ |
|
| 44 | 50 | public static function set($ns, $key, $value) |
| 45 | 51 | { |
| 46 | 52 | $self = self::getInstance(); |
@@ -57,6 +63,9 @@ discard block |
||
| 57 | 63 | |
| 58 | 64 | private static $_user_list; |
| 59 | 65 | |
| 66 | + /** |
|
| 67 | + * @param integer $currentUser |
|
| 68 | + */ |
|
| 60 | 69 | public function getUserList($module, $currentUser) |
| 61 | 70 | { |
| 62 | 71 | if (isset(self::$_user_list[$currentUser][$module])) { |
@@ -65,6 +74,9 @@ discard block |
||
| 65 | 74 | return false; |
| 66 | 75 | } |
| 67 | 76 | |
| 77 | + /** |
|
| 78 | + * @param integer $currentUser |
|
| 79 | + */ |
|
| 68 | 80 | public function setUserList($module, $userList, $currentUser) |
| 69 | 81 | { |
| 70 | 82 | if (self::$cacheEnable) { |
@@ -74,6 +86,9 @@ discard block |
||
| 74 | 86 | |
| 75 | 87 | private static $_group_list; |
| 76 | 88 | |
| 89 | + /** |
|
| 90 | + * @param integer $currentUser |
|
| 91 | + */ |
|
| 77 | 92 | public function getGroupList($module, $currentUser) |
| 78 | 93 | { |
| 79 | 94 | if (isset(self::$_group_list[$currentUser][$module])) { |
@@ -82,6 +97,9 @@ discard block |
||
| 82 | 97 | return false; |
| 83 | 98 | } |
| 84 | 99 | |
| 100 | + /** |
|
| 101 | + * @param integer $currentUser |
|
| 102 | + */ |
|
| 85 | 103 | public function setGroupList($module, $GroupList, $currentUser) |
| 86 | 104 | { |
| 87 | 105 | if (self::$cacheEnable) { |
@@ -250,6 +268,9 @@ discard block |
||
| 250 | 268 | return false; |
| 251 | 269 | } |
| 252 | 270 | |
| 271 | + /** |
|
| 272 | + * @param boolean $fields |
|
| 273 | + */ |
|
| 253 | 274 | public function setBlockFields($block, $module, $fields) |
| 254 | 275 | { |
| 255 | 276 | if (self::$cacheEnable) { |
@@ -22,12 +22,18 @@ |
||
| 22 | 22 | protected $user; |
| 23 | 23 | protected $module; |
| 24 | 24 | |
| 25 | + /** |
|
| 26 | + * @param Link $link |
|
| 27 | + */ |
|
| 25 | 28 | public function __construct($link) |
| 26 | 29 | { |
| 27 | 30 | $this->link = $link; |
| 28 | 31 | $this->module = \App\Request::_getModule(); |
| 29 | 32 | } |
| 30 | 33 | |
| 34 | + /** |
|
| 35 | + * @param string $name |
|
| 36 | + */ |
|
| 31 | 37 | public function getInputParameter($name) |
| 32 | 38 | { |
| 33 | 39 | return \App\Request::_get($name); |
@@ -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()) |
@@ -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 | { |
@@ -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])) { |
@@ -72,6 +72,7 @@ discard block |
||
| 72 | 72 | * @param string HREF value or URL to use for the link |
| 73 | 73 | * @param string ICON to use on the display |
| 74 | 74 | * @param int Order or sequence of displaying the link |
| 75 | + * @param boolean $tabid |
|
| 75 | 76 | */ |
| 76 | 77 | public static function addLink($tabid, $type, $label, $url, $iconpath = '', $sequence = 0, $handlerInfo = null, $linkParams = null) |
| 77 | 78 | { |
@@ -110,6 +111,7 @@ discard block |
||
| 110 | 111 | * @param string Link Type (like DETAIL_VIEW_BASIC). Useful for grouping based on pages |
| 111 | 112 | * @param string Display label |
| 112 | 113 | * @param string URL of link to lookup while deleting |
| 114 | + * @param boolean $tabid |
|
| 113 | 115 | */ |
| 114 | 116 | public static function deleteLink($tabid, $type, $label, $url = false) |
| 115 | 117 | { |
@@ -147,6 +149,7 @@ discard block |
||
| 147 | 149 | * Get all the links related to module. |
| 148 | 150 | * |
| 149 | 151 | * @param int Module ID |
| 152 | + * @param boolean $tabid |
|
| 150 | 153 | */ |
| 151 | 154 | public static function getAll($tabid) |
| 152 | 155 | { |
@@ -278,6 +281,7 @@ discard block |
||
| 278 | 281 | |
| 279 | 282 | /** |
| 280 | 283 | * Extract the links of module for export. |
| 284 | + * @param boolean $tabid |
|
| 281 | 285 | */ |
| 282 | 286 | public static function getAllForExport($tabid) |
| 283 | 287 | { |
@@ -112,6 +112,7 @@ |
||
| 112 | 112 | |
| 113 | 113 | /** |
| 114 | 114 | * Clean up the input to be used as a regex. |
| 115 | + * @param string $value |
|
| 115 | 116 | */ |
| 116 | 117 | public function __formatAsRegex($value) |
| 117 | 118 | { |
@@ -273,7 +273,7 @@ discard block |
||
| 273 | 273 | * @param int $month |
| 274 | 274 | * @param DateTime $dateObject |
| 275 | 275 | * |
| 276 | - * @return date range of present quarter |
|
| 276 | + * @return string[] range of present quarter |
|
| 277 | 277 | */ |
| 278 | 278 | public static function getPresentQuarterRange($month = 0, &$dateObject = null) |
| 279 | 279 | { |
@@ -308,7 +308,7 @@ discard block |
||
| 308 | 308 | * @param int $month |
| 309 | 309 | * @param DateTime $dateObject |
| 310 | 310 | * |
| 311 | - * @return date range of present quarter |
|
| 311 | + * @return string[] range of present quarter |
|
| 312 | 312 | */ |
| 313 | 313 | public static function getPreviousQuarterRange($month = 0, &$dateObject = null) |
| 314 | 314 | { |
@@ -344,7 +344,7 @@ discard block |
||
| 344 | 344 | * @param int $month |
| 345 | 345 | * @param DateTime $dateObject |
| 346 | 346 | * |
| 347 | - * @return date range of present quarter |
|
| 347 | + * @return string[] range of present quarter |
|
| 348 | 348 | */ |
| 349 | 349 | public static function getNextQuarterRange($month = 0, $dateObject = null) |
| 350 | 350 | { |
@@ -10,11 +10,17 @@ |
||
| 10 | 10 | |
| 11 | 11 | class Vtiger_Cache_Connector_Memory |
| 12 | 12 | { |
| 13 | + /** |
|
| 14 | + * @param string $key |
|
| 15 | + */ |
|
| 13 | 16 | public function set($key, $value) |
| 14 | 17 | { |
| 15 | 18 | $this->$key = $value; |
| 16 | 19 | } |
| 17 | 20 | |
| 21 | + /** |
|
| 22 | + * @param string $key |
|
| 23 | + */ |
|
| 18 | 24 | public function get($key) |
| 19 | 25 | { |
| 20 | 26 | return $this->$key ?? false; |