Class Horde_Lens_Iterator

Description

Implements interfaces:

  • OuterIterator (internal interface)

Located in /Lens/lib/Horde/Lens/Iterator.php (line 14)


	
			
Variable Summary
Method Summary
 Horde_Lens_Iterator __construct ( $i, [ $d = null])
 The current ()
 Iterator getInnerIterator ()
 The key ()
 void next ()
 void rewind ()
 Whether valid ()
 void __call (func $func, params $params)
Variables
Horde_Lens_Interface $_d (line 26)

The Decorator that will observe each element of the iterator.

  • access: protected
Methods
Constructor __construct (line 37)

Constructs a decorator around an iterator using a single

Horde_Lens_Interface object, which decorates the current() element of the iterator. The decorator is like a lens, decotrating one element at a time, instead of having a decorator for every element in the list.

  • access: public
Horde_Lens_Iterator __construct ( $i, [ $d = null])
  • Iterator $i: The iterator to decorate.
  • $d
current (line 92)
  • return: current value.
The current ()

Implementation of:
OuterIterator::current
getInnerIterator (line 100)
  • return: The inner iterator.
Iterator getInnerIterator ()

Implementation of:
OuterIterator::getInnerIterator
key (line 84)
  • return: current key.
The key ()

Implementation of:
OuterIterator::key
next (line 68)

Move to next element.

void next ()

Implementation of:
OuterIterator::next
rewind (line 58)

Rewind the inner iterator.

void rewind ()

Implementation of:
OuterIterator::rewind
setLens (line 49)

Set or change the Lens modifying the inner iterator. Sets the current object of the lens automatically and returns the lens.

  • access: public
void setLens (Horde_Lens_Interface $d)
valid (line 76)
  • return: more elements are available.
Whether valid ()

Implementation of:
OuterIterator::valid
__call (line 111)

Aggregate the inner iterator.

void __call (func $func, params $params)
  • func $func: Name of method to invoke.
  • params $params: Array of parameters to pass to method.

Documentation generated on Sun, 30 Jan 2011 05:18:38 +0000 by phpDocumentor 1.4.3