Skip to content
Snippets Groups Projects
Commit 5f9846d0 authored by Andreas Gohr's avatar Andreas Gohr
Browse files

add missing FeedParser.php #782

darcs-hash:20060417160453-7ad00-e54322159dbe1c1c75cd2c8494fda14a3f4bc021.gz
parent 8f4f35ec
No related branches found
No related tags found
No related merge requests found
<?php
/**
* Class used to parse RSS and ATOM feeds
*
* @author Andreas Gohr <andi@splitbrain.org>
*/
if(!defined('DOKU_INC')) define('DOKU_INC',realpath(dirname(__FILE__).'/../').'/');
require_once(DOKU_INC.'inc/HTTPClient.php');
require_once(DOKU_INC.'inc/SimplePie.php');
/**
* We override some methods of the original SimplePie class here
*/
class FeedParser extends SimplePie {
/**
* Constructor. Set some defaults
*/
function FeedParser(){
$this->SimplePie();
$this->caching = false;
}
/**
* Fetch an URL using our own HTTPClient
*/
function getFile($url){
$http = new DokuHTTPClient();
return $http->get($url);
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment