PHP Dokumentation: Class filteriterator
12. Januar 2010 von werner
The FilterIterator class
Einführung
This abstract iterator filters out unwanted values. This class should be extended to implement custom iterator filters. The FilterIterator::accept() must be implemented in the subclass.
Klassenbeschreibung
FilterIterator
abstract FilterIterator extends IteratorIterator implements OuterIterator , Traversable , Iterator {
/* Methods */
__construct ( Iterator $iterator )
}
Inhaltsverzeichnis
- FilterIterator::accept ? Check whether the current element of the iterator is acceptable
- FilterIterator::__construct ? Construct a filterIterator
- FilterIterator::current ? Get the current element value
- FilterIterator::getInnerIterator ? Get the inner iterator
- FilterIterator::key ? Get the current key
- FilterIterator::next ? Move the iterator forward
- FilterIterator::rewind ? Rewind the iterator
- FilterIterator::valid ? Check whether the current element is valid