Workflow: ezcWorkflowVisitor
[ ]
[ Theoretical background ]
[ ]
[ ]
[ ]
[ ]
Class: ezcWorkflowVisitor
|
Base class for visitor implementations that want to process a workflow using the Visitor design pattern. [
source]
Implemented Interfaces
- Countable (internal interface)
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.
Descendents
Member Variables
|
protected SplObjectStorage |
$visited
Holds the visited nodes. |
Method Summary
|
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. |
Methods
__construct
ezcWorkflowVisitor __construct(
)
Constructor.
Redefined in descendants as
count
integer count(
)
Returns the number of visited nodes.
doVisit
Perform the visit.
Parameters
Redefined in descendants as
visit
Visit the $visitable.
Each node in the graph is visited once.
Parameters
Last updated: Tue, 23 Mar 2010