Path

ez components / documentation / api reference / 2007.2beta1 / workflow


eZ Components 2007.2beta1

Workflow: ezcWorkflowVisitorVerification

[ Tutorial ] [ Class tree ] [ Element index ] [ ChangeLog ] [ Credits ]

Class: ezcWorkflowVisitorVerification

An implementation of the ezcWorkflowVisitor interface that verifies a workflow specification. [source]

Implemented Interfaces

This visitor should not be used directly but will be used by the verify() method on the workflow.
1.   $workflow->verify();
The verifier checks that:
  • there is only one start node
  • each node satisfies the constraints of the respective node type

Member Variables

protected integer $numStartNodes = 0
Holds the number of start nodes encountered during visiting.
protected array $visited = array()
Holds the id of each node that has been visited already.

Method Summary

public boolean visit( $visitable )
Visits the node, checks contraints and calls verify on each node.

Methods

visit

boolean visit( ezcWorkflowVisitable $visitable )
Visits the node, checks contraints and calls verify on each node.
Returns true if the node was verified. False if it was already verified.

Parameters

Name Type Description
$visitable ezcWorkflowVisitable  

Throws

ClassDescription
ezcWorkflowInvalidWorkflowException

Last updated: Wed, 28 Nov 2007