BxMapShowAlertsResponse.php 696 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 MapShow Display last sign up users on map
  7. * @ingroup UnaModules
  8. *
  9. * @{
  10. */
  11. class BxMapShowAlertsResponse extends BxDolAlertsResponse
  12. {
  13. public function __construct()
  14. {
  15. parent::__construct();
  16. }
  17. public function response($oAlert)
  18. {
  19. if ($oAlert->sUnit == 'account' && $oAlert->sAction == 'added'){
  20. $oModule = BxDolModule::getInstance('bx_mapshow');
  21. $oModule->addIpInfoToDb($oAlert->iObject, getVisitorIP());
  22. }
  23. }
  24. }
  25. /** @} */