Provides access to the HTTP uri.
More...
List of all members.
Detailed Description
Provides access to the HTTP uri.
The URI can be accessed one element at a time with elements().
This class also supports the attribute system.
- Note:
-
The index starts at 0
Definition at line ezuri.php.
Constructor & Destructor Documentation
Member Function Documentation
& eZURI::attribute |
( |
$ |
attr |
) |
|
|
|
- Returns:
-
the value for attribute $attr or null if it does not exist.
Definition at line ezuri.php.
References uriString(). |
|
- Returns:
-
the attributes for this object.
Definition at line ezuri.php.
References index(). |
eZURI::base |
( |
$ |
as_text = true |
) |
|
|
|
- Returns:
-
the base string or the base elements as an array if $as_text is true.
- See also:
-
elements
Definition at line ezuri.php.
References elements().
Referenced by hasAttribute(). |
|
Removes all elements below the current index, recreates the URI string and sets index to 0.
Definition at line ezuri.php.
References URIArray. |
eZURI::element |
( |
$ |
index = 0, |
|
|
$ |
relative = true |
|
) |
|
|
eZURI::elements |
( |
$ |
as_text = true |
) |
|
|
|
- Returns:
-
all elements as a string, this is all elements after the current index. If $as_text is false the returned item is an array.
Definition at line ezuri.php.
References elements().
Referenced by elements(). |
eZURI::hasAttribute |
( |
$ |
attr |
) |
|
|
|
- Returns:
-
true if the attribute $attr exist.
Definition at line ezuri.php.
References index(). |
eZURI::increase |
( |
$ |
num = 1 |
) |
|
|
|
Moves the index 1 step up or $num if specified.
Definition at line ezuri.php.
References Index. |
& eZURI::instance |
( |
$ |
uri = false |
) |
|
|
|
- Returns:
-
true if the URI is empty, ie it's equal to / or empty string.
Definition at line ezuri.php.
References URI. |
eZURI::matchBase |
( |
&$ |
uri |
) |
|
|
|
Tries to match the base of $uri against this base and returns the result. A match is made if all elements of this object match the base elements of the $uri object, this means that $uri's base may be longer than this base but not shorter. - Note:
-
$uri must be a ezuri object
Definition at line ezuri.php.
References URIArray. |
eZURI::setURIString |
( |
$ |
uri |
) |
|
|
|
Sets the current URI string to $uri, the URI is then split into array elements and index reset to 1.
Definition at line ezuri.php.
References URIArray.
Referenced by eZURI(). |
|
Moves the index to the beginning.
Definition at line ezuri.php.
References Index. |
|
Moves the index to the end.
Definition at line ezuri.php.
References Index. |
eZURI::uriString |
( |
$ |
withLeadingSlash = false |
) |
|
|
|
- Returns:
-
the URI passed as to the object.
- Note:
-
the URI will not include the leading
/ if $withLeadingSlash is true .
Definition at line ezuri.php.
References URI.
Referenced by attribute(). |
The documentation for this class was generated from the following file:
|