@@ -40,7 +40,7 @@ |
||
40 | 40 | * |
41 | 41 | * @param int|string $value |
42 | 42 | * |
43 | - * @return \self |
|
43 | + * @return Settings_SharingAccess_Action_Model|null |
|
44 | 44 | */ |
45 | 45 | public static function getInstance($value) |
46 | 46 | { |
@@ -212,7 +212,7 @@ discard block |
||
212 | 212 | * |
213 | 213 | * @param string $qualifiedModuleName |
214 | 214 | * |
215 | - * @return \self |
|
215 | + * @return Settings_SMSNotifier_Record_Model |
|
216 | 216 | */ |
217 | 217 | public static function getCleanInstance($qualifiedModuleName) |
218 | 218 | { |
@@ -286,7 +286,6 @@ discard block |
||
286 | 286 | /** |
287 | 287 | * Function to get instance of provider model. |
288 | 288 | * |
289 | - * @param string $providerName |
|
290 | 289 | * |
291 | 290 | * @return bool|\SMSNotifier_Basic_Provider |
292 | 291 | */ |
@@ -349,7 +349,7 @@ |
||
349 | 349 | * |
350 | 350 | * @param int $record |
351 | 351 | * |
352 | - * @return Settings_Roles_Record_Model instance, if exists. Null otherwise |
|
352 | + * @return Settings_TreesManager_Record_Model|null instance, if exists. Null otherwise |
|
353 | 353 | */ |
354 | 354 | public static function getInstanceById($record) |
355 | 355 | { |
@@ -16,7 +16,7 @@ |
||
16 | 16 | * |
17 | 17 | * @param string $name |
18 | 18 | * |
19 | - * @return \self |
|
19 | + * @return Settings_Users_Module_Model |
|
20 | 20 | */ |
21 | 21 | public static function getInstance($name = 'Settings:Vtiger') |
22 | 22 | { |
@@ -31,7 +31,7 @@ |
||
31 | 31 | /** |
32 | 32 | * Function to get CompanyDetails Menu item. |
33 | 33 | * |
34 | - * @return menu item Model |
|
34 | + * @return Settings_Vtiger_MenuItem_Model item Model |
|
35 | 35 | */ |
36 | 36 | public function getMenuItem() |
37 | 37 | { |
@@ -142,6 +142,9 @@ discard block |
||
142 | 142 | return 'index.php?module=' . $this->getName() . '&parent=' . $this->getParentName() . '&view=Index'; |
143 | 143 | } |
144 | 144 | |
145 | + /** |
|
146 | + * @param string $moduleName |
|
147 | + */ |
|
145 | 148 | public function prepareMenuToDisplay($menuModels, $moduleName, $selectedMenuId, $fieldId) |
146 | 149 | { |
147 | 150 | if (!empty($selectedMenuId)) { |
@@ -209,6 +212,9 @@ discard block |
||
209 | 212 | return $menu; |
210 | 213 | } |
211 | 214 | |
215 | + /** |
|
216 | + * @param string $block |
|
217 | + */ |
|
212 | 218 | public static function addSettingsField($block, $params) |
213 | 219 | { |
214 | 220 | $db = App\Db::getInstance(); |
@@ -220,6 +226,10 @@ discard block |
||
220 | 226 | $db->createCommand()->insert('vtiger_settings_field', $params)->execute(); |
221 | 227 | } |
222 | 228 | |
229 | + /** |
|
230 | + * @param string $block |
|
231 | + * @param string $name |
|
232 | + */ |
|
223 | 233 | public static function deleteSettingsField($block, $name) |
224 | 234 | { |
225 | 235 | App\Db::getInstance()->createCommand()->delete('vtiger_settings_field', ['name' => $name, 'blockid' => vtlib\Deprecated::getSettingsBlockId($block)])->execute(); |
@@ -228,7 +238,7 @@ discard block |
||
228 | 238 | /** |
229 | 239 | * Delete settings field by module name. |
230 | 240 | * |
231 | - * @param type $moduleName |
|
241 | + * @param boolean $moduleName |
|
232 | 242 | */ |
233 | 243 | public static function deleteSettingsFieldBymodule($moduleName) |
234 | 244 | { |
@@ -37,7 +37,7 @@ |
||
37 | 37 | /** |
38 | 38 | * Functtion to get instance without data. |
39 | 39 | * |
40 | - * @return \self |
|
40 | + * @return Settings_WebserviceApps_Record_Model |
|
41 | 41 | */ |
42 | 42 | public static function getCleanInstance() |
43 | 43 | { |
@@ -78,7 +78,7 @@ |
||
78 | 78 | /** |
79 | 79 | * Function returns name of table in database. |
80 | 80 | * |
81 | - * @return type |
|
81 | + * @return string |
|
82 | 82 | */ |
83 | 83 | public function getBaseTable() |
84 | 84 | { |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | /** |
70 | 70 | * Function determines fields available in edition view. |
71 | 71 | * |
72 | - * @return string[] |
|
72 | + * @return string |
|
73 | 73 | */ |
74 | 74 | public function getEditFields() |
75 | 75 | { |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | /** |
80 | 80 | * Function determines fields available in edition view. |
81 | 81 | * |
82 | - * @return string[] |
|
82 | + * @return Settings_Vtiger_Field_Model |
|
83 | 83 | */ |
84 | 84 | public function getFieldInstanceByName($name) |
85 | 85 | { |
@@ -158,7 +158,7 @@ discard block |
||
158 | 158 | * |
159 | 159 | * @param string $type |
160 | 160 | * |
161 | - * @return \self |
|
161 | + * @return Settings_WebserviceUsers_Record_Model |
|
162 | 162 | */ |
163 | 163 | public static function getCleanInstance($type) |
164 | 164 | { |
@@ -175,7 +175,7 @@ discard block |
||
175 | 175 | * |
176 | 176 | * @param array $data |
177 | 177 | * |
178 | - * @return bool |
|
178 | + * @return integer |
|
179 | 179 | */ |
180 | 180 | public function save($data) |
181 | 181 | { |