RecursiveTreeIterator クラス

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

はじめに

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

クラス概要

class RecursiveTreeIterator extends RecursiveIteratorIterator {
/* 継承した定数 */
/* 定数 */
const int BYPASS_CURRENT = 4;
const int BYPASS_KEY = 8;
const int PREFIX_LEFT = 0;
const int PREFIX_MID_HAS_NEXT = 1;
const int PREFIX_MID_LAST = 2;
const int PREFIX_END_HAS_NEXT = 3;
const int PREFIX_END_LAST = 4;
const int PREFIX_RIGHT = 5;
/* メソッド */
public __construct(
    RecursiveIterator|IteratorAggregate $iterator,
    int $flags = RecursiveTreeIterator::BYPASS_KEY,
    int $cachingIteratorFlags = CachingIterator::CATCH_GET_CHILD,
    int $mode = RecursiveTreeIterator::SELF_FIRST
)
public beginChildren(): void
public callHasChildren(): bool
public current(): mixed
public endChildren(): void
public endIteration(): void
public getEntry(): string
public getPostfix(): string
public getPrefix(): string
public key(): mixed
public next(): void
public nextElement(): void
public rewind(): void
public setPostfix(string $postfix): void
public setPrefixPart(int $part, string $value): void
public valid(): bool
/* 継承したメソッド */
public RecursiveIteratorIterator::setMaxDepth(int $maxDepth = -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

目次

関連キーワード:  public, RecursiveTreeIterator, RecursiveIteratorIterator, int, クラス, RecursiveIterator, 取得, PREFIX, string, 要素