@@ -43,6 +43,9 @@ discard block |
||
43 | 43 | return $recordData; |
44 | 44 | } |
45 | 45 | |
46 | + /** |
|
47 | + * @return string |
|
48 | + */ |
|
46 | 49 | public function getFilePath() |
47 | 50 | { |
48 | 51 | if ($this->filePath) { |
@@ -122,6 +125,9 @@ discard block |
||
122 | 125 | return !empty($this->request->get('xml_import_tpl')); |
123 | 126 | } |
124 | 127 | |
128 | + /** |
|
129 | + * @param string[] $key |
|
130 | + */ |
|
125 | 131 | public function arrayCombine($key, $value) |
126 | 132 | { |
127 | 133 | $combine = []; |
@@ -164,6 +170,9 @@ discard block |
||
164 | 170 | return [$recordData, $recordInventoryData]; |
165 | 171 | } |
166 | 172 | |
173 | + /** |
|
174 | + * @param string $keyType |
|
175 | + */ |
|
167 | 176 | public function getInventoryData(XMLReader $xmlToImport, $keyType) |
168 | 177 | { |
169 | 178 | $recordInventoryData = []; |
@@ -19,6 +19,9 @@ discard block |
||
19 | 19 | 'delete' => 3, |
20 | 20 | ]; |
21 | 21 | |
22 | + /** |
|
23 | + * @param string $type |
|
24 | + */ |
|
22 | 25 | public static function addBasic($type) |
23 | 26 | { |
24 | 27 | $db = App\Db::getInstance('log'); |
@@ -41,6 +44,9 @@ discard block |
||
41 | 44 | } |
42 | 45 | } |
43 | 46 | |
47 | + /** |
|
48 | + * @param string $type |
|
49 | + */ |
|
44 | 50 | public static function changeType($type) |
45 | 51 | { |
46 | 52 | App\Db::getInstance('log')->createCommand() |
@@ -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'); |
@@ -73,7 +73,7 @@ |
||
73 | 73 | |
74 | 74 | // maximum file size for uploaded files in bytes also used when uploading import files |
75 | 75 | // upload_maxsize default value = 3000000 |
76 | -$upload_maxsize = 52428800; // 50MB |
|
76 | +$upload_maxsize = 52428800; // 50MB |
|
77 | 77 | // flag to allow export functionality |
78 | 78 | // 'all' to allow anyone to use exports |
79 | 79 | // 'admin' to only allow admins to export |
@@ -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; |