Path

ez components / documentation / api reference / 2008.2.1 / workflow


eZ Components 2008.2.1

Workflow: ezcWorkflowVisitorVisualization

[ Tutorial ] [ Theoretical background ] [ 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.  <?php
2.  $visitor new ezcWorkflowVisitorVisualization;
3.  $workflow->accept$visitor );
4.  print $visitor;
5.  ?>

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(string=>mixed) $properties = array()
Properties.
protected array $visited = array()
Holds the id of each node that has been visited already.
protected string $workflowName = 'Workflow'
Holds the name of the workflow.

Method Summary

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

Methods

__construct

ezcWorkflowVisitorVisualization __construct( )
Constructor.

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: Mon, 09 Feb 2009