CachingIterator
class CachingIterator extends CachingIterator implements Countable
Smarter caching iterator.
Properties
bool read-only | $first | ||
bool read-only | $last | ||
bool read-only | $empty | ||
bool read-only | $odd | ||
bool read-only | $even | ||
int read-only | $counter | ||
mixed read-only | $nextKey | ||
mixed read-only | $nextValue |
Methods
No description
Is the current element the first one?
Is the current element the last one?
Is the iterator empty?
Is the counter odd?
Is the counter even?
Returns the counter.
Returns the count of elements.
Forwards to the next element.
Rewinds the Iterator.
Returns the next key.
Returns the next element.
Call to undefined method.
Returns property value. Do not call directly.
Sets value of a property. Do not call directly.
Is property defined?
Access to undeclared property.
Details
at line 32
__construct($iterator)
No description
at line 59
bool
isFirst($width = NULL)
Is the current element the first one?
at line 70
bool
isLast($width = NULL)
Is the current element the last one?
at line 80
bool
isEmpty()
Is the iterator empty?
at line 90
bool
isOdd()
Is the counter odd?
at line 100
bool
isEven()
Is the counter even?
at line 110
int
getCounter()
Returns the counter.
at line 120
int
count()
Returns the count of elements.
at line 136
void
next()
Forwards to the next element.
at line 149
void
rewind()
Rewinds the Iterator.
at line 160
mixed
getNextKey()
Returns the next key.
at line 170
mixed
getNextValue()
Returns the next element.
at line 186
mixed
__call($name, $args)
Call to undefined method.
at line 198
mixed
__get($name)
Returns property value. Do not call directly.
at line 211
void
__set($name, $value)
Sets value of a property. Do not call directly.
at line 222
bool
__isset($name)
Is property defined?
at line 234
void
__unset($name)
Access to undeclared property.