BxProfilerAlertsResponse.php 555 B

12345678910111213141516171819202122232425
  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 Profiler Profiler
  7. * @ingroup UnaModules
  8. *
  9. * @{
  10. */
  11. /**
  12. * alerts handler
  13. */
  14. class BxProfilerAlertsResponse extends BxDolAlertsResponse
  15. {
  16. public function response($oAlert)
  17. {
  18. if ('system' == $oAlert->sUnit && 'begin' == $oAlert->sAction) {
  19. require_once(BX_DIRECTORY_PATH_MODULES . 'boonex/profiler/classes/BxProfiler.php');
  20. }
  21. }
  22. }
  23. /** @} */