Path

ez components / documentation / api reference / latest / tree


eZ Components latest

Tree: ezcTreeVisitor

[ Tutorial ] [ Class tree ] [ Element index ] [ ChangeLog ] [ Credits ]

Interface: ezcTreeVisitor

Interface for visitor implementations that want to process a tree using the Visitor design pattern. [source]
visit() is called on each of the nodes in the tree in a top-down, depth-first fashion.
Start the processing of the tree by calling accept() on the tree passing the visitor object as the sole parameter.

Method Summary

public bool visit( $visitable )
Visit the $visitable.

Methods

visit

bool visit( ezcTreeVisitable $visitable )
Visit the $visitable.
Each node in the graph is visited once.

Parameters

Name Type Description
$visitable ezcTreeVisitable  

Last updated: Mon, 21 Dec 2009