## Zend_Uri

Description

- abstract:
- license: New BSD License
- copyright: Copyright (c) 2005-2007 Zend Technologies USA Inc. (http://www.zend.com)

Located in /Zend/Uri.php (line 48)

Direct descendents

Class | Description
--- | ---
Zend_Uri_Http |
Zend_Uri_Mailto |

Variable Summary
string $_scheme
Method Summary
static boolean check (string $uri)
static Zend_Uri factory ([string $uri = 'http'])
Zend_Uri __construct ( $scheme, [ $schemeSpecific = ''])
string|false getScheme ()
string getUri ()
boolean valid ()
string __toString ()
Variables
string $_scheme = '' (line 54)

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

- access: protected

Methods
static check (line 75)

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.

- access: public

static boolean check (string $uri)

- string $uri

static factory (line 94)

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.

- access: public
- throws: Zend_Uri_Exception

static Zend_Uri factory ([string $uri = 'http'])

- string $uri

Constructor __construct (line 157)

Zend_Uri and its subclasses cannot be instantiated directly.

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

- access: protected
- abstract:

Zend_Uri __construct ( $scheme, [ $schemeSpecific = ''])

- $scheme
- $schemeSpecific

Redefined in descendants as:

- Zend_Uri_Http::__construct() : Constructor accepts a string $scheme (e.g., http, https) and a scheme-specific part of the URI (e.g., example.com/path/to/resource?query=param#fragment)
- Zend_Uri_Mailto::__construct()

getScheme (line 140)

Get the URI's scheme

- return: Scheme or false if no scheme is set.
- access: public

string|false getScheme ()
getUri (line 164)

Return a string representation of this URI.

- access: public
- abstract:

string getUri ()

Redefined in descendants as:

- Zend_Uri_Http::getUri() : Returns a URI based on current values of the instance variables. If any part of the URI does not pass validation, then an exception is thrown.
- Zend_Uri_Mailto::getUri()

valid (line 171)

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

- access: public
- abstract:

boolean valid ()

Redefined in descendants as:

- Zend_Uri_Http::valid() : Validate the current URI from the instance variables. Returns true if and only if all parts pass validation.
- Zend_Uri_Mailto::valid()

__toString (line 62)

Return a string representation of this URI.

- access: public
- see: Zend_Uri::getUri()

string __toString ()

Documentation generated on Wed, 21 Feb 2007 12:01:21 -0800 by phpDocumentor 1.3.1