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.
Inheritance: implements Countable
Exibir arquivo 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

Constructor.
public __construct ( )

count() public method

Returns the number of visited nodes.
public count ( ) : integer
return integer

doVisit() protected method

Perform the visit.
protected doVisit ( ezcWorkflowVisitable $visitable )
$visitable ezcWorkflowVisitable

visit() public method

Each node in the graph is visited once.
public visit ( ezcWorkflowVisitable $visitable ) : boolean
$visitable ezcWorkflowVisitable
return boolean

Property Details

$visited protected_oe property

Holds the visited nodes.
protected SplObjectStorage $visited
return SplObjectStorage