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\S3CorporateFilestorage;
9:
10: use Aurora\Modules\CorporateFiles\Module as CorporateFiles;
11:
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: * @package Modules
18: */
19: class Module extends \Aurora\Modules\S3Filestorage\Module
20: {
21: protected $aRequireModules = ['CorporateFiles', 'S3Filestorage'];
22:
23: protected static $sStorageType = 'corporate';
24: protected static $iStorageOrder = 20;
25:
26: public function init()
27: {
28: $corporateFiles = CorporateFiles::getInstance();
29: if ($corporateFiles && !$this->getConfig('Disabled', false)) {
30: $corporateFiles->setConfig('Disabled', true);
31: }
32:
33: parent::init();
34: }
35: }
36: