php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
CachingIterator Class Reference
Inheritance diagram for CachingIterator:
IteratorIterator ArrayAccess Countable Stringable OuterIterator Iterator Traversable RecursiveCachingIterator

Public Member Functions

 __construct (Iterator $iterator, int $flags=CachingIterator::CALL_TOSTRING)
 
 rewind ()
 
 valid ()
 
 next ()
 
 hasNext ()
 
 __toString ()
 
 getFlags ()
 
 setFlags (int $flags)
 
 offsetGet ($key)
 
 offsetSet ($key, mixed $value)
 
 offsetUnset ($key)
 
 offsetExists ($key)
 
 getCache ()
 
 count ()
 
- Public Member Functions inherited from IteratorIterator
 __construct (Traversable $iterator, ?string $class=null)
 
 getInnerIterator ()
 
 key ()
 
 current ()
 
- Public Member Functions inherited from ArrayAccess
 offsetExists (mixed $offset)
 
 offsetGet (mixed $offset)
 
 offsetSet (mixed $offset, mixed $value)
 
 offsetUnset (mixed $offset)
 

Data Fields

const int CALL_TOSTRING = UNKNOWN
 
const int CATCH_GET_CHILD = UNKNOWN
 
const int TOSTRING_USE_KEY = UNKNOWN
 
const int TOSTRING_USE_CURRENT = UNKNOWN
 
const int TOSTRING_USE_INNER = UNKNOWN
 
const int FULL_CACHE = UNKNOWN
 

Detailed Description

Definition at line 210 of file spl_iterators.stub.php.

Constructor & Destructor Documentation

◆ __construct()

CachingIterator::__construct ( Iterator $iterator,
int $flags = CachingIterator::CALL_TOSTRING )

Reimplemented in RecursiveCachingIterator.

Definition at line 225 of file spl_iterators.stub.php.

Member Function Documentation

◆ __toString()

CachingIterator::__toString ( )

Implements Stringable.

Definition at line 239 of file spl_iterators.stub.php.

◆ count()

CachingIterator::count ( )

@tentative-return-type

Implements Countable.

Definition at line 275 of file spl_iterators.stub.php.

◆ getCache()

CachingIterator::getCache ( )

@tentative-return-type

Definition at line 272 of file spl_iterators.stub.php.

◆ getFlags()

CachingIterator::getFlags ( )

@tentative-return-type

Definition at line 242 of file spl_iterators.stub.php.

◆ hasNext()

CachingIterator::hasNext ( )

@tentative-return-type

Definition at line 237 of file spl_iterators.stub.php.

◆ next()

CachingIterator::next ( )

@tentative-return-type

Reimplemented from IteratorIterator.

Definition at line 234 of file spl_iterators.stub.php.

◆ offsetExists()

CachingIterator::offsetExists ( $key)
Parameters
string$key@tentative-return-type

Definition at line 269 of file spl_iterators.stub.php.

◆ offsetGet()

CachingIterator::offsetGet ( $key)
Parameters
string$key@tentative-return-type

Definition at line 251 of file spl_iterators.stub.php.

◆ offsetSet()

CachingIterator::offsetSet ( $key,
mixed $value )
Parameters
string$key@tentative-return-type

Definition at line 257 of file spl_iterators.stub.php.

◆ offsetUnset()

CachingIterator::offsetUnset ( $key)
Parameters
string$key@tentative-return-type

Definition at line 263 of file spl_iterators.stub.php.

◆ rewind()

CachingIterator::rewind ( )

@tentative-return-type

Reimplemented from IteratorIterator.

Definition at line 228 of file spl_iterators.stub.php.

◆ setFlags()

CachingIterator::setFlags ( int $flags)

@tentative-return-type

Definition at line 245 of file spl_iterators.stub.php.

◆ valid()

CachingIterator::valid ( )

@tentative-return-type

Reimplemented from IteratorIterator.

Definition at line 231 of file spl_iterators.stub.php.

Field Documentation

◆ CALL_TOSTRING

const int CachingIterator::CALL_TOSTRING = UNKNOWN

@cvalue CIT_CALL_TOSTRING

Definition at line 213 of file spl_iterators.stub.php.

◆ CATCH_GET_CHILD

const int CachingIterator::CATCH_GET_CHILD = UNKNOWN

@cvalue CIT_CATCH_GET_CHILD

Definition at line 215 of file spl_iterators.stub.php.

◆ FULL_CACHE

const int CachingIterator::FULL_CACHE = UNKNOWN

@cvalue CIT_FULL_CACHE

Definition at line 223 of file spl_iterators.stub.php.

◆ TOSTRING_USE_CURRENT

const int CachingIterator::TOSTRING_USE_CURRENT = UNKNOWN

@cvalue CIT_TOSTRING_USE_CURRENT

Definition at line 219 of file spl_iterators.stub.php.

◆ TOSTRING_USE_INNER

const int CachingIterator::TOSTRING_USE_INNER = UNKNOWN

@cvalue CIT_TOSTRING_USE_INNER

Definition at line 221 of file spl_iterators.stub.php.

◆ TOSTRING_USE_KEY

const int CachingIterator::TOSTRING_USE_KEY = UNKNOWN

@cvalue CIT_TOSTRING_USE_KEY

Definition at line 217 of file spl_iterators.stub.php.


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