OpenApi Gen: add toString method for easier testing
[dokuwiki.git] / inc / FeedParser.php
blobb93ba2937bc5d6b008f04640567b2f6e7b231fb7
1 <?php
3 use SimplePie\SimplePie;
4 use dokuwiki\FeedParserFile;
5 use SimplePie\File;
7 /**
8 * We override some methods of the original SimplePie class here
9 */
10 class FeedParser extends SimplePie
12 /**
13 * Constructor. Set some defaults
15 public function __construct()
17 parent::__construct();
18 $this->enable_cache(false);
19 $this->registry->register(File::class, FeedParserFile::class);
22 /**
23 * Backward compatibility for older plugins
25 * phpcs:disable PSR1.Methods.CamelCapsMethodName.NotCamelCaps
26 * @param string $url
28 public function feed_url($url)
30 $this->set_feed_url($url);