Path

ez components / documentation / api reference / 2009.1.2 / workflow


eZ Components 2009.1.2

Workflow: ezcWorkflowVisitorReset

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

Class: ezcWorkflowVisitorReset

An implementation of the ezcWorkflowVisitor interface that resets all the nodes of a workflow. [source]

Implemented Interfaces

This visitor should not be used directly but will be used by the reset() method on the workflow.
1.  <?php
2.  $workflow->reset();
3.  ?>

Member Variables

protected array $visited = array()
Holds the id of each node that has been visited already.

Method Summary

public boolean visit( $visitable )
Visits the node and resets it.

Methods

visit

boolean visit( ezcWorkflowVisitable $visitable )
Visits the node and resets it.
Returns true if the node was reset. False if it was already reset.

Parameters

Name Type Description
$visitable ezcWorkflowVisitable  

Last updated: Tue, 01 Sep 2009