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
Afficher le fichier Open project: zetacomponents/workflow Class Usage Examples

Protected Properties

Свойство Type Description
$visited SplObjectStorage Holds the visited nodes.

Méthodes publiques

Méthode Description
__construct ( ) Constructor.
count ( ) : integer Returns the number of visited nodes.
visit ( ezcWorkflowVisitable $visitable ) : boolean Visit the $visitable.

Méthodes protégées

Méthode Description
doVisit ( ezcWorkflowVisitable $visitable ) Perform the visit.

Method Details

__construct() public méthode

Constructor.
public __construct ( )

count() public méthode

Returns the number of visited nodes.
public count ( ) : integer
Résultat integer

doVisit() protected méthode

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

visit() public méthode

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

Property Details

$visited protected_oe property

Holds the visited nodes.
protected SplObjectStorage $visited
Résultat SplObjectStorage