BxBaseModProfileInstaller.php 771 B

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