Ejemplo n.º 1
0
 /**
  * Prepare params and return the result
  *
  * @param  object $params - the params of RSS
  *
  * @return array - the array of RSS items
  * @since  1.0
  */
 public static function loadFeed($params)
 {
     // module params
     $filter = JFilterInput::getInstance();
     //  get RSS parsed object
     $options = array();
     $options['rssUrl'] = $params->rssurl;
     $options['cache_time'] = 0;
     $parser = @JFactory::getXMLparser('RSS', $options);
     if ($parser) {
         return RssfeedHelper::_parse($parser, $params);
     } else {
         return false;
     }
 }