Zend Framework  1.12
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
Zend_Uri Class Reference

Public Member Functions

 __toString ()
 Return a string representation of this URI.
 
 getScheme ()
 Get the URI's scheme.
 
 getUri ()
 Return a string representation of this URI.
 
 valid ()
 Returns TRUE if this URI is valid, or FALSE otherwise.
 

Static Public Member Functions

static check ($uri)
 Convenience function, checks that a $uri string is well-formed by validating it but not returning an object.
 
static factory ($uri= 'http', $className=null)
 Create a new Zend_Uri object for a URI.
 
static setConfig ($config)
 Set global configuration options.
 

Protected Member Functions

 __construct ($scheme, $schemeSpecific= '')
 Zend_Uri and its subclasses cannot be instantiated directly.
 

Protected Attributes

 $_scheme = ''
 

Static Protected Attributes

static $_config
 

Constructor & Destructor Documentation

__construct (   $scheme,
  $schemeSpecific = '' 
)
abstractprotected

Zend_Uri and its subclasses cannot be instantiated directly.

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

Parameters
string$schemeThe scheme of the URI
string$schemeSpecificThe scheme-specific part of the URI

Member Function Documentation

__toString ( )

Return a string representation of this URI.

See Also
getUri()
Returns
string
static check (   $uri)
static

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.

Parameters
string$uriThe URI to check
Returns
boolean
static factory (   $uri = 'http',
  $className = null 
)
static

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.

Parameters
string$uriThe URI form which a Zend_Uri instance is created
string$classNameThe name of the class to use in order to manipulate URI
Exceptions
Zend_Uri_ExceptionWhen an empty string was supplied for the scheme
Zend_Uri_ExceptionWhen an illegal scheme is supplied
Zend_Uri_ExceptionWhen the scheme is not supported
Zend_Uri_ExceptionWhen $className doesn't exist or doesn't implements Zend_Uri
Returns
Zend_Uri http://www.faqs.org/rfcs/rfc2396.html

Create a new Zend_Uri object for the $uri. If a subclass of Zend_Uri exists for the scheme, return an instance of that class. Otherwise, a Zend_Uri_Exception is thrown.

getScheme ( )

Get the URI's scheme.

Returns
string|false Scheme or false if no scheme is set.
getUri ( )
abstract

Return a string representation of this URI.

Returns
string
static setConfig (   $config)
static

Set global configuration options.

Parameters
Zend_Config | array$config
valid ( )
abstract

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

Returns
boolean

Member Data Documentation

$_config
staticprotected
Initial value:
= array(
'allow_unwise' => false
)
$_scheme = ''
protected