Abstract class for all Zend_Uri handlers

category Zend
package Zend_Uri
copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
license New BSD License

 Methods

Return a string representation of this URI.

__toString() : string
see

Returns

string

Convenience 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.

check(string $uri) : boolean
Static

Parameters

$uri

string

The URI to check

Returns

boolean

Create 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.

factory(string $uri = 'http', string $className = null) : \Zend_Uri
Static
link http://www.faqs.org/rfcs/rfc2396.html

Parameters

$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

Exceptions

\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

Returns

\Zend_Uri

Get the URI's scheme

getScheme() : string | false

Returns

stringfalseScheme or false if no scheme is set.

Return a string representation of this URI.

getUri() : string

Returns

string

Set global configuration options

setConfig(\Zend_Config|array $config) 
Static

Parameters

$config

\Zend_Configarray

Returns TRUE if this URI is valid, or FALSE otherwise.

valid() : boolean

Returns

boolean

Zend_Uri and its subclasses cannot be instantiated directly.

__construct(string $scheme, string $schemeSpecific = ''

Use Zend_Uri::factory() to return a new Zend_Uri object.

Parameters

$scheme

string

The scheme of the URI

$schemeSpecific

string

The scheme-specific part of the URI

 Properties

 

Global configuration array

$_config : array

Default

array('allow_unwise' => false)
Static
 

Scheme of this URI (http, ftp, etc.)

$_scheme : string

Default

''