« RecursiveArrayIterator::hasChildren
RecursiveCachingIterator::__construct »
PHP Manual
Iteradores
La clase RecursiveCachingIterator
La clase RecursiveCachingIterator
(PHP 5 >= 5.1.0, PHP 7)
Introducción
...
Sinopsis de la Clase
RecursiveCachingIterator
extends
CachingIterator
implements
Countable
,
ArrayAccess
,
OuterIterator
,
RecursiveIterator
{
/* Constantaes heredadas 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
;
/* Métodos */
public
__construct
(
Iterator
$iterator
[,
int
$flags
= self::CALL_TOSTRING
] )
public
getChildren
(
void
) :
RecursiveCachingIterator
public
hasChildren
(
void
) :
bool
/* Inherits */
public
CachingIterator::__construct
(
Iterator
$iterator
[,
int
$flags
= self::CALL_TOSTRING
] )
public
CachingIterator::count
(
void
) :
int
public
CachingIterator::current
(
void
) :
void
public
CachingIterator::getCache
(
void
) :
array
public
CachingIterator::getFlags
(
void
) :
int
public
CachingIterator::getInnerIterator
(
void
) :
Iterator
public
CachingIterator::hasNext
(
void
) :
void
public
CachingIterator::key
(
void
) :
scalar
public
CachingIterator::next
(
void
) :
void
public
CachingIterator::offsetExists
(
mixed
$index
) :
void
public
CachingIterator::offsetGet
(
string
$index
) :
void
public
CachingIterator::offsetSet
(
mixed
$index
,
mixed
$newval
) :
void
public
CachingIterator::offsetUnset
(
string
$index
) :
void
public
CachingIterator::rewind
(
void
) :
void
public
CachingIterator::setFlags
(
int
$flags
) :
void
public
CachingIterator::__toString
(
void
) :
void
public
CachingIterator::valid
(
void
) :
void
}
Tabla de contenidos
RecursiveCachingIterator::__construct
— Construct
RecursiveCachingIterator::getChildren
— Devuelve los iteradores internos hijos como un RecursiveCachingIterator
RecursiveCachingIterator::hasChildren
— Comprueba si el elemento actual de un iterador interno tiene hijos