1: | <?php |
2: | /** |
3: | * This code is licensed under AGPLv3 license or Afterlogic Software License |
4: | * if commercial version of the product was purchased. |
5: | * For full statements of the licenses see LICENSE-AFTERLOGIC and LICENSE-AGPL3 files. |
6: | */ |
7: | |
8: | namespace Aurora\Modules\MobileSync; |
9: | |
10: | /** |
11: | * Allows for syncing data with mobile devices or any application/platform which offers CalDAV/CardDAV support. |
12: | * |
13: | * @license https://www.gnu.org/licenses/agpl-3.0.html AGPL-3.0 |
14: | * @license https://afterlogic.com/products/common-licensing Afterlogic Software License |
15: | * @copyright Copyright (c) 2023, Afterlogic Corp. |
16: | * |
17: | * @property Settings $oModuleSettings |
18: | * |
19: | * @package Modules |
20: | */ |
21: | class Module extends \Aurora\System\Module\AbstractModule |
22: | { |
23: | public function init() {} |
24: | |
25: | /** |
26: | * @return Module |
27: | */ |
28: | public static function getInstance() |
29: | { |
30: | return parent::getInstance(); |
31: | } |
32: | |
33: | /** |
34: | * @return Module |
35: | */ |
36: | public static function Decorator() |
37: | { |
38: | return parent::Decorator(); |
39: | } |
40: | |
41: | /** |
42: | * @return Settings |
43: | */ |
44: | public function getModuleSettings() |
45: | { |
46: | return $this->oModuleSettings; |
47: | } |
48: | |
49: | /***** public functions might be called with web API *****/ |
50: | /** |
51: | * Collects the information about mobile sync from other modules and returns it. |
52: | * |
53: | * @return array |
54: | */ |
55: | public function GetInfo() |
56: | { |
57: | \Aurora\System\Api::checkUserRoleIsAtLeast(\Aurora\System\Enums\UserRole::NormalUser); |
58: | |
59: | $mResult = array(); |
60: | $aArgs = array(); |
61: | $this->broadcastEvent( |
62: | 'GetInfo', |
63: | $aArgs, |
64: | $mResult |
65: | ); |
66: | |
67: | return $mResult; |
68: | } |
69: | /***** public functions might be called with web API *****/ |
70: | } |
71: |