Documentation

TreeHelper
in package
implements RecursiveIterator

FinalYes

The TreeHelper class provides methods to display tree-like structures.

Tags
author

Simon André smn.andre@gmail.com

implements

Table of Contents

Interfaces

RecursiveIterator

Properties

$children  : Iterator<int, TreeNode>
$node  : TreeNode
$output  : OutputInterface
$style  : TreeStyle

Methods

createTree()  : self
current()  : TreeNode
getChildren()  : RecursiveIterator
hasChildren()  : bool
key()  : int
next()  : void
render()  : void
Recursively renders the tree to the output, applying the tree style.
rewind()  : void
valid()  : bool
__construct()  : mixed

Properties

Methods

getChildren()

public getChildren() : RecursiveIterator
Return values
RecursiveIterator

hasChildren()

public hasChildren() : bool
Return values
bool

render()

Recursively renders the tree to the output, applying the tree style.

public render() : void

valid()

public valid() : bool
Return values
bool

        
On this page

Search results