[ Index ]

PHP Cross Reference of WordPress




/wp-includes/SimplePie/ -> Registry.php (summary)

SimplePie A PHP-Based RSS and Atom Feed Framework. Takes the hard work out of managing a complete RSS/Atom solution.

Author: Ryan Parman
Author: Sam Sneddon
Author: Ryan McCue
Copyright: 2004-2016 Ryan Parman, Sam Sneddon, Ryan McCue
License: http://www.opensource.org/licenses/bsd-license.php BSD License
File Size: 225 lines (6 kb)
Included or required: 1 time
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

SimplePie_Registry:: (5 methods):

Class: SimplePie_Registry  - X-Ref

Handles creating objects and calling methods

Access this via {@see SimplePie::get_registry()}

__construct()   X-Ref


register($type, $class, $legacy = false)   X-Ref
Register a class

return: bool Successfulness
param: string $type See {@see $default} for names
param: string $class Class name, must subclass the corresponding default
param: bool $legacy Whether to enable legacy support for this class

get_class($type)   X-Ref
Get the class registered for a type

Where possible, use {@see create()} or {@see call()} instead

return: string|null
param: string $type

create($type, $parameters = array()   X-Ref
Create a new instance of a given type

return: object Instance of class
param: string $type
param: array $parameters Parameters to pass to the constructor

call($type, $method, $parameters = array()   X-Ref
Call a static method for a type

return: mixed
param: string $type
param: string $method
param: array $parameters

Generated: Wed Jun 29 01:00:03 2022 Cross-referenced by PHPXref 0.7.1