[ Index ] |
|
Code source de DokuWiki 2006-11-06 |
1 <?php 2 /** 3 * Class used to parse RSS and ATOM feeds 4 * 5 * @author Andreas Gohr <andi@splitbrain.org> 6 */ 7 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'); 11 12 13 /** 14 * We override some methods of the original SimplePie class here 15 */ 16 class FeedParser extends SimplePie { 17 18 /** 19 * Constructor. Set some defaults 20 */ 21 function FeedParser(){ 22 $this->SimplePie(); 23 $this->caching = false; 24 } 25 26 /** 27 * Fetch an URL using our own HTTPClient 28 * 29 * Overrides SimplePie's own method 30 */ 31 function get_file($url){ 32 $http = new DokuHTTPClient(); 33 return $http->get($url,true); 34 } 35 }
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Tue Apr 3 20:47:31 2007 | par Balluche grâce à PHPXref 0.7 |