Path

ez components / documentation / api reference / 2009.1.1 / tree


eZ Components 2009.1.1

Tree: ezcTreeVisitorGraphViz

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

Class: ezcTreeVisitorGraphViz

An implementation of the ezcTreeVisitor interface that generates GraphViz/dot markup for a tree structure. [source]

Implemented Interfaces

1.  <?php
2.      $visitor new ezcTreeVisitorGraphViz;
3.      $tree->accept$visitor );
4.      echo (string) $visitor// print the plot
5.   ?>

Member Variables

protected array(id=>array(ezcTreeNode)) $edges = array()
Holds all the edges of the graph.
protected array(string=>string) $nodes = array()
Holds the displayed strings for each of the nodes.

Method Summary

public bool visit( $visitable )
Visits the node and sets the the member variables according to the node type and contents.

Methods

visit

bool visit( ezcTreeVisitable $visitable )
Visits the node and sets the the member variables according to the node type and contents.

Parameters

Name Type Description
$visitable ezcTreeVisitable  

Last updated: Mon, 27 Jul 2009