Perforce Chronicle 2012.2/486814
API Documentation
|
Extends Zend_Uri to provide additional utility methods. More...
Static Public Member Functions | |
static | hasScheme ($uri) |
Determines if the given uri has a scheme component (e.g. | |
static | isRelativeUri ($uri) |
Determine if the given uri is relative. |
Extends Zend_Uri to provide additional utility methods.
static P4Cms_Uri::hasScheme | ( | $ | uri | ) | [static] |
Determines if the given uri has a scheme component (e.g.
http://).
string | $uri | the uri to examine. |
{ return (bool) preg_match("/^[a-zA-Z]+:\//", $uri); }
static P4Cms_Uri::isRelativeUri | ( | $ | uri | ) | [static] |
Determine if the given uri is relative.
string | $uri | the uri to examine. |
{ if (substr($uri, 0, 1) == "/") { return false; } if (static::hasScheme($uri)) { return false; } return true; }