3
* Class used to parse RSS and ATOM feeds
5
* @author Andreas Gohr <andi@splitbrain.org>
8
if(!defined('DOKU_INC')) define('DOKU_INC',realpath(dirname(__FILE__).'/../').'/');
9
require_once(DOKU_INC.'inc/HTTPClient.php');
10
require_once(DOKU_INC.'inc/SimplePie.php');
14
* We override some methods of the original SimplePie class here
16
class FeedParser extends SimplePie {
19
* Constructor. Set some defaults
21
function FeedParser(){
23
$this->caching = false;
27
* Fetch an URL using our own HTTPClient
29
* Overrides SimplePie's own method
31
function get_file($url){
32
$http = new DokuHTTPClient();
33
return $http->get($url,true);