Documentation

rex_sortable_iterator
in package
implements IteratorAggregate

Sortable iterator.

Tags
author

gharlan

template

TKey of array-key

template

TValue

implements

IteratorAggregate<TKey, TValue>

Table of Contents

Interfaces

IteratorAggregate

Constants

KEYS  = 2
VALUES  = 1

Methods

__construct()  : mixed
getIterator()  : mixed

Constants

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


        
On this page

Search results