The RecursiveTreeIterator class

(PHP 5 >= 5.3.0, PHP 7)

Giriş

Allows iterating over a RecursiveIterator to generate an ASCII graphic tree.

Sınıf Sözdizimi

RecursiveTreeIterator extends RecursiveIteratorIterator implements OuterIterator {
/* Miras alınan sabitler */
/* Sabitler */
const integer BYPASS_CURRENT = 4 ;
const integer BYPASS_KEY = 8 ;
const integer PREFIX_LEFT = 0 ;
const integer PREFIX_MID_HAS_NEXT = 1 ;
const integer PREFIX_MID_LAST = 2 ;
const integer PREFIX_END_HAS_NEXT = 3 ;
const integer PREFIX_END_LAST = 4 ;
const integer PREFIX_RIGHT = 5 ;
/* Yöntemler */
public beginChildren ( void ) : void
public callHasChildren ( void ) : bool
public __construct ( RecursiveIterator|IteratorAggregate $it [, int $flags = RecursiveTreeIterator::BYPASS_KEY [, int $cit_flags = CachingIterator::CATCH_GET_CHILD [, int $mode = RecursiveIteratorIterator::SELF_FIRST ]]] )
public current ( void ) : string
public endChildren ( void ) : void
public endIteration ( void ) : void
public getEntry ( void ) : string
public getPostfix ( void ) : string
public getPrefix ( void ) : string
public key ( void ) : string
public next ( void ) : void
public nextElement ( void ) : void
public rewind ( void ) : void
public setPostfix ( string $postfix ) : void
public setPrefixPart ( int $part , string $value ) : void
public valid ( void ) : bool
/* Miras alınan yöntemler */
public RecursiveIteratorIterator::__construct ( Traversable $iterator [, int $mode = RecursiveIteratorIterator::LEAVES_ONLY [, int $flags = 0 ]] )
public RecursiveIteratorIterator::next ( void ) : void
public RecursiveIteratorIterator::rewind ( void ) : void
public RecursiveIteratorIterator::setMaxDepth ([ int $max_depth = -1 ] ) : void
public RecursiveIteratorIterator::valid ( void ) : bool
}

Öntanımlı Sabitler

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

İçindekiler