-
Returns the size of the array (are required by the Countable interface).
returns The size of the array
-
Escapes and gets the current element (as required by the Iterator interface).
returns The escaped value
-
Gets the current key (as required by the Iterator interface).
returns Iterator key
-
Moves to the next element in the iterator (as required by the Iterator interface).
-
(bool) offsetExists ($offset)
Browse code
| $offset |
The offset of the value to check existance of |
Returns true if the supplied offset isset in the array (as required by the ArrayAccess interface).
returns true if the offset isset; false otherwise
-
(mixed) offsetGet ($offset)
Browse code
| $offset |
The offset of the value to get |
Returns the element associated with the offset supplied (as required by the ArrayAccess interface).
returns The escaped value
-
offsetSet ($offset, $value)
Browse code
| $offset |
(ignored) |
| $value |
(ignored) |
Throws an exception saying that values cannot be set (this method is
required for the ArrayAccess interface).
This (and the other sfOutputEscaper classes) are designed to be read only
so this is an illegal operation.
throws sfException
-
Throws an exception saying that values cannot be unset (this method is
required for the ArrayAccess interface).
This (and the other sfOutputEscaper classes) are designed to be read only
so this is an illegal operation.
throws sfException
-
Resets the iterator (as required by the Iterator interface).
returns true, if the iterator rewinds successfully otherwise false
-
Returns whether the current element is valid or not (as required by the
Iterator interface).
returns true if the current element is valid; false otherwise
-
__construct ($escapingMethod, $value)
Browse code
| $escapingMethod |
The escaping method to use |
| $value |
The iterator to escape |
Constructs a new escaping iteratoror using the escaping method and value supplied.