@@ -32,6 +32,9 @@ |
||
| 32 | 32 | return self::TABLE_NAME; |
| 33 | 33 | } |
| 34 | 34 | |
| 35 | + /** |
|
| 36 | + * @param integer $recordId |
|
| 37 | + */ |
|
| 35 | 38 | public static function delete($recordId) |
| 36 | 39 | { |
| 37 | 40 | \App\Db::getInstance()->createCommand()->update(self::TABLE_NAME, ['deleted' => 1], ['id' => $recordId])->execute(); |
@@ -15,6 +15,9 @@ |
||
| 15 | 15 | return $instance; |
| 16 | 16 | } |
| 17 | 17 | |
| 18 | + /** |
|
| 19 | + * @param string $type |
|
| 20 | + */ |
|
| 18 | 21 | public static function getConfig($type) |
| 19 | 22 | { |
| 20 | 23 | $cache = Vtiger_Cache::get('MarketingProcesses', $type); |
@@ -150,6 +150,9 @@ |
||
| 150 | 150 | ]; |
| 151 | 151 | } |
| 152 | 152 | |
| 153 | + /** |
|
| 154 | + * @param integer $tempStatus |
|
| 155 | + */ |
|
| 153 | 156 | public static function updateStatus($importId, $tempStatus) |
| 154 | 157 | { |
| 155 | 158 | App\Db::getInstance()->createCommand()->update('vtiger_import_queue', ['temp_status' => $tempStatus], ['importid' => $importId])->execute(); |
@@ -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) { |