Zend Framework
3.0
|
URI Factory Class. More...
Static Public Member Functions | |
static static | registerScheme ($scheme, $class) |
Register a scheme-specific class to be used. | |
static | unregisterScheme ($scheme) |
Unregister a scheme. | |
static | getRegisteredSchemeClass ($scheme) |
Get the class name for a registered scheme. | |
static | factory ($uriString, $defaultScheme=null) |
Create a URI from a string. | |
Static Protected Attributes | |
static | $schemeClasses |
URI Factory Class.
The URI factory can be used to generate URI objects from strings, using a different URI subclass depending on the input URI scheme. New scheme-specific classes can be registered using the registerScheme() method.
Note that this class contains only static methods and should not be instantiated
|
static |
Create a URI from a string.
string | $uriString | |
string | $defaultScheme |
Exception\InvalidArgumentException |
|
static |
Get the class name for a registered scheme.
If provided scheme is not registered, will return NULL
string | $scheme |
|
static |
Register a scheme-specific class to be used.
string | $scheme | |
string | $class |
|
static |
Unregister a scheme.
string | $scheme |
|
staticprotected |