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.
static boolean
check
(string $uri)
-
string
$uri: The URI to check
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.
static
Zend_Uri
factory
([
string $uri =
'http'], [
string $className =
null])
-
string
$uri: The URI form which a Zend_Uri instance is created
-
string
$className: The name of the class to use in order to manipulate URI
Set global configuration options
Zend_Uri and its subclasses cannot be instantiated directly.
Use Zend_Uri::factory() to return a new Zend_Uri object.
Zend_Uri
__construct
(string $scheme, [string $schemeSpecific = ''])
-
string
$scheme: The scheme of the URI
-
string
$schemeSpecific: The scheme-specific part of the URI
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)
Get the URI's scheme
string|false
getScheme
()
Return a string representation of this URI.
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.
Returns TRUE if this URI is valid, or FALSE otherwise.
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.
Return a string representation of this URI.
string
__toString
()