BxBaseModProfileInstaller.php 730 B

12345678910111213141516171819202122232425262728293031
  1. <?php defined('BX_DOL') or die('hack attempt');
  2. /**
  3. * Copyright (c) BoonEx Pty Limited - http://www.boonex.com/
  4. * CC-BY License - http://creativecommons.org/licenses/by/3.0/
  5. *
  6. * @defgroup BaseProfile Base classes for profile modules
  7. * @ingroup TridentModules
  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. /** @} */