@@ -227,6 +227,9 @@ |
||
| 227 | 227 | \App\Db::getInstance()->createCommand()->update('vtiger_ossmailview', ['ossmailview_sendtype' => $mailType[$mail_type], 'type' => $mail_type], ['ossmailviewid' => $selectedIds])->execute(); |
| 228 | 228 | } |
| 229 | 229 | |
| 230 | + /** |
|
| 231 | + * @param string $action |
|
| 232 | + */ |
|
| 230 | 233 | public function addLog($action, $info) |
| 231 | 234 | { |
| 232 | 235 | $user_id = Users_Record_Model::getCurrentUserModel()->get('user_name'); |
@@ -25,6 +25,9 @@ |
||
| 25 | 25 | return \App\Request::_getServer('REQUEST_URI'); |
| 26 | 26 | } |
| 27 | 27 | |
| 28 | + /** |
|
| 29 | + * @return string |
|
| 30 | + */ |
|
| 28 | 31 | public function returnUrl() |
| 29 | 32 | { |
| 30 | 33 | return $this->returnUrl; |
@@ -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(); |
@@ -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 = [ |
@@ -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) { |