public function parseFeed($url, $nativeOrder = false, $force = false)
    {
        require_once PATH_SYSTEM.'/vendors/SimplePie.php';

        $feed = new SimplePie();
        $feed->set_timeout($this->timeout);
        $feed->set_feed_url($url);
        $feed->enable_order_by_date(!$nativeOrder);
        $feed->force_feed($force);

        if($this->cacheDuration != null)
            $feed->set_cache_duration(intval($this->cacheDuration));

        if($this->cacheDirectory != null)
            $feed->set_cache_location($this->cacheDirectory);

        if($this->stripHtmlTags != null)
        	$feed->strip_htmltags($this->stripHtmlTags);

        @$feed->init();

        if($err = $feed->error())
            throw new FeedParserException($err);

        return $feed;
    }
public function parseFeed($url, $nativeOrder = false, $force = false)
    {
        require_once PATH_SYSTEM.'/vendors/SimplePie.php';

        $feed = new SimplePie();
        $feed->set_timeout($this->timeout);
        $feed->set_feed_url($url);
        $feed->enable_order_by_date(!$nativeOrder);
        $feed->force_feed($force);

        if($this->cacheDuration != null)
            $feed->set_cache_duration(intval($this->cacheDuration));

        if($this->cacheDirectory != null)
            $feed->set_cache_location($this->cacheDirectory);

        if($this->stripHtmlTags != null)
        	$feed->strip_htmltags($this->stripHtmlTags);

        @$feed->init();

        if($err = $feed->error())
            throw new FeedParserException($err);

        return $feed;
    }
public function parseFeed ( $ url , $ nativeOrder = false , $ force = false ) { require_once PATH_SYSTEM . '/vendors/SimplePie.php' ; $ feed = new SimplePie ( ) ; $ feed -> set_timeout ( $ this -> timeout ) ; $ feed -> set_feed_url ( $ url ) ; $ feed -> enable_order_by_date ( ! $ nativeOrder ) ; $ feed -> force_feed ( $ force ) ; if ( $ this -> cacheDuration != null ) $ feed -> set_cache_duration ( intval ( $ this -> cacheDuration ) ) ; if ( $ this -> cacheDirectory != null ) $ feed -> set_cache_location ( $ this -> cacheDirectory ) ; if ( $ this -> stripHtmlTags != null ) $ feed -> strip_htmltags ( $ this -> stripHtmlTags ) ; @ $ feed -> init ( ) ; if ( $ err = $ feed -> error ( ) ) throw new FeedParserException ( $ err ) ; return $ feed ; }
Opens an RSS feed, parses and loads the contents.

@param string $url         The URL of the RSS feed
@param bool   $nativeOrder If true, disable order by date to preserve native ordering
@param bool   $force       Force SimplePie to parse the feed despite errors

@return object An object that encapsulates the feed contents and operations on those contents.
@throws FeedParserException If opening or parsing feed fails
Opens an RSS feed parses and loads the contents .