installer.php 795 B

123456789101112131415161718192021222324252627282930313233
  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 Analytics Analytics
  7. * @ingroup UnaModules
  8. *
  9. * @{
  10. */
  11. class BxAnalyticsInstaller extends BxBaseModTextInstaller
  12. {
  13. function __construct($aConfig)
  14. {
  15. parent::__construct($aConfig);
  16. }
  17. /**
  18. * Subscribe to the actions of the modules installed now; later ones are added when they
  19. * are enabled (the system/enable alert).
  20. */
  21. protected function _onEnableAfter()
  22. {
  23. $iResult = parent::_onEnableAfter();
  24. if($iResult == BX_DOL_STUDIO_INSTALLER_SUCCESS)
  25. BxDolService::call($this->_aConfig['name'], 'sync_actions');
  26. return $iResult;
  27. }
  28. }
  29. /** @} */