TeamSpeak 3 PHP Framework
Modern use-at-will framework that provides individual components to manage TeamSpeak 3 Server instances
|
Helper class for URI handling. More...
Public Member Functions | |
__construct ($uri) | |
The TeamSpeak3_Helper_Uri constructor. More... | |
checkFragment ($fragment=null) | |
Returns TRUE if the fragment string is valid. More... | |
checkHost ($host=null) | |
Returns TRUE if the host is valid. More... | |
checkPass ($password=null) | |
Returns TRUE if the password is valid. More... | |
checkPath ($path=null) | |
Returns TRUE if the path is valid. More... | |
checkPort ($port=null) | |
Returns TRUE if the port is valid. More... | |
checkQuery ($query=null) | |
Returns TRUE if the query string is valid. More... | |
checkUser ($username=null) | |
Returns TRUE if the username is valid. More... | |
getFragment ($default=null) | |
Returns the fragment. More... | |
getHost ($default=null) | |
Returns the host. More... | |
getPass ($default=null) | |
Returns the password. More... | |
getPath ($default=null) | |
Returns the path. More... | |
getPort ($default=null) | |
Returns the port. More... | |
getQuery ($default=array()) | |
Returns an array containing the query string elements. More... | |
getQueryVar ($key, $default=null) | |
Returns a single variable from the query string. More... | |
getScheme ($default=null) | |
Returns the scheme. More... | |
getUser ($default=null) | |
Returns the username. More... | |
hasFragment () | |
Returns TRUE if the URI has a fragment string. More... | |
hasHost () | |
Returns TRUE if the URI has a host. More... | |
hasPass () | |
Returns TRUE if the URI has a password. More... | |
hasPath () | |
Returns TRUE if the URI has a path. More... | |
hasPort () | |
Returns TRUE if the URI has a port. More... | |
hasQuery () | |
Returns TRUE if the URI has a query string. More... | |
hasQueryVar ($key) | |
Returns TRUE if the URI has a query variable. More... | |
hasScheme () | |
Returns TRUE if the URI has a scheme. More... | |
hasUser () | |
Returns TRUE if the URI has a username. More... | |
isValid () | |
Validate the current URI from the instance variables. More... | |
Static Public Member Functions | |
static | check ($uri) |
Returns TRUE if a given URI is valid. More... | |
static | getBaseUri () |
Returns the applications base address. More... | |
static | getFQDNParts ($hostname) |
Returns an array containing the three main parts of a FQDN (Fully Qualified Domain Name), including the top-level domain, the second-level domains or hostname and the third-level domain. More... | |
static | getHostParam ($key, $default=null) |
Returns a specified environment parameter from the $_SERVER array. More... | |
static | getHostUri () |
Returns the applications host address. More... | |
static | getSessParam ($key, $default=null) |
Returns a specified session parameter from the $_SESSION array. More... | |
static | getUserParam ($key, $default=null) |
Returns a specified instance parameter from the $_REQUEST array. More... | |
Protected Member Functions | |
parseUri ($uriString='') | |
Parses the scheme-specific portion of the URI and place its parts into instance variables. More... | |
Static Protected Member Functions | |
static | stripslashesRecursive ($var) |
Strips slashes from each element of an array using stripslashes(). More... | |
Helper class for URI handling.
__construct | ( | $uri | ) |
The TeamSpeak3_Helper_Uri constructor.
string | $uri |
TeamSpeak3_Helper_Exception |
|
static |
checkFragment | ( | $fragment = null | ) |
Returns TRUE if the fragment string is valid.
string | $fragment |
TeamSpeak3_Helper_Exception |
checkHost | ( | $host = null | ) |
checkPass | ( | $password = null | ) |
Returns TRUE if the password is valid.
string | $password |
TeamSpeak3_Helper_Exception |
checkPath | ( | $path = null | ) |
Returns TRUE if the path is valid.
string | $path |
TeamSpeak3_Helper_Exception |
checkPort | ( | $port = null | ) |
checkQuery | ( | $query = null | ) |
Returns TRUE if the query string is valid.
string | $query |
TeamSpeak3_Helper_Exception |
checkUser | ( | $username = null | ) |
Returns TRUE if the username is valid.
string | $username |
TeamSpeak3_Helper_Exception |
|
static |
|
static |
Returns an array containing the three main parts of a FQDN (Fully Qualified Domain Name), including the top-level domain, the second-level domains or hostname and the third-level domain.
string | $hostname |
getFragment | ( | $default = null | ) |
Returns the fragment.
mixed | default |
getHost | ( | $default = null | ) |
|
static |
|
static |
getPass | ( | $default = null | ) |
Returns the password.
mixed | default |
getPath | ( | $default = null | ) |
getPort | ( | $default = null | ) |
Returns the port.
mixed | default |
getQuery | ( | $default = array() | ) |
Returns an array containing the query string elements.
mixed | $default |
getQueryVar | ( | $key, | |
$default = null |
|||
) |
Returns a single variable from the query string.
string | $key | |
mixed | $default |
getScheme | ( | $default = null | ) |
Returns the scheme.
mixed | default |
|
static |
getUser | ( | $default = null | ) |
Returns the username.
mixed | default |
|
static |
hasFragment | ( | ) |
hasHost | ( | ) |
hasPass | ( | ) |
hasPath | ( | ) |
hasPort | ( | ) |
hasQuery | ( | ) |
hasQueryVar | ( | $key | ) |
Returns TRUE if the URI has a query variable.
hasScheme | ( | ) |
hasUser | ( | ) |
isValid | ( | ) |
Validate the current URI from the instance variables.
|
protected |
Parses the scheme-specific portion of the URI and place its parts into instance variables.
TeamSpeak3_Helper_Exception |
|
staticprotected |
Strips slashes from each element of an array using stripslashes().
mixed | $var |