Semantic MediaWiki and related extensions
Public Member Functions | List of all members
SMW\Iterators\MappingIterator Class Reference
Inheritance diagram for SMW\Iterators\MappingIterator:
Inheritance graph
[legend]
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

◆ __construct()

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

Member Function Documentation

◆ count()

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

◆ current()

SMW\Iterators\MappingIterator::current ( )
Since
2.5

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

About | General disclaimer | Privacy policy