Note: the missing documentation of the argument list for this constructor is currently as follows (according to source code).
Param iter: see RecursiveIterator
Param mode:
- LEAVES_ONLY = (default) only iterate leaves
- SELF_FIRST = iterate parents prior to children
- CHILD_FIRST = iterate children prior to parents
Param flags:
- CATCH_GET_CHILD = ignore exceptions in getChildren() call
RecursiveIteratorIterator::__construct
(PHP 5 >= 5.1.3)
RecursiveIteratorIterator::__construct — Construct a RecursiveIteratorIterator
Descripción
RecursiveIteratorIterator::__construct
( Traversable $iterator
[, int $mode = LEAVES_ONLY
[, int $flags = 0
]] )
Creates a RecursiveIteratorIterator from a RecursiveIterator.
Warning
Esta función no está documentada actualmente, solamente se encuentra disponible la lista de parámetros.
Parámetros
- iterator
-
The iterator being constructed from, which is from a RecursiveIterator or IteratorAggregate.
- mode
-
The mode. Options are LEAVES_ONLY (default), SELF_FIRST and CHILD_FIRST.
- flags
-
Valores devueltos
Tom
06-Jan-2011 09:13
Matt Creenan
05-Mar-2010 05:39
Note that LEAVES_ONLY, SELF_FIRST and CHILD_FIRST do not work by themselves.
They are class constants so you need to use RecursiveIteratorIterator::LEAVES_ONLY, etc.
