RecursiveArrayIterator::hasChildren
RecursiveCachingIterator::__construct
Iterators
PHP Manual
The RecursiveCachingIterator class
(PHP 5 >= 5.1.0, PHP 7)
Introduction
...
Class synopsis
RecursiveCachingIterator
extends
CachingIterator
implements
Countable
,
ArrayAccess
,
OuterIterator
,
RecursiveIterator
{
/* Inherited 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 */
public
__construct
(
Iterator
$iterator
[,
int
$flags
= self::CALL_TOSTRING
] )
public
RecursiveCachingIterator
getChildren
(
void
)
public
bool
hasChildren
(
void
)
/* Inherits */
public
CachingIterator::__construct
(
Iterator
$iterator
[,
int
$flags
= self::CALL_TOSTRING
] )
public
int
CachingIterator::count
(
void
)
public
void
CachingIterator::current
(
void
)
public
array
CachingIterator::getCache
(
void
)
public
int
CachingIterator::getFlags
(
void
)
public
Iterator
CachingIterator::getInnerIterator
(
void
)
public
void
CachingIterator::hasNext
(
void
)
public
scalar
CachingIterator::key
(
void
)
public
void
CachingIterator::next
(
void
)
public
void
CachingIterator::offsetExists
(
mixed
$index
)
public
void
CachingIterator::offsetGet
(
string
$index
)
public
void
CachingIterator::offsetSet
(
mixed
$index
,
mixed
$newval
)
public
void
CachingIterator::offsetUnset
(
string
$index
)
public
void
CachingIterator::rewind
(
void
)
public
void
CachingIterator::setFlags
(
int
$flags
)
public
void
CachingIterator::__toString
(
void
)
public
void
CachingIterator::valid
(
void
)
}
Table of Contents
RecursiveCachingIterator::__construct
— Construct
RecursiveCachingIterator::getChildren
— Return the inner iterator's children as a RecursiveCachingIterator
RecursiveCachingIterator::hasChildren
— Check whether the current element of the inner iterator has children
RecursiveArrayIterator::hasChildren
RecursiveCachingIterator::__construct
Iterators
PHP Manual