symfony API

sfOutputEscaperArrayDecorator Class

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to API menu

1.0 API OpenSearch

Packages

You are currently browsing the symfony API for the 1.0 version. Switch to:
This version of symfony is not maintained anymore.
If some of your projects still use this version, consider upgrading as soon as possible.

Output escaping decorator class for arrays.

Inheritence

sfOutputEscaperArrayDecorator  <  sfOutputEscaperGetterDecorator < sfOutputEscaper

Method Summary

  • int count()
    Returns the size of the array (are required by the Countable interface).
  • mixed current()
    Escapes and return the current value (as required by the Iterator interface).
  • mixed getRaw()
    Returns the (unescaped) value from the array associated with the key supplied.
  • string key()
    Get the key associated with the current value (as required by the Iterator interface).
  • next()
    Moves to the next element (as required by the Iterator interface).
  • boolean offsetExists()
    Returns true if the supplied offset is set in the array (as required by the ArrayAccess interface).
  • mixed offsetGet()
    Returns the element associated with the offset supplied (as required by the ArrayAccess interface).
  • offsetSet(, )
    Throws an exception saying that values cannot be set (this method is
  • offsetUnset()
    Throws an exception saying that values cannot be unset (this method is
  • rewind()
    Reset the array to the beginning (as required for the Iterator interface).
  • boolean valid()
    Returns true if the current element is valid (as required by the Iterator interface).

Methods inherited from sfOutputEscaperGetterDecorator

get , getRaw

Methods inherited from sfOutputEscaper

escape , getRawValue , __construct , __get

Method Details

  • (int) count () Browse code

    Returns the size of the array (are required by the Countable interface).

    returns The size of the array

  • (mixed) current () Browse code

    Escapes and return the current value (as required by the Iterator interface).


    This escapes the value using {@link sfOutputEscaper::escape()} with
    whatever escaping method is set for this instance.

    returns The escaped value

  • (mixed) getRaw () Browse code

    Returns the (unescaped) value from the array associated with the key supplied.

    returns The value

  • (string) key () Browse code

    Get the key associated with the current value (as required by the Iterator interface).

    returns The key

  • next () Browse code

    Moves to the next element (as required by the Iterator interface).

  • (boolean) offsetExists () Browse code

    Returns true if the supplied offset is set in the array (as required by the ArrayAccess interface).

    returns true if the offset exists; false otherwise

  • (mixed) offsetGet () Browse code

    Returns the element associated with the offset supplied (as required by the ArrayAccess interface).

    returns The escaped value

  • offsetSet (, ) Browse code

    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

  • offsetUnset () Browse code

    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

  • rewind () Browse code

    Reset the array to the beginning (as required for the Iterator interface).

  • (boolean) valid () Browse code

    Returns true if the current element is valid (as required by the Iterator interface).


    The current element will not be valid if {@link next()} has fallen off the
    end of the array or if there are no elements in the array and {@link
    rewind()} was called.

    returns The validity of the current element; true if it is valid