« ArrayIterator::valid
CachingIterator::__construct »
PHP Manual
Iteradores
A classe CachingIterator
A classe CachingIterator
Introdução
...
Sinopse da classe
CachingIterator
extends
IteratorIterator
implements
OuterIterator
,
Traversable
,
Iterator
,
ArrayAccess
,
Countable
{
/* Métodos */
public
__construct
(
Iterator
$iterator
[,
int
$flags
= self::CALL_TOSTRING
] )
public
count
( ) :
int
public
current
( ) :
mixed
public
getCache
( ) :
array
public
getFlags
( ) :
int
public
getInnerIterator
( ) :
Iterator
hasNext
( ) :
bool
public
key
( ) :
scalar
next
( ) :
void
public
offsetExists
(
mixed
$index
) :
void
public
offsetGet
(
string
$index
) :
void
public
offsetSet
(
mixed
$index
,
mixed
$newval
) :
void
public
offsetUnset
(
string
$index
) :
void
rewind
( ) :
void
public
setFlags
(
int
$flags
) :
void
__toString
( ) :
string
valid
( ) :
bool
}
Índice
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
— Retrieve the contents of the cache
CachingIterator::getFlags
— Get flags used
CachingIterator::getInnerIterator
— Returns the inner iterator
CachingIterator::hasNext
— Verifica se o iterador interno tem ou não um próximo elemento válido
CachingIterator::key
— Return the key for the current element
CachingIterator::next
— Avança o iterador
CachingIterator::offsetExists
— The offsetExists purpose
CachingIterator::offsetGet
— The offsetGet purpose
CachingIterator::offsetSet
— The offsetSet purpose
CachingIterator::offsetUnset
— The offsetUnset purpose
CachingIterator::rewind
— Recomeça o iterador
CachingIterator::setFlags
— The setFlags purpose
CachingIterator::__toString
— Retorna a representação como string do elemento atual
CachingIterator::valid
— Verifica se o elemento atual é válido ou não