Registry
Handles creating objects and calling methods
Access this via {@see \SimplePie\SimplePie::get_registry()}
- Full name:
\SimplePie\Registry
Properties
default
Default class mapping
Overriding classes must subclass these.
classes
Class mapping
See Also:
- \SimplePie\register() -
legacy
Legacy classes
See Also:
- \SimplePie\register() -
legacyTypes
Legacy types
See Also:
- \SimplePie\register() -
Methods
__construct
Constructor
No-op
register
Register a class
Parameters:
Parameter | Type | Description |
---|---|---|
$type |
string | See {@see $default} for names |
$class |
class-string | Class name, must subclass the corresponding default |
$legacy |
bool | Whether to enable legacy support for this class |
Return Value:
Successfulness
get_class
Get the class registered for a type
Where possible, use {@see \SimplePie\create()} or {@see \SimplePie\call()} instead
Parameters:
Parameter | Type | Description |
---|---|---|
$type |
class-string<\SimplePie\T> |
create
Create a new instance of a given type
Parameters:
Parameter | Type | Description |
---|---|---|
$type |
class-string<\SimplePie\T> | |
$parameters |
array | Parameters to pass to the constructor |
Return Value:
Instance of class
call
Call a static method for a type
Parameters:
Parameter | Type | Description |
---|---|---|
$type |
class-string | |
$method |
string | |
$parameters |
array |
Automatically generated on 2025-03-18