$_key
$_key : callable
A callable to generate the iteration key
Iterator for flattening elements in a tree structure while adding some visual markers for their relative position in the tree
filter(callable $c = null) : \Cake\Collection\Iterator\FilterIterator
{@inheritDoc}
| callable | $c |
reject(callable $c) : \Cake\Collection\Iterator\FilterIterator
{@inheritDoc}
| callable | $c |
map(callable $c) : \Cake\Collection\Iterator\ReplaceIterator
{@inheritDoc}
| callable | $c |
insert( $path, $values) : \Cake\Collection\Iterator\InsertIterator
{@inheritDoc}
| $path | ||
| $values |
buffered() : \Cake\Collection\Iterator\BufferedIterator
{@inheritDoc}
listNested( $dir = 'desc', $nestingKey = 'children') : \Cake\Collection\Iterator\TreeIterator
{@inheritDoc}
| $dir | ||
| $nestingKey |
stopWhen( $condition) : \Cake\Collection\Iterator\StoppableIterator
{@inheritDoc}
| $condition |
cartesianProduct(callable|null $operation = null, callable|null $filter = null) : \Cake\Collection\CollectionInterface
| callable|null | $operation | Operation |
| callable|null | $filter | Filter |
transpose() : \Cake\Collection\CollectionInterface
{@inheritDoc}
__construct(\RecursiveIterator $items, string|callable $valuePath, string|callable $keyPath, string $spacer, integer $mode = \RecursiveIteratorIterator::SELF_FIRST)
Constructor
| \RecursiveIterator | $items | The iterator to flatten. |
| string|callable | $valuePath | The property to extract or a callable to return the display value. |
| string|callable | $keyPath | The property to use as iteration key or a callable returning the key value. |
| string | $spacer | The string to use for prefixing the values according to their depth in the tree. |
| integer | $mode | Iterator mode. |