2006-04-17 18:04:53 +02:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* We override some methods of the original SimplePie class here
|
|
|
|
*/
|
|
|
|
class FeedParser extends SimplePie {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Constructor. Set some defaults
|
|
|
|
*/
|
2018-04-27 20:02:24 +02:00
|
|
|
public function __construct(){
|
2013-02-03 22:13:13 +01:00
|
|
|
parent::__construct();
|
2007-07-19 10:06:38 +02:00
|
|
|
$this->enable_cache(false);
|
2019-02-24 09:27:58 +01:00
|
|
|
$this->set_file_class(\dokuwiki\FeedParserFile::class);
|
2006-04-17 18:04:53 +02:00
|
|
|
}
|
2007-10-15 14:12:48 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Backward compatibility for older plugins
|
2017-03-31 04:58:14 +02:00
|
|
|
*
|
2019-02-24 09:27:58 +01:00
|
|
|
* phpcs:disable PSR1.Methods.CamelCapsMethodName.NotCamelCaps
|
2017-03-31 04:58:14 +02:00
|
|
|
* @param string $url
|
2007-10-15 14:12:48 +02:00
|
|
|
*/
|
2018-04-27 20:02:24 +02:00
|
|
|
public function feed_url($url){
|
2007-10-15 14:12:48 +02:00
|
|
|
$this->set_feed_url($url);
|
|
|
|
}
|
2007-03-12 21:34:19 +01:00
|
|
|
}
|
|
|
|
|
2011-10-14 14:04:36 +02:00
|
|
|
|