installer.php 830 B

12345678910111213141516171819202122232425262728293031323334353637
  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 Credits Credits
  7. * @ingroup UnaModules
  8. *
  9. * @{
  10. */
  11. class BxCreditsInstaller extends BxBaseModTextInstaller
  12. {
  13. public function __construct($aConfig)
  14. {
  15. parent::__construct($aConfig);
  16. }
  17. public function enable($aParams)
  18. {
  19. $aResult = parent::enable($aParams);
  20. if($aResult['result'])
  21. BxDolPayments::getInstance()->updateDependentModules($this->_aConfig['name'], true);
  22. return $aResult;
  23. }
  24. public function disable($aParams)
  25. {
  26. BxDolPayments::getInstance()->updateDependentModules($this->_aConfig['name'], false);
  27. return parent::disable($aParams);
  28. }
  29. }
  30. /** @} */