eZ Publish  [4.2]
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 50 of file eztemplatesectioniterator.php.


Member Function Documentation

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

Definition at line 121 of file eztemplatesectioniterator.php.

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

Definition at line 78 of file eztemplatesectioniterator.php.

eZTemplateSectionIterator::eZTemplateSectionIterator ( )

Initializes the iterator with empty values.

Definition at line 55 of file eztemplatesectioniterator.php.

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

Definition at line 100 of file eztemplatesectioniterator.php.

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

Updates the iterator with the current iteration values.

Definition at line 144 of file eztemplatesectioniterator.php.

eZTemplateSectionIterator::setSequence ( sequence)

Updates the current sequence value to $sequence.

Definition at line 157 of file eztemplatesectioniterator.php.

eZTemplateSectionIterator::templateValue ( )
Returns:
the value of the current item for the template system to use.

Definition at line 69 of file eztemplatesectioniterator.php.


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