BxProfilerAlertsResponse.php 579 B

1234567891011121314151617181920212223242526
  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. ob_start();
  20. require_once(BX_DIRECTORY_PATH_MODULES . 'boonex/profiler/classes/BxProfiler.php');
  21. }
  22. }
  23. }
  24. /** @} */