PHP Class ezcWorkflowVisitor, Workflow
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.
ファイルを表示
Open project: zetacomponents/workflow
Class Usage Examples
Protected Properties
Property |
Type |
Description |
|
$visited |
SplObjectStorage |
Holds the visited nodes. |
|
Public Methods
Method |
Description |
|
__construct ( ) |
Constructor. |
|
count ( ) : integer |
Returns the number of visited nodes. |
|
visit ( ezcWorkflowVisitable $visitable ) : boolean |
Visit the $visitable. |
|
Protected Methods
Method |
Description |
|
doVisit ( ezcWorkflowVisitable $visitable ) |
Perform the visit. |
|
Method Details
__construct()
public method
Returns the number of visited nodes.
doVisit()
protected method
protected doVisit ( ezcWorkflowVisitable $visitable ) |
$visitable |
ezcWorkflowVisitable |
|
Each node in the graph is visited once.
public visit ( ezcWorkflowVisitable $visitable ) : boolean |
$visitable |
ezcWorkflowVisitable |
|
return |
boolean |
|
Property Details
$visited protected_oe property
protected SplObjectStorage $visited |
return |
SplObjectStorage |
|