Handles creating objects and calling methods

package SimplePie

 Methods

Constructor

__construct() 

No-op

Call a static method for a type

call(string $type, string $method, array $parameters = array()) : mixed

Parameters

$type

string

$method

string

$parameters

array

Returns

mixed

Create a new instance of a given type

create(string $type, array $parameters = array()) : object

Parameters

$type

string

$parameters

array

Parameters to pass to the constructor

Returns

objectInstance of class

Get the class registered for a type

get_class(string $type) : string | null

Where possible, use \create() or \call() instead

Parameters

$type

string

Returns

stringnull

Register a class

register(string $type, string $class, boolean $legacy = false) : boolean

Parameters

$type

string

See {@see $default} for names

$class

string

Class name, must subclass the corresponding default

$legacy

boolean

Whether to enable legacy support for this class

Returns

booleanSuccessfulness

 Properties

 

Class mapping

$classes : array

Default

array()
see
 

Default class mapping

$default : array

Default

array('Cache' => 'SimplePie_Cache', 'Locator' => 'SimplePie_Locator', 'Parser' => 'SimplePie_Parser', 'File' => 'SimplePie_File', 'Sanitize' => 'SimplePie_Sanitize', 'Item' => 'SimplePie_Item', 'Author' => 'SimplePie_Author', 'Category' => 'SimplePie_Category', 'Enclosure' => 'SimplePie_Enclosure', 'Caption' => 'SimplePie_Caption', 'Copyright' => 'SimplePie_Copyright', 'Credit' => 'SimplePie_Credit', 'Rating' => 'SimplePie_Rating', 'Restriction' => 'SimplePie_Restriction', 'Content_Type_Sniffer' => 'SimplePie_Content_Type_Sniffer', 'Source' => 'SimplePie_Source', 'Misc' => 'SimplePie_Misc', 'XML_Declaration_Parser' => 'SimplePie_XML_Declaration_Parser', 'Parse_Date' => 'SimplePie_Parse_Date')

Overriding classes must subclass these.

 

Legacy classes

$legacy : array

Default

array()
see