ArrayIterator::valid
CachingIterator::__construct
Iterators
PHP Manual

# The CachingIterator class

## Introduction

This object supports cached iteration over another iterator.

## Class synopsis

CachingIterator
CachingIterator extends IteratorIterator implements OuterIterator , Traversable , Iterator , ArrayAccess , Countable {
/* Constants */
const integer CachingIterator::CALL_TOSTRING =1 ;
const integer CachingIterator::CATCH_GET_CHILD =16 ;
const integer CachingIterator::TOSTRING_USE_KEY =2 ;
const integer CachingIterator::TOSTRING_USE_CURRENT =4 ;
const integer CachingIterator::TOSTRING_USE_INNER =8 ;
const integer CachingIterator::FULL_CACHE =256 ;
/* Methods */
CachingIterator::__construct ( Iterator `$iterator` [, string `$flags` ] )
public void CachingIterator::count ( void )
public void CachingIterator::current ( void )
public void CachingIterator::getCache ( void )
public void CachingIterator::getFlags ( void )
public void CachingIterator::getInnerIterator ( void )
public void CachingIterator::hasNext ( void )
public void CachingIterator::key ( void )
public void CachingIterator::next ( void )
public void CachingIterator::offsetExists ( string `$index` )
public void CachingIterator::offsetGet ( string `$index` )
public void CachingIterator::offsetSet ( string `$index` , string `$newval` )
public void CachingIterator::offsetUnset ( string `$index` )
public void CachingIterator::rewind ( void )
public void CachingIterator::setFlags ( bitmask `$flags` )
public void CachingIterator::__toString ( void )
public void CachingIterator::valid ( void )
}

## Predefined Constants

## CachingIterator Node Types

`CachingIterator::CALL_TOSTRING`

  Description here...

`CachingIterator::CATCH_GET_CHILD`

  Description here...

`CachingIterator::TOSTRING_USE_KEY`

  Description here...

`CachingIterator::TOSTRING_USE_CURRENT`

  Description here...

`CachingIterator::TOSTRING_USE_INNER`

  Description here...

`CachingIterator::FULL_CACHE`

  Cache all read data.

## Table of Contents

- CachingIterator::__construct — Construct a new CachingIterator object for the iterator.
- CachingIterator::count — The number of elements in the iterator
- CachingIterator::current — Return the current element
- CachingIterator::getCache — The getCache purpose
- CachingIterator::getFlags — Get flags used
- CachingIterator::getInnerIterator — Return the innter iterator
- CachingIterator::hasNext — Check whether the inner iterator has a valid next element
- CachingIterator::key — Return the key for the current element
- CachingIterator::next — Move the iterator forward
- CachingIterator::offsetExists — The offsetExists purpose
- CachingIterator::offsetGet — The offsetGet purpose
- CachingIterator::offsetSet — The offsetSet purpose
- CachingIterator::offsetUnset — The offsetUnset purpose
- CachingIterator::rewind — Rewind the iterator
- CachingIterator::setFlags — The setFlags purpose
- CachingIterator::__toString — Return the string representation of the current element
- CachingIterator::valid — Check whether the current element is valid

ArrayIterator::valid
CachingIterator::__construct
Iterators
PHP Manual