1<?php
2/**
3 * We override some methods of the original SimplePie class here
4 */
5class FeedParser extends SimplePie {
6
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);
14    }
15
16    /**
17     * Backward compatibility for older plugins
18     *
19     * phpcs:disable PSR1.Methods.CamelCapsMethodName.NotCamelCaps
20     * @param string $url
21     */
22    public function feed_url($url){
23        $this->set_feed_url($url);
24    }
25}
26
27
28