BxBaseModProfileInstaller.php 698 B

12345678910111213141516171819202122232425262728293031
  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 BaseProfile Base classes for profile modules
  7. * @ingroup UnaModules
  8. *
  9. * @{
  10. */
  11. class BxBaseModProfileInstaller extends BxBaseModGeneralInstaller
  12. {
  13. function __construct($aConfig)
  14. {
  15. parent::__construct($aConfig);
  16. }
  17. function disable($aParams)
  18. {
  19. $aResult = parent::disable($aParams);
  20. if ($aResult['result']) { // disabling was successful
  21. // TODO: switch accounts context which active profiles belong to this module
  22. }
  23. return $aResult;
  24. }
  25. }
  26. /** @} */