Merge pull request #3358 from dokuwiki-translate/lang_update_222_1609172169
[dokuwiki.git] / inc / FeedParser.php
blob8f71b96bc9a037326b6600d983429a5e76cf2e6a
1 <?php
2 /**
3 * We override some methods of the original SimplePie class here
4 */
5 class FeedParser extends SimplePie {
7 /**
8 * Constructor. Set some defaults
9 */
10 public function __construct(){
11 parent::__construct();
12 $this->enable_cache(false);
13 $this->set_file_class(\dokuwiki\FeedParserFile::class);
16 /**
17 * Backward compatibility for older plugins
19 * phpcs:disable PSR1.Methods.CamelCapsMethodName.NotCamelCaps
20 * @param string $url
22 public function feed_url($url){
23 $this->set_feed_url($url);