BxDolRssBoonEx.php 647 B

12345678910111213141516171819202122232425262728293031
  1. <?php defined('BX_DOL') or die('hack attempt');
  2. /**
  3. * Copyright (c) BoonEx Pty Limited - http://www.boonex.com/
  4. * CC-BY License - http://creativecommons.org/licenses/by/3.0/
  5. *
  6. * @defgroup TridentCore Trident Core
  7. * @{
  8. */
  9. class BxDolRssBoonEx extends BxTemplRss
  10. {
  11. protected $aFeeds;
  12. 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. /** @} */