The RecursiveIteratorIterator class

(PHP 5, PHP 7, PHP 8)

Einführung

Can be used to iterate through recursive iterators.

Klassenbeschreibung

class RecursiveIteratorIterator implements OuterIterator {
/* Konstanten */
public const int LEAVES_ONLY;
public const int SELF_FIRST;
public const int CHILD_FIRST;
public const int CATCH_GET_CHILD;
/* Methoden */
public function __construct(Traversable $iterator, int $mode = RecursiveIteratorIterator::LEAVES_ONLY, int $flags = 0)
public function beginChildren(): void
public function beginIteration(): void
public function callHasChildren(): bool
public function current(): mixed
public function endChildren(): void
public function endIteration(): void
public function getDepth(): int
public function getMaxDepth(): int|false
public function getSubIterator(?int $level = null): ?RecursiveIterator
public function key(): mixed
public function next(): void
public function nextElement(): void
public function rewind(): void
public function setMaxDepth(int $maxDepth = -1): void
public function valid(): bool
}

Inhaltsverzeichnis