Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
Abstract class for all Zend_Uri handlers

array
$_config= 'array(
'allow_unwise' => false
)'
Global configuration array
array(
'allow_unwise' => false
)Details
__construct(
string $scheme, string $schemeSpecific
=
''
)
:
voidZend_Uri and its subclasses cannot be instantiated directly.
Use Zend_Uri::factory() to return a new Zend_Uri object.
| Name | Type | Description |
|---|---|---|
| $scheme | string | The scheme of the URI |
| $schemeSpecific | string | The scheme-specific part of the URI |

__toString(
)
:
stringReturn a string representation of this URI.
| Type | Description |
|---|---|
| string |

check(
string $uri
)
:
booleanConvenience function, checks that a $uri string is well-formed by validating it but not returning an object. Returns TRUE if $uri is a well-formed URI, or FALSE otherwise.
| Name | Type | Description |
|---|---|---|
| $uri | string | The URI to check |
| Type | Description |
|---|---|
| boolean |

factory(
string $uri
=
'http', string $className
=
null
)
:
\Zend_UriCreate a new Zend_Uri object for a URI. If building a new URI, then $uri should contain only the scheme (http, ftp, etc). Otherwise, supply $uri with the complete URI.
| Name | Type | Description |
|---|---|---|
| $uri | string | The URI form which a Zend_Uri instance is created |
| $className | string | The name of the class to use in order to manipulate URI |
| Type | Description |
|---|---|
| \Zend_Uri |
| Exception | Description |
|---|---|
| \Zend_Uri_Exception | When an empty string was supplied for the scheme |
| \Zend_Uri_Exception | When an illegal scheme is supplied |
| \Zend_Uri_Exception | When the scheme is not supported |
| \Zend_Uri_Exception | When $className doesn't exist or doesn't implements Zend_Uri |

getScheme(
)
:
string|falseGet the URI's scheme
| Type | Description |
|---|---|
| string|false | Scheme or false if no scheme is set. |

getUri(
)
:
stringReturn a string representation of this URI.
| Type | Description |
|---|---|
| string |

setConfig(
\Zend_Config|array $config
)
:
voidSet global configuration options
| Name | Type | Description |
|---|---|---|
| $config | \Zend_Config|array |