RecursiveTreeIterator クラス

(PHP 5 >= 5.3.0, PHP 7, PHP 8)

はじめに

RecursiveIterator を反復処理し、ASCII グラフィックツリーを生成します。

クラス概要

RecursiveTreeIteratorextendsRecursiveIteratorIteratorimplements OuterIterator {
constintBYPASS_CURRENT = 4 ;
constintBYPASS_KEY = 8 ;
constintPREFIX_LEFT = 0 ;
constintPREFIX_MID_HAS_NEXT = 1 ;
constintPREFIX_MID_LAST = 2 ;
constintPREFIX_END_HAS_NEXT = 3 ;
constintPREFIX_END_LAST = 4 ;
constintPREFIX_RIGHT = 5 ;
publicbeginChildren(): void
publiccallHasChildren(): bool
public__construct(
    RecursiveIterator|IteratorAggregate$it,
    int$flags = RecursiveTreeIterator::BYPASS_KEY,
    int$cit_flags = CachingIterator::CATCH_GET_CHILD,
    int$mode = RecursiveIteratorIterator::SELF_FIRST
)
publiccurrent(): string
publicendChildren(): void
publicendIteration(): void
publicgetEntry(): string
publicgetPostfix(): string
publicgetPrefix(): string
publickey(): string
publicnext(): void
publicnextElement(): void
publicrewind(): void
publicsetPostfix(string$postfix): void
publicsetPrefixPart(int$part, string$value): void
publicvalid(): bool
publicRecursiveIteratorIterator::__construct(Traversable$iterator, int$mode = RecursiveIteratorIterator::LEAVES_ONLY, int$flags = 0)
publicRecursiveIteratorIterator::setMaxDepth(int$max_depth = -1): void
}

定義済み定数

RecursiveTreeIterator::BYPASS_CURRENT

RecursiveTreeIterator::BYPASS_KEY

RecursiveTreeIterator::PREFIX_LEFT

RecursiveTreeIterator::PREFIX_MID_HAS_NEXT

RecursiveTreeIterator::PREFIX_MID_LAST

RecursiveTreeIterator::PREFIX_END_HAS_NEXT

RecursiveTreeIterator::PREFIX_END_LAST

RecursiveTreeIterator::PREFIX_RIGHT

目次