Overview

Packages

  • Lens
  • None

Classes

  • Horde_Lens_Iterator
  • Overview
  • Package
  • Class
  • Tree

Class Horde_Lens_Iterator

Horde_Lens_Iterator implements OuterIterator
Located at Horde/Lens/Iterator.php
Methods summary
public
# __construct( Iterator $i, mixed $d = null )

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.

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.

Parameters

$i
The iterator to decorate.
$d
public
# setLens( Horde_Lens_Interface $d )

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

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

public
# rewind( )

Rewind the inner iterator.

Rewind the inner iterator.

Implementation of

Iterator::rewind()
public
# next( )

Move to next element.

Move to next element.

Implementation of

Iterator::next()
public Whether
# valid( )

Returns

Whether
more elements are available.

Implementation of

Iterator::valid()
public The
# key( )

Returns

The
current key.

Implementation of

Iterator::key()
public The
# current( )

Returns

The
current value.

Implementation of

Iterator::current()
public Iterator
# getInnerIterator( )

Returns

Iterator
The inner iterator.

Implementation of

OuterIterator::getInnerIterator()
public
# __call( func $func, params $params )

Aggregate the inner iterator.

Aggregate the inner iterator.

Parameters

$func
of method to invoke.
$params
of parameters to pass to method.
API documentation generated by ApiGen