PHP Class ezcWorkflowExecutionVisualizerPlugin, Workflow

loadByName( 'Test' ); $execution = new ezcWorkflowDatabaseExecution( $db ); $execution->workflow = $workflow; $execution->addPlugin( new ezcWorkflowExecutionVisualizerPlugin( '/tmp' ) ); $execution->start(); ?>
Inheritance: extends ezcWorkflowExecutionPlugin
Show file Open project: zetacomponents/workflow

Protected Properties

Property Type Description
$fileCounter integer Filename counter.
$properties array(string=>mixed) Properties.

Public Methods

Method Description
__construct ( string $directory ) Constructor.
__get ( string $propertyName ) Property get access.
__isset ( string $propertyName ) : boolean Property isset access.
__set ( string $propertyName, string $propertyValue ) Property set access.
afterNodeActivated ( ezcWorkflowExecution $execution, ezcWorkflowNode $node ) Called after a node has been activated.
afterNodeExecuted ( ezcWorkflowExecution $execution, ezcWorkflowNode $node ) Called after a node has been executed.

Protected Methods

Method Description
visualize ( ezcWorkflowExecution $execution ) Visualizes the current state of the workflow execution.

Method Details

__construct() public method

Constructor.
public __construct ( string $directory )
$directory string The directory to which the DOT files are written.

__get() public method

Property get access.
public __get ( string $propertyName )
$propertyName string

__isset() public method

Property isset access.
public __isset ( string $propertyName ) : boolean
$propertyName string
return boolean

__set() public method

Property set access.
public __set ( string $propertyName, string $propertyValue )
$propertyName string
$propertyValue string

afterNodeActivated() public method

Called after a node has been activated.
public afterNodeActivated ( ezcWorkflowExecution $execution, ezcWorkflowNode $node )
$execution ezcWorkflowExecution
$node ezcWorkflowNode

afterNodeExecuted() public method

Called after a node has been executed.
public afterNodeExecuted ( ezcWorkflowExecution $execution, ezcWorkflowNode $node )
$execution ezcWorkflowExecution
$node ezcWorkflowNode

visualize() protected method

Visualizes the current state of the workflow execution.
protected visualize ( ezcWorkflowExecution $execution )
$execution ezcWorkflowExecution

Property Details

$fileCounter protected property

Filename counter.
protected int $fileCounter
return integer

$properties protected property

Properties.
protected array(string=>mixed) $properties
return array(string=>mixed)