CachingIterator
class CachingIterator extends CachingIterator implements Countable
internal |
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 counter as string
Returns the count of elements.
Forwards to the next element.
Rewinds the Iterator.
Returns the next key.
Returns the next element.
Returns property value.
Is property defined?
Details
at line 36
__construct($iterator)
No description
at line 61
bool
isFirst(int $width = null)
Is the current element the first one?
at line 70
bool
isLast(int $width = null)
Is the current element the last one?
at line 79
bool
isEmpty()
Is the iterator empty?
at line 88
bool
isOdd()
Is the counter odd?
at line 97
bool
isEven()
Is the counter even?
at line 106
int
getCounter()
Returns the counter.
at line 115
string
__toString()
Returns the counter as string
at line 124
int
count()
Returns the count of elements.
at line 139
void
next()
Forwards to the next element.
at line 151
void
rewind()
Rewinds the Iterator.
at line 162
mixed
getNextKey()
Returns the next key.
at line 172
mixed
getNextValue()
Returns the next element.
at line 185
__get($name)
Returns property value.
at line 198
bool
__isset($name)
Is property defined?
Traits
Better OOP experience.