BxQuoteOfDayAlertsResponse.php 785 B

12345678910111213141516171819202122232425262728
  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 QuoteOfTheDay Quote of the Day
  7. * @ingroup UnaModules
  8. *
  9. * @{
  10. */
  11. class BxQuoteOfDayAlertsResponse extends BxDolAlertsResponse
  12. {
  13. public function __construct()
  14. {
  15. parent::__construct();
  16. }
  17. public function response($oAlert)
  18. {
  19. if ($oAlert->aExtras['option'] == 'bx_quoteofday_source' || $oAlert->aExtras['option'] == 'bx_quoteofday_rss_url' || $oAlert->aExtras['option'] == 'bx_quoteofday_selection_mode'){
  20. $oModule = BxDolModule::getInstance('bx_quoteofday');
  21. $oModule->removeQuoteFromCache();
  22. }
  23. }
  24. }
  25. /** @} */