[ Index ]

PHP Cross Reference of DokuWiki

title

Body

[close]

/inc/ -> FeedParser.php (source)

   1  <?php
   2  
   3  use dokuwiki\FeedParserFile;
   4  use SimplePie\File;
   5  
   6  /**
   7   * We override some methods of the original SimplePie class here
   8   */
   9  class FeedParser extends \SimplePie\SimplePie {
  10  
  11      /**
  12       * Constructor. Set some defaults
  13       */
  14      public function __construct(){
  15          parent::__construct();
  16          $this->enable_cache(false);
  17          $this->registry->register(File::class, FeedParserFile::class);
  18      }
  19  
  20      /**
  21       * Backward compatibility for older plugins
  22       *
  23       * phpcs:disable PSR1.Methods.CamelCapsMethodName.NotCamelCaps
  24       * @param string $url
  25       */
  26      public function feed_url($url){
  27          $this->set_feed_url($url);
  28      }
  29  }
  30  
  31