PHP Class Symfony\Component\Workflow\Dumper\GraphvizDumper

You can convert the generated dot file with the dot utility (http://www.graphviz.org/): dot -Tpng workflow.dot > workflow.png
Author: Fabien Potencier ([email protected])
Author: Grégoire Pineau ([email protected])
Inheritance: implements Symfony\Component\Workflow\Dumper\DumperInterface
ファイルを表示 Open project: symfony/workflow Class Usage Examples

Protected Properties

Property Type Description
$defaultOptions

Public Methods

Method Description
dump ( Symfony\Component\Workflow\Definition $definition, Symfony\Component\Workflow\Marking $marking = null, array $options = [] )

Protected Methods

Method Description
addEdges ( array $edges )
addPlaces ( array $places )
addTransitions ( array $transitions )
dotize ( $id )
endDot ( )
findEdges ( Symfony\Component\Workflow\Definition $definition )
findPlaces ( Symfony\Component\Workflow\Definition $definition, Symfony\Component\Workflow\Marking $marking = null )
findTransitions ( Symfony\Component\Workflow\Definition $definition )
startDot ( array $options )

Private Methods

Method Description
addAttributes ( array $attributes )
addOptions ( array $options )

Method Details

addEdges() protected method

protected addEdges ( array $edges )
$edges array

addPlaces() protected method

protected addPlaces ( array $places )
$places array

addTransitions() protected method

protected addTransitions ( array $transitions )
$transitions array

dotize() protected method

protected dotize ( $id )

dump() public method

Dumps the workflow as a graphviz graph. Available options: * graph: The default options for the whole graph * node: The default options for nodes (places + transitions) * edge: The default options for edges
public dump ( Symfony\Component\Workflow\Definition $definition, Symfony\Component\Workflow\Marking $marking = null, array $options = [] )
$definition Symfony\Component\Workflow\Definition
$marking Symfony\Component\Workflow\Marking
$options array

endDot() protected method

protected endDot ( )

findEdges() protected method

protected findEdges ( Symfony\Component\Workflow\Definition $definition )
$definition Symfony\Component\Workflow\Definition

findPlaces() protected method

protected findPlaces ( Symfony\Component\Workflow\Definition $definition, Symfony\Component\Workflow\Marking $marking = null )
$definition Symfony\Component\Workflow\Definition
$marking Symfony\Component\Workflow\Marking

findTransitions() protected method

protected findTransitions ( Symfony\Component\Workflow\Definition $definition )
$definition Symfony\Component\Workflow\Definition

startDot() protected method

protected startDot ( array $options )
$options array

Property Details

$defaultOptions protected_oe static_oe property

protected static $defaultOptions