| 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\Tasks; |
| 9: | |
| 10: | /** |
| 11: | * @license https://www.gnu.org/licenses/agpl-3.0.html AGPL-3.0 |
| 12: | * @license https://afterlogic.com/products/common-licensing Afterlogic Software License |
| 13: | * @copyright Copyright (c) 2023, Afterlogic Corp. |
| 14: | * |
| 15: | * @property Settings $oModuleSettings |
| 16: | * |
| 17: | * @package Modules |
| 18: | */ |
| 19: | class Module extends \Aurora\System\Module\AbstractModule |
| 20: | { |
| 21: | public function init() {} |
| 22: | |
| 23: | /** |
| 24: | * @return Module |
| 25: | */ |
| 26: | public static function getInstance() |
| 27: | { |
| 28: | return parent::getInstance(); |
| 29: | } |
| 30: | |
| 31: | /** |
| 32: | * @return Module |
| 33: | */ |
| 34: | public static function Decorator() |
| 35: | { |
| 36: | return parent::Decorator(); |
| 37: | } |
| 38: | |
| 39: | /** |
| 40: | * @return Settings |
| 41: | */ |
| 42: | public function getModuleSettings() |
| 43: | { |
| 44: | return $this->oModuleSettings; |
| 45: | } |
| 46: | |
| 47: | /** |
| 48: | * Obtains list of module settings for authenticated user. |
| 49: | * |
| 50: | * @return array |
| 51: | */ |
| 52: | public function GetSettings() |
| 53: | { |
| 54: | \Aurora\System\Api::checkUserRoleIsAtLeast(\Aurora\System\Enums\UserRole::Anonymous); |
| 55: | return null; |
| 56: | } |
| 57: | } |
| 58: |