The RecursiveTreeIterator class
(PHP 5 >= 5.3.0, PHP 7, PHP 8)
簡介
Allows iterating over a RecursiveIterator to generate an ASCII graphic tree.
類摘要
class RecursiveTreeIterator
extends
RecursiveIteratorIterator
{
/* 繼承的常量 */
/* 常量 */
/* 方法 */
public __construct(
RecursiveIterator|IteratorAggregate
int
int
int
)
RecursiveIterator|IteratorAggregate
$iterator
,int
$flags
= RecursiveTreeIterator::BYPASS_KEY,int
$cachingIteratorFlags
= CachingIterator::CATCH_GET_CHILD,int
$mode
= RecursiveTreeIterator::SELF_FIRST)
/* 繼承的方法 */
}預定義常量
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 — Begin children
- RecursiveTreeIterator::beginIteration — Begin iteration
- RecursiveTreeIterator::callGetChildren — Get children
- RecursiveTreeIterator::callHasChildren — Has children
- RecursiveTreeIterator::__construct — Construct a RecursiveTreeIterator
- RecursiveTreeIterator::current — Get current element
- RecursiveTreeIterator::endChildren — End children
- RecursiveTreeIterator::endIteration — End iteration
- RecursiveTreeIterator::getEntry — Get current entry
- RecursiveTreeIterator::getPostfix — Get the postfix
- RecursiveTreeIterator::getPrefix — Get the prefix
- RecursiveTreeIterator::key — Get the key of the current element
- RecursiveTreeIterator::next — Move to next element
- RecursiveTreeIterator::nextElement — Next element
- RecursiveTreeIterator::rewind — Rewind iterator
- RecursiveTreeIterator::setPostfix — Set postfix
- RecursiveTreeIterator::setPrefixPart — Set a part of the prefix
- RecursiveTreeIterator::valid — Check validity