Class NSmartCachingIterator
Smarter caching interator.
- IteratorIterator implements Iterator, Traversable, OuterIterator
-
CachingIterator implements ArrayAccess, Countable
-
NSmartCachingIterator
public
|
#
__construct(
$iterator
)
|
public
bool
|
#
isFirst(
int
$width = NULL
)
Is the current element the first one? Is the current element the first one? Parameters$width int grid width |
public
bool
|
#
isLast(
int
$width = NULL
)
Is the current element the last one? Is the current element the last one? Parameters$width int grid width |
public
bool
|
#
isEmpty(
)
Is the iterator empty? Is the iterator empty? |
public
bool
|
#
isOdd(
)
Is the counter odd? Is the counter odd? |
public
bool
|
#
isEven(
)
Is the counter even? Is the counter even? |
public
int
|
#
getCounter(
)
Returns the counter. Returns the counter. |
public
int
|
#
count(
)
Returns the count of elements. |
public
void
|
#
next(
)
Forwards to the next element. |
public
void
|
#
rewind(
)
Rewinds the Iterator. |
public
mixed
|
#
getNextKey(
)
Returns the next key. Returns the next key. |
public
mixed
|
#
getNextValue(
)
Returns the next element. Returns the next element. |
public
mixed
|
#
__call(
string
$name,
array
$args
)
Call to undefined method. Call to undefined method. Parameters$name string method name$args array argumentsThrows |
public
mixed
&
|
#
__get(
string
$name
)
Returns property value. Do not call directly. Returns property value. Do not call directly. Parameters$name string property nameReturnsmixed property value
Throws
MemberAccessException if the property is not defined.
|
public
void
|
#
__set(
string
$name,
mixed
$value
)
Sets value of a property. Do not call directly. Sets value of a property. Do not call directly. Parameters$name string property name$value mixed property valueThrows
MemberAccessException if the property is not defined or is read-only
|
public
bool
|
#
__isset(
string
$name
)
Is property defined? Is property defined? Parameters$name string property name |
public
void
|
#
__unset(
string
$name
)
Access to undeclared property. |
Methods Inherited From CachingIterator
__construct(), rewind(), valid(), key(), current(), next(), hasNext(), __toString(), getInnerIterator(), getFlags(), setFlags(), offsetGet(), offsetSet(), offsetUnset(), offsetExists(), getCache(), count()
Methods Inherited From IteratorIterator
Constants Inherited From CachingIterator
CALL_TOSTRING, CATCH_GET_CHILD, TOSTRING_USE_KEY, TOSTRING_USE_CURRENT, TOSTRING_USE_INNER, FULL_CACHE