eZ Publish  [trunk]
eZTemplateSectionIterator Class Reference

The iterator item in a section loop which works as a proxy. More...

List of all members.

Public Member Functions

 attribute ($name)
 attributes ()
 eZTemplateSectionIterator ()
 hasAttribute ($name)
 setIteratorValues ($item, $key, $index, $number, $sequence, &$last)
 setSequence ($sequence)
 templateValue ()

Detailed Description

The iterator item in a section loop which works as a proxy.

The iterator provides transparent access to iterator items. It will redirect all attribute calls to the iterator item with the exception of a few internal values. The internal values are

  • item - The actual item, provides backwards compatibility
  • key - The current key
  • index - The current index value (starts at 0 and increases with 1 for each element)
  • number - The current index value + 1 (starts at 1 and increases with 1 for each element)
  • sequence - The current sequence value
  • last - The last iterated element item

Definition at line 27 of file eztemplatesectioniterator.php.


Member Function Documentation

Returns:
the attribute value of either the internal attributes or from the item value if the attribute exists for it.

Definition at line 104 of file eztemplatesectioniterator.php.

Returns:
a merged list of attributes from both the internal attributes and the items attributes.

Definition at line 54 of file eztemplatesectioniterator.php.

Initializes the iterator with empty values.

Definition at line 32 of file eztemplatesectioniterator.php.

Returns:
true if the attribute $name exists either in the internal attributes or in the item value.

Definition at line 76 of file eztemplatesectioniterator.php.

eZTemplateSectionIterator::setIteratorValues ( item,
key,
index,
number,
sequence,
&$  last 
)

Updates the iterator with the current iteration values.

Definition at line 132 of file eztemplatesectioniterator.php.

Updates the current sequence value to $sequence.

Definition at line 145 of file eztemplatesectioniterator.php.

Returns:
the value of the current item for the template system to use.

Definition at line 45 of file eztemplatesectioniterator.php.


The documentation for this class was generated from the following file: