@@ -37,6 +37,12 @@ |
||
| 37 | 37 | } |
| 38 | 38 | } |
| 39 | 39 | |
| 40 | + /** |
|
| 41 | + * @param boolean $moduleName |
|
| 42 | + * @param boolean $data |
|
| 43 | + * @param boolean $storageId |
|
| 44 | + * @param boolean $action |
|
| 45 | + */ |
|
| 40 | 46 | public static function setQtyInStock($moduleName, $data, $storageId, $action) |
| 41 | 47 | { |
| 42 | 48 | $db = App\Db::getInstance(); |
@@ -11,6 +11,9 @@ |
||
| 11 | 11 | class VTExpressionSpaceFilter |
| 12 | 12 | { |
| 13 | 13 | |
| 14 | + /** |
|
| 15 | + * @param VTExpressionTokenizer $tokens |
|
| 16 | + */ |
|
| 14 | 17 | public function __construct($tokens) |
| 15 | 18 | { |
| 16 | 19 | $this->tokens = $tokens; |
@@ -183,6 +183,13 @@ |
||
| 183 | 183 | return false; |
| 184 | 184 | } |
| 185 | 185 | |
| 186 | + /** |
|
| 187 | + * @param string $sourceModule |
|
| 188 | + * @param integer $sourceId |
|
| 189 | + * @param string $targetModule |
|
| 190 | + * @param integer $targetId |
|
| 191 | + * @param integer $type |
|
| 192 | + */ |
|
| 186 | 193 | public static function trackRelation($sourceModule, $sourceId, $targetModule, $targetId, $type) |
| 187 | 194 | { |
| 188 | 195 | $db = App\Db::getInstance(); |
@@ -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 = [ |
@@ -42,6 +42,9 @@ discard block |
||
| 42 | 42 | return $this; |
| 43 | 43 | } |
| 44 | 44 | |
| 45 | + /** |
|
| 46 | + * @param string $content |
|
| 47 | + */ |
|
| 45 | 48 | public function contentParse($content) |
| 46 | 49 | { |
| 47 | 50 | $type = isset($_SERVER['CONTENT_TYPE']) ? $this->getServer('CONTENT_TYPE') : $this->getHeader('Content-Type'); |
@@ -61,6 +64,9 @@ discard block |
||
| 61 | 64 | } |
| 62 | 65 | } |
| 63 | 66 | |
| 67 | + /** |
|
| 68 | + * @param string $data |
|
| 69 | + */ |
|
| 64 | 70 | public function decryptData($data) |
| 65 | 71 | { |
| 66 | 72 | $privateKey = 'file://' . ROOT_DIRECTORY . DIRECTORY_SEPARATOR . \AppConfig::api('PRIVATE_KEY'); |
@@ -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); |
@@ -809,6 +809,9 @@ discard block |
||
| 809 | 809 | \App\Cache::clear(); |
| 810 | 810 | } |
| 811 | 811 | |
| 812 | + /** |
|
| 813 | + * @param integer $relationId |
|
| 814 | + */ |
|
| 812 | 815 | public static function updateModuleRelatedFields($relationId, $fields) |
| 813 | 816 | { |
| 814 | 817 | $db = \App\Db::getInstance(); |
@@ -826,6 +829,9 @@ discard block |
||
| 826 | 829 | \App\Cache::clear(); |
| 827 | 830 | } |
| 828 | 831 | |
| 832 | + /** |
|
| 833 | + * @param integer $relationId |
|
| 834 | + */ |
|
| 829 | 835 | public static function updateModuleRelatedInventoryFields($relationId, $fields) |
| 830 | 836 | { |
| 831 | 837 | $db = \App\Db::getInstance('admin'); |
@@ -872,6 +878,9 @@ discard block |
||
| 872 | 878 | return $fields; |
| 873 | 879 | } |
| 874 | 880 | |
| 881 | + /** |
|
| 882 | + * @param string|boolean $refModuleName |
|
| 883 | + */ |
|
| 875 | 884 | public static function getReferenceTableInfo($moduleName, $refModuleName) |
| 876 | 885 | { |
| 877 | 886 | $temp = [$moduleName, $refModuleName]; |
@@ -914,6 +923,9 @@ discard block |
||
| 914 | 923 | return $result; |
| 915 | 924 | } |
| 916 | 925 | |
| 926 | + /** |
|
| 927 | + * @param integer $relationId |
|
| 928 | + */ |
|
| 917 | 929 | public static function updateStateFavorites($relationId, $status) |
| 918 | 930 | { |
| 919 | 931 | \App\Db::getInstance()->createCommand()->update('vtiger_relatedlists', ['favorites' => $status], ['relation_id' => $relationId])->execute(); |
@@ -25,6 +25,9 @@ |
||
| 25 | 25 | } |
| 26 | 26 | } |
| 27 | 27 | |
| 28 | + /** |
|
| 29 | + * @param string $day |
|
| 30 | + */ |
|
| 28 | 31 | public function getFreeTimeInDay($day) |
| 29 | 32 | { |
| 30 | 33 | $currentUser = Users_Record_Model::getCurrentUserModel(); |