RecursiveRegexIterator::hasChildren
RecursiveTreeIterator::beginChildren
イテレータ
PHP Manual
RecursiveTreeIterator クラス
導入
RecursiveIterator
を反復処理し、ASCII グラフィックツリーを生成します。
クラス概要
RecursiveTreeIterator
extends
RecursiveIteratorIterator
implements
OuterIterator
,
Traversable
,
Iterator
{
/* 定数 */
const
integer
RecursiveTreeIterator::BYPASS_CURRENT
= 4
;
const
integer
RecursiveTreeIterator::BYPASS_KEY
= 8
;
const
integer
RecursiveTreeIterator::PREFIX_LEFT
= 0
;
const
integer
RecursiveTreeIterator::PREFIX_MID_HAS_NEXT
= 1
;
const
integer
RecursiveTreeIterator::PREFIX_MID_LAST
= 2
;
const
integer
RecursiveTreeIterator::PREFIX_END_HAS_NEXT
= 3
;
const
integer
RecursiveTreeIterator::PREFIX_END_LAST
= 4
;
const
integer
RecursiveTreeIterator::PREFIX_RIGHT
= 5
;
/* メソッド */
public
void
beginChildren
(
void
)
public
RecursiveIterator
beginIteration
(
void
)
public
RecursiveIterator
callGetChildren
(
void
)
public
bool
callHasChildren
(
void
)
__construct
(
RecursiveIterator|IteratorAggregate
$it
[,
int
$flags
= RecursiveTreeIterator::BYPASS_KEY
[,
int
$cit_flags
= CachingIterator::CATCH_GET_CHILD
[,
int
$mode
= RecursiveIteratorIterator::SELF_FIRST
]]] )
public
string
current
(
void
)
public
void
endChildren
(
void
)
public
void
endIteration
(
void
)
public
string
getEntry
(
void
)
public
void
getPostfix
(
void
)
public
string
getPrefix
(
void
)
public
string
key
(
void
)
public
void
next
(
void
)
public
void
nextElement
(
void
)
public
void
rewind
(
void
)
public
void
setPrefixPart
(
int
$part
,
string
$value
)
public
bool
valid
(
void
)
/* 継承したメソッド */
public
void
RecursiveIteratorIterator::beginChildren
(
void
)
public
void
RecursiveIteratorIterator::beginIteration
(
void
)
public
RecursiveIterator
RecursiveIteratorIterator::callGetChildren
(
void
)
public
bool
RecursiveIteratorIterator::callHasChildren
(
void
)
RecursiveIteratorIterator::__construct
(
Traversable
$iterator
[,
int
$mode
= LEAVES_ONLY
[,
int
$flags
= 0
]] )
mixed
RecursiveIteratorIterator::current
(
void
)
public
void
RecursiveIteratorIterator::endChildren
(
void
)
public
void
RecursiveIteratorIterator::endIteration
(
void
)
int
RecursiveIteratorIterator::getDepth
(
void
)
public
iterator
RecursiveIteratorIterator::getInnerIterator
(
void
)
public
mixed
RecursiveIteratorIterator::getMaxDepth
(
void
)
RecursiveIterator
RecursiveIteratorIterator::getSubIterator
(
void
)
mixed
RecursiveIteratorIterator::key
(
void
)
void
RecursiveIteratorIterator::next
(
void
)
public
void
RecursiveIteratorIterator::nextElement
(
void
)
void
RecursiveIteratorIterator::rewind
(
void
)
public
void
RecursiveIteratorIterator::setMaxDepth
([
string
$max_depth
= -1
] )
bool
RecursiveIteratorIterator::valid
(
void
)
}
定義済み定数
RecursiveTreeIterator ノード型
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
目次
RecursiveTreeIterator::beginChildren
? 子を開始する
RecursiveTreeIterator::beginIteration
? 反復処理を開始する
RecursiveTreeIterator::callGetChildren
? 子を取得する
RecursiveTreeIterator::callHasChildren
? 子を持っているかどうかを調べる
RecursiveTreeIterator::__construct
? RecursiveTreeIterator を作成する
RecursiveTreeIterator::current
? 現在の要素を取得する
RecursiveTreeIterator::endChildren
? 子を終了する
RecursiveTreeIterator::endIteration
? 反復処理を終了する
RecursiveTreeIterator::getEntry
? 現在のエントリを取得する
RecursiveTreeIterator::getPostfix
? 接尾辞を取得する
RecursiveTreeIterator::getPrefix
? 接頭辞を取得する
RecursiveTreeIterator::key
? 現在の要素のキーを取得する
RecursiveTreeIterator::next
? 次の要素に移動する
RecursiveTreeIterator::nextElement
? 次の要素
RecursiveTreeIterator::rewind
? イテレータを巻き戻す
RecursiveTreeIterator::setPrefixPart
? 接頭辞の部分を設定する
RecursiveTreeIterator::valid
? 有効性を調べる
RecursiveRegexIterator::hasChildren
RecursiveTreeIterator::beginChildren
イテレータ
PHP Manual