Base class for visitor implementations that want to process a workflow using the Visitor design pattern.
visit() is called on each of the nodes in the workflow in a top-down, depth-first fashion.
Start the processing of the workflow by calling accept() on the workflow passing the visitor object as the sole parameter.
Source for this file: /Workflow/src/interfaces/visitor.php
Version: | //autogen// |
Child Class | Description |
---|---|
ezcWorkflowVisitorReset | An implementation of the ezcWorkflowVisitor interface that resets all the nodes of a workflow. |
ezcWorkflowVisitorVisualization | An implementation of the ezcWorkflowVisitor interface that generates GraphViz/dot markup for a workflow definition. |
ezcWorkflowVisitorVerification | An implementation of the ezcWorkflowVisitor interface that verifies a workflow specification. |
protected SplObjectStorage |
$visited
Holds the visited nodes. |
public ezcWorkflowVisitor |
__construct(
)
Constructor. |
public integer |
count(
)
Returns the number of visited nodes. |
protected void |
doVisit(
$visitable
)
Perform the visit. |
public bool |
visit(
$visitable
)
Visit the $visitable. |
Constructor.
Method | Description |
---|---|
ezcWorkflowVisitorVisualization::__construct() |
Constructor. |
Returns the number of visited nodes.
Method | Description |
---|---|
Countable::count |
Perform the visit.
Name | Type | Description |
---|---|---|
$visitable |
ezcWorkflowVisitable |
Method | Description |
---|---|
ezcWorkflowVisitorReset::doVisit() |
Perform the visit. |
ezcWorkflowVisitorVisualization::doVisit() |
Perform the visit. |
ezcWorkflowVisitorVerification::doVisit() |
Perform the visit. |
Visit the $visitable.
Each node in the graph is visited once.
Name | Type | Description |
---|---|---|
$visitable |
ezcWorkflowVisitable |