Zend Framework  3.0
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
Uri Class Reference

Public Member Functions

 __construct ($uri)
 
 getHost ()
 Retrieve the host.
 
 getPath ()
 Retrieve the URI path.
 
 getScheme ()
 Retrieve the scheme.
 
 isValid ()
 Is the URI valid?
 
 isAbsolute ()
 Is the URI absolute?
 

Static Public Member Functions

static factory ($uri)
 Create an instance.
 

Protected Attributes

 $fragment
 
 $host
 
 $pass
 
 $path
 
 $port
 
 $query
 
 $scheme
 
 $user
 
 $valid
 
 $validSchemes
 Valid schemes.
 

Constructor & Destructor Documentation

__construct (   $uri)
Parameters
string$uri

Member Function Documentation

static factory (   $uri)
static

Create an instance.

Useful for chained validations

Parameters
string$uri
Returns
self
getHost ( )

Retrieve the host.

Returns
string
getPath ( )

Retrieve the URI path.

Returns
string
getScheme ( )

Retrieve the scheme.

Returns
string
isAbsolute ( )

Is the URI absolute?

Returns
bool
isValid ( )

Is the URI valid?

Returns
bool

Member Data Documentation

$fragment
protected
$host
protected
$pass
protected
$path
protected
$port
protected
$query
protected
$scheme
protected
$user
protected
$valid
protected
$validSchemes
protected
Initial value:
= [
'http',
'https',
'file',
]

Valid schemes.