1: | <?php |
2: | |
3: | |
4: | |
5: | |
6: | |
7: | |
8: | namespace Aurora\Modules\S3CorporateFilestorage; |
9: | |
10: | use Aurora\Modules\CorporateFiles\Module as CorporateFiles; |
11: | |
12: | |
13: | |
14: | |
15: | |
16: | |
17: | |
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: | |