Semantic MediaWiki and related extensions
Public Member Functions | List of all members
SMW\Iterators\MappingIterator Class Reference
Collaboration diagram for SMW\Iterators\MappingIterator:
Collaboration graph
[legend]

Public Member Functions

 __construct ($iterable, callable $callback)
 
 count ()
 
 current ()
 

Detailed Description

This iterator is expected to be called in combination with another iterator (or traversable/array) in order to apply a mapping on the returned current element during an iterative (foreach etc.) process.

GNU GPL v2+

Since
2.5
Author
mwjames

Constructor & Destructor Documentation

SMW\Iterators\MappingIterator::__construct (   $iterable,
callable  $callback 
)
Since
2.5
Parameters
Iterator | array$iterable
callable$callback

Member Function Documentation

SMW\Iterators\MappingIterator::count ( )
See also
Countable::count
Since
2.5
SMW\Iterators\MappingIterator::current ( )
Since
2.5

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