|
SPL-StandardPHPLibrary
|


Public Member Functions | |
| current () | |
| key () | |
| next () | |
| rewind () | |
| seek ($index) | |
| valid () | |
seekable iterator
Turns a normal iterator ino a seekable iterator. When there is a way to seek on an iterator LimitIterator can use this to efficiently rewind to offset.
Definition at line 21 of file seekableiterator.inc.
|
inherited |
Return the current element.
Implemented in SimpleXMLIterator, RecursiveDirectoryIterator, DirectoryIterator, ArrayIterator, SplFileObject, SplDoublyLinkedList, MultipleIterator, RegexIterator, CachingIterator, RecursiveIteratorIterator, RecursiveTreeIterator, FilterIterator, LimitIterator, DualIterator, CallbackFilterIterator, IteratorIterator, SubClasses, DbaReader, AppendIterator, SplObjectStorage, IniGroups, EmptyIterator, and DirectoryTreeIterator.
|
inherited |
Return the key of the current element.
Implemented in SimpleXMLIterator, RecursiveDirectoryIterator, DirectoryIterator, ArrayIterator, SplFileObject, MultipleIterator, SplDoublyLinkedList, CachingIterator, RecursiveTreeIterator, DualIterator, RegexIterator, DbaReader, LimitIterator, RecursiveIteratorIterator, FilterIterator, CallbackFilterIterator, AppendIterator, IteratorIterator, IniGroups, EmptyIterator, SplObjectStorage, and DirectoryFilterDots.
|
inherited |
Move forward to next element.
Implemented in SimpleXMLIterator, DirectoryIterator, ArrayIterator, SplFileObject, SplDoublyLinkedList, MultipleIterator, DualIterator, RecursiveIteratorIterator, LimitIterator, IteratorIterator, AppendIterator, SplObjectStorage, FilterIterator, CachingIterator, DbaReader, EmptyIterator, RecursiveCachingIterator, SearchIterator, and InfiniteIterator.
|
inherited |
Rewind the Iterator to the first element.
Implemented in SimpleXMLIterator, DirectoryIterator, ArrayIterator, SplFileObject, SplDoublyLinkedList, MultipleIterator, IteratorIterator, DualIterator, LimitIterator, RecursiveIteratorIterator, CachingIterator, AppendIterator, DbaReader, FilterIterator, RecursiveCachingIterator, RecursiveCompareDualIterator, SplObjectStorage, SearchIterator, EmptyIterator, and NoRewindIterator.
| SeekableIterator::seek | ( | $index | ) |
Seek to an absolute position.
| $index | position to seek to |
The method should throw an exception if it is not possible to seek to the given position. Typically this exception should be of type OutOfBoundsException.
Implemented in ArrayIterator, and SplFileObject.
|
inherited |
Check if there is a current element after calls to rewind() or next().
Implemented in SimpleXMLIterator, DirectoryIterator, ArrayIterator, SplFileObject, SplDoublyLinkedList, MultipleIterator, CachingIterator, DualIterator, LimitIterator, FilterIterator, DbaReader, RecursiveIteratorIterator, IteratorIterator, AppendIterator, SearchIterator, SplObjectStorage, and EmptyIterator.
1.8.5