SimplePie::get_registry PHP Method

get_registry() public method

Use this to override SimplePie's default classes
See also: SimplePie_Registry
public get_registry ( ) : SimplePie_Registry
return SimplePie_Registry
    public function &get_registry()
    {
        return $this->registry;
    }

Usage Example

Ejemplo n.º 1
0
 /**
  * @expectedException Exception_Success
  */
 public function testDirectOverrideNew()
 {
     $feed = new SimplePie();
     $feed->get_registry()->register('Cache', 'Mock_CacheNew');
     $feed->get_registry()->register('File', 'MockSimplePie_File');
     $feed->set_feed_url('http://example.com/feed/');
     $feed->init();
 }
All Usage Examples Of SimplePie::get_registry