Class EasyRdf_ParsedUri

Description

A RFC3986 compliant URI parser

Located in /EasyRdf/ParsedUri.php (line 48)


	
			
Class Constant Summary
URI_REGEX = "|^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?|"
Method Summary
object EasyRdf_ParsedUri __construct ([ $uri = NULL], string $uristr)
string getAuthority ()
string getFragment ()
string getPath ()
string getQuery ()
string getScheme ()
boolean isAbsolute ()
boolean isRelative ()
void resolve ( $relUri)
void setAuthority (string $authority)
void setFragment (string $fragment)
void setPath (string $path)
void setQuery (string $query)
void setScheme (string $scheme)
string toString ()
string __toString ()
Methods
Constructor __construct (line 66)

Constructor for creating a new parsed URI

  • access: public
object EasyRdf_ParsedUri __construct ([ $uri = NULL], string $uristr)
  • string $uristr: The URI as a string
  • $uri
getAuthority (line 129)

Returns the authority of the URI (e.g. www.example.com:8080)

  • access: public
string getAuthority ()
getFragment (line 177)

Returns the fragment part of the URI (i.e. after the #)

  • access: public
string getFragment ()
getPath (line 145)

Returns the path of the URI (e.g. /foo/bar)

  • access: public
string getPath ()
getQuery (line 161)

Returns the query string part of the URI (e.g. foo=bar)

  • access: public
string getQuery ()
getScheme (line 113)

Returns the scheme of the URI (e.g. http)

  • access: public
string getScheme ()
isAbsolute (line 97)

Returns true if this is an absolute (complete) URI

  • access: public
boolean isAbsolute ()
isRelative (line 105)

Returns true if this is an relative (partial) URI

  • access: public
boolean isRelative ()
normalise (line 199)

Normalises the path of this URI if it has one. Normalising a path means

that any unnecessary '.' and '..' segments are removed. For example, the URI http://example.com/a/b/../c/./d would be normalised to http://example.com/a/c/d

  • access: public
resolve (line 249)

Resolves a relative URI using this URI as the base URI.

  • access: public
void resolve ( $relUri)
  • $relUri
setAuthority (line 137)

Sets the authority of the URI (e.g. www.example.com:8080)

  • access: public
void setAuthority (string $authority)
  • string $authority: The new value for the authority component of the URI
setFragment (line 185)

Set the fragment of the URI (i.e. after the #)

  • access: public
void setFragment (string $fragment)
  • string $fragment: The new value for the fragment component of the URI
setPath (line 153)

Set the path of the URI (e.g. /foo/bar)

  • access: public
void setPath (string $path)
  • string $path: The new value for the path component of the URI
setQuery (line 169)

Set the query string of the URI (e.g. foo=bar)

  • access: public
void setQuery (string $query)
  • string $query: The new value for the query string component of the URI
setScheme (line 121)

Sets the scheme of the URI (e.g. http)

  • access: public
void setScheme (string $scheme)
  • string $scheme: The new value for the scheme of the URI
toString (line 308)

Convert the parsed URI back into a string

  • return: The URI as a string
  • access: public
string toString ()
__toString (line 327)

Magic method to convert the URI, when casted, back to a string

  • return: The URI as a string
  • access: public
string __toString ()
Class Constants
URI_REGEX = "|^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?|" (line 59)

Documentation generated on Wed, 16 Jan 2013 19:16:38 +0000 by phpDocumentor 1.4.4