[ Index ]
 

Code source de Symfony 1.0.0

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/lib/view/escaper/ -> sfOutputEscaperIteratorDecorator.class.php (sommaire)

(pas de description)

Poids: 170 lignes (5 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

sfOutputEscaperIteratorDecorator:: (11 méthodes):
  __construct()
  rewind()
  current()
  key()
  next()
  valid()
  offsetExists()
  offsetGet()
  offsetSet()
  offsetUnset()
  count()


Classe: sfOutputEscaperIteratorDecorator  - X-Ref

Output escaping iterator decorator.

This takes an object that implements the Traversable interface and turns it
into an iterator with each value escaped.

Note: Prior to PHP 5.1, the IteratorIterator class was not implemented in the
core of PHP. This means that although it will still work with classes that
implement Iterator or IteratorAggregate, internal PHP classes that only
implement the Traversable interface will cause the constructor to throw an
exception.

__construct($escapingMethod, Traversable $value)   X-Ref
Constructs a new escaping iteratoror using the escaping method and value supplied.

param: string The escaping method to use
param: Traversable The iterator to escape

rewind()   X-Ref
Resets the iterator (as required by the Iterator interface).

return: boolean true, if the iterator rewinds successfully otherwise false

current()   X-Ref
Escapes and gets the current element (as required by the Iterator interface).

return: mixed The escaped value

key()   X-Ref
Gets the current key (as required by the Iterator interface).

return: string Iterator key

next()   X-Ref
Moves to the next element in the iterator (as required by the Iterator interface).


valid()   X-Ref
Returns whether the current element is valid or not (as required by the
Iterator interface).

return: boolean true if the current element is valid; false otherwise

offsetExists($offset)   X-Ref
Returns true if the supplied offset is set in the array (as required by
the ArrayAccess interface).

param: string The offset of the value to check existance of
return: boolean true if the offset exists; false otherwise

offsetGet($offset)   X-Ref
Returns the element associated with the offset supplied (as required by the ArrayAccess interface).

param: string The offset of the value to get
return: mixed The escaped value

offsetSet($offset, $value)   X-Ref
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.

param: string (ignored)
param: string (ignored)

offsetUnset($offset)   X-Ref
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.

param: string (ignored)

count()   X-Ref
Returns the size of the array (are required by the Countable interface).

return: int The size of the array



Généré le : Fri Mar 16 22:42:14 2007 par Balluche grâce à PHPXref 0.7