BxDolRssBoonEx.php 618 B

12345678910111213141516171819202122232425262728293031
  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 UnaCore UNA Core
  7. * @{
  8. */
  9. class BxDolRssBoonEx extends BxTemplRss
  10. {
  11. protected $aFeeds;
  12. public function __construct($aObject)
  13. {
  14. parent::__construct($aObject);
  15. $this->aFeeds = array (
  16. 'boonex_news' => 'http://www.boonex.com/unity/blog/featured_posts/?rss=1'
  17. );
  18. }
  19. public function getUrl($mixedId) {
  20. if(!isset($this->aFeeds[$mixedId]))
  21. return false;
  22. return $this->aFeeds[$mixedId];
  23. }
  24. }
  25. /** @} */