Class CachingIterator
Smarter caching iterator.
-
IteratorIterator
implements
Iterator,
Traversable,
OuterIterator
-
CachingIterator
implements
ArrayAccess,
Countable
-
Latte\Runtime\CachingIterator
implements
Countable
Methods summary
public
|
|
public
boolean
|
#
isFirst( integer $width = NULL )
Is the current element the first one?
Is the current element the first one?
Parameters
Returns
boolean
|
public
boolean
|
#
isLast( integer $width = NULL )
Is the current element the last one?
Is the current element the last one?
Parameters
Returns
boolean
|
public
boolean
|
#
isEmpty( )
Is the iterator empty?
Returns
boolean
|
public
boolean
|
#
isOdd( )
Is the counter odd?
Returns
boolean
|
public
boolean
|
#
isEven( )
Is the counter even?
Returns
boolean
|
public
integer
|
|
public
integer
|
#
count( )
Returns the count of elements.
Returns the count of elements.
Returns
integer
Overrides
Implementation of
|
public
|
#
next( )
Forwards to the next element.
Forwards to the next element.
Overrides
|
public
|
#
rewind( )
Rewinds the Iterator.
Overrides
|
public
mixed
|
|
public
mixed
|
#
getNextValue( )
Returns the next element.
Returns the next element.
Returns
mixed
|
public
|
#
__call( $name, $args )
Call to undefined method.
Call to undefined method.
Throws
|
public
&
|
#
__get( $name )
Returns property value.
Throws
|
public
|
#
__set( $name, $value )
Access to undeclared property.
Access to undeclared property.
Throws
|
public
boolean
|
#
__isset( $name )
Is property defined?
Returns
boolean
|
public
|
#
__unset( $name )
Access to undeclared property.
Access to undeclared property.
Throws
|
Methods inherited from CachingIterator
__toString(),
current(),
getCache(),
getFlags(),
getInnerIterator(),
hasNext(),
key(),
offsetExists(),
offsetGet(),
offsetSet(),
offsetUnset(),
setFlags(),
valid()
|