Path

ez components / documentation / api reference / 2007.2beta1 / workflow


eZ Components 2007.2beta1

Workflow: ezcWorkflowVisitorVisualization

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

Class: ezcWorkflowVisitorVisualization

An implementation of the ezcWorkflowVisitor interface that generates GraphViz/dot markup for a workflow definition. [source]

Implemented Interfaces

1.   $visitor new ezcWorkflowVisitorVisualization;
2.   $workflow->accept$visitor );
2.   echo (string)$visitor// print the plot

Member Variables

protected array( $edges = array()
Holds all the edges of the graph.
protected array(string $nodes = array()
Holds the displayed strings for each of the nodes.
protected array $visited = array()
Holds the id of each node that has been visited already.
protected string $workflowName = 'Workflow'
The name of the workflow.

Method Summary

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

Methods

visit

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

Parameters

Name Type Description
$visitable ezcWorkflowVisitable  

Last updated: Wed, 28 Nov 2007