PHP Class phpstreams\operations\SortedOperation

This class yields its values sorted. Sort is done using the default asort() function, or uasort if a sorting function was given. Note that by the nature of sorting things, the entire previous source will be read into memory in order to sort it. This may be a performance issue.
Author: Bert Peters ([email protected])
Inheritance: extends phpstreams\Stream
Datei anzeigen Open project: bertptrs/phpstreams

Public Methods

Method Description
__construct ( $source, callable $sort = null )
getIterator ( )
isSorted ( )

Method Details

__construct() public method

public __construct ( $source, callable $sort = null )
$sort callable

getIterator() public method

public getIterator ( )

isSorted() public method

public isSorted ( )