rex_sortable_iterator
in package
implements
IteratorAggregate
Sortable iterator.
Tags
Table of Contents
Interfaces
- IteratorAggregate
Constants
Methods
- __construct() : mixed
- getIterator() : mixed
Constants
KEYS
public
mixed
KEYS
= 2
VALUES
public
mixed
VALUES
= 1
Methods
__construct()
public
__construct(Traversable<TKey, TValue> $iterator[, self::VALUES|self::KEYS|callable(mixed, mixed): int $sort = self::VALUES ]) : mixed
Parameters
- $iterator : Traversable<TKey, TValue>
-
Inner iterator
- $sort : self::VALUES|self::KEYS|callable(mixed, mixed): int = self::VALUES
-
Sort mode, possible values are rex_sortable_iterator::VALUES (default), rex_sortable_iterator::KEYS or a callable
getIterator()
public
getIterator() : mixed