URI Factory

Methods and classes for generating URI abstraction objects.

Summary
URI FactoryMethods and classes for generating URI abstraction objects.
Functions
create_uri_objectGets the appropriate URI generator class for a given object and type.

Functions

create_uri_object

function create_uri_object(&$object,  
$type = false)

Gets the appropriate URI generator class for a given object and type.  Basically, this the lazy dynamic programmer’s version of a factory pattern.

Parameters

objectThe object for which to get a URI generator.  The class of the object determines the class returned.  Note that this function supports one level of inheritance, i.e. if the class doesn’t have a URI class of its own, the parent class’s is used.
typeOptional boolean that determines what kind of URI we’re using, e.g. querystring, htaccess, or wrapper scripts.  If not specified, then the value of the URI_TYPE configuration constant is used.

Returns

A URI generator object.  The exact object type is determined by the parameters to this function call.

function create_uri_object(&$object,  
$type = false)
Gets the appropriate URI generator class for a given object and type.
Close