Creates an iterator from another iterator that will verify a condition on each step. If the condition evaluates to false, the iterator will not yield more results.
Creates an iterator that returns elements grouped in pairs
An iterator that can be used as an argument for other iterators that require a RecursiveIterator but do not want children. This iterator will always behave as having no nested items.
Creates an iterator from another iterator that will keep the results of the inner iterator in memory, so that results don't have to be re-calculated.
Creates a filtered iterator from another iterator. The filtering is done by passing a callback function to each of the elements and taking them out if it does not return true.
An iterator that can be used to generate nested iterators out of a collection of items by applying an function to each of the elements in this iterator.
Creates an iterator from another iterator that extract the requested column or property based on a path
A Recursive iterator used to flatten nested structures and also exposes all Collection methods
A type of collection that is aware of nested items and exposes methods to check or retrieve them
Creates an iterator from another iterator that will modify each of the values by converting them using a callback function.
This iterator will insert values into a property of each of the records returned.
Implements a simplistic version of the popular Map-Reduce algorithm. Acts like an iterator for the original passed data after each result has been processed, thus offering a transparent wrapper for results coming from any source.
Iterator for flattening elements in a tree structure while adding some visual markers for their relative position in the tree
An iterator that will return the passed items in order. The order is given by the value returned in a callback function that maps each of the elements.
© 2005–present The Cake Software Foundation, Inc.
Licensed under the MIT License.
CakePHP is a registered trademark of Cake Software Foundation, Inc.
We are not endorsed by or affiliated with CakePHP.
https://api.cakephp.org/4.1/namespace-Cake.Collection.Iterator.html