PHP Classes & Interfaces


Name: RecursiveTreeIterator

Date: Jul-24-2017
PHP version: 5.3.3
Type: Internal

class RecursiveTreeIterator extends RecursiveIteratorIterator implements OuterIterator, Traversable, Iterator

Public Methods

public __construct ( Traversable $iterator, $flags, $caching_it_flags, $mode )

public rewind ( )

public valid ( )

public key ( )

public current ( )

public next ( )

public beginIteration ( )

public endIteration ( )

public callHasChildren ( )

public callGetChildren ( )

public beginChildren ( )

public endChildren ( )

public nextElement ( )

public getPrefix ( )

public setPrefixPart ( $part, $value )

public getEntry ( )

public getPostfix ( )

public getDepth ( )

public getSubIterator ( $level )

public getInnerIterator ( )

public setMaxDepth ( $max_depth )

public getMaxDepth ( )

Constants

const LEAVES_ONLY = 0

const SELF_FIRST = 1

const CHILD_FIRST = 2

const CATCH_GET_CHILD = 16

const BYPASS_CURRENT = 4

const BYPASS_KEY = 8

const PREFIX_LEFT = 0

const PREFIX_MID_HAS_NEXT = 1

const PREFIX_MID_LAST = 2

const PREFIX_END_HAS_NEXT = 3

const PREFIX_END_LAST = 4

const PREFIX_RIGHT = 5