1
0

BxDataFoxAlertsResponse.php 649 B

123456789101112131415161718192021222324252627
  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 DataFox Data Fox API integration
  7. * @ingroup UnaModules
  8. *
  9. * @{
  10. */
  11. /**
  12. * alerts handler
  13. */
  14. class BxDataFoxAlertsResponse extends BxDolAlertsResponse
  15. {
  16. public function response($oAlert)
  17. {
  18. if ('system' != $oAlert->sUnit || 'clear_xss' != $oAlert->sAction || !getParam('bx_datafox_id'))
  19. return;
  20. $a = $oAlert->aExtras;
  21. $a['return_data'] = BxDolService::call('bx_datafox', 'parse_text', array($a['return_data']));
  22. }
  23. }
  24. /** @} */