BxDonationsAlertsResponse.php 851 B

1234567891011121314151617181920212223242526272829303132333435
  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. * @defdroup Donations Donations
  7. * @indroup UnaModules
  8. *
  9. * @{
  10. */
  11. class BxDonationsAlertsResponse extends BxDolAlertsResponse
  12. {
  13. protected $_sModule;
  14. protected $_oModule;
  15. public function __construct()
  16. {
  17. parent::__construct();
  18. $this->_sModule = 'bx_donations';
  19. $this->_oModule = BxDolModule::getInstance($this->_sModule);
  20. }
  21. public function response($oAlert)
  22. {
  23. parent::response($oAlert);
  24. $sMethod = '_process' . bx_gen_method_name($oAlert->sUnit . '_' . $oAlert->sAction);
  25. if(method_exists($this, $sMethod))
  26. $this->$sMethod($oAlert);
  27. }
  28. }
  29. /** @} */