|
RecursiveIteratorIterator クラスはじめに再帰的なイテレータの反復処理に使用します。 RecursiveIteratorIterator に存在しないメソッドの呼び出しは、 RecursiveIteratorIterator::getSubIterator が返す、 現在の深さのイテレータに転送されます。 この転送に __call() は使われません。 クラス概要
RecursiveIteratorIterator
implements
OuterIterator
/* 定数 */
public
const
int
RecursiveIteratorIterator::LEAVES_ONLY;
public
const
int
RecursiveIteratorIterator::SELF_FIRST;
public
const
int
RecursiveIteratorIterator::CHILD_FIRST;
public
const
int
RecursiveIteratorIterator::CATCH_GET_CHILD;
/* メソッド */
public __construct(Traversable
$iterator, int $mode = RecursiveIteratorIterator::LEAVES_ONLY, int $flags = 0)public void beginChildren()
public void beginIteration()
public RecursiveIteratornull callGetChildren()
public bool callHasChildren()
public mixed current()
public void endChildren()
public void endIteration()
public int getDepth()
public RecursiveIterator getInnerIterator()
public intfalse getMaxDepth()
public RecursiveIteratornull getSubIterator(intnull
$level = null)public mixed key()
public void next()
public void nextElement()
public void rewind()
public void setMaxDepth(int
$maxDepth = -1)public bool valid()
定義済み定数
変更履歴
|