installer.php 686 B

123456789101112131415161718192021222324252627282930
  1. <?php defined('BX_DOL') or die('hack attempt');
  2. /**
  3. * Copyright (c) UNA, Inc - https://una.io
  4. * MIT License - https://opensource.org/licenses/MIT
  5. *
  6. * @defgroup Workspaces Workspaces
  7. * @ingroup UnaModules
  8. *
  9. * @{
  10. */
  11. class BxWorkspacesInstaller extends BxBaseModProfileInstaller
  12. {
  13. function __construct($aConfig)
  14. {
  15. parent::__construct($aConfig);
  16. }
  17. function enable($aParams)
  18. {
  19. $aResult = parent::enable($aParams);
  20. if($aResult['result'] && getParam($this->_sParamRelations) == '')
  21. setParam($this->_sParamRelations, $this->_aConfig['name'] . '_' . $this->_aConfig['name']);
  22. return $aResult;
  23. }
  24. }
  25. /** @} */