DotOutputStrategy Class Reference

Detailed Description

DotOutputStrategy outputs an object's content in a dot file.

Note
file locking works not on NFS!
Author
ingo herwig ingo@.nosp@m.wemo.nosp@m.ve.co.nosp@m.m

Definition at line 23 of file DotOutputStrategy.php.

+ Inheritance diagram for DotOutputStrategy:

Public Member Functions

 __construct ($file, $nodeStyle='', $edgeStyle='')
 
 writeHeader ()
 
 writeFooter ()
 
 writeObject (PersistentObject $obj)
 

Public Attributes

const DEFAULT_NODE_STYLE = 'height=0.1,width=1,shape=box,style=filled,color="#49B4CF",fillcolor="#49B4CF",fontcolor=white,fontsize=14,fontname="Helvetica-Bold"'
 
const DEFAULT_EDGE_STYLE = 'color="#49B4CF"'
 

Constructor & Destructor Documentation

◆ __construct()

__construct (   $file,
  $nodeStyle = '',
  $edgeStyle = '' 
)

Constructor.

Parameters
$fileThe output file name.
$nodeStyleStyle definition to use for nodes (see dot documentation).
$edgeStyleStyle definition to use for edges (see dot documentation).

Definition at line 46 of file DotOutputStrategy.php.

Member Function Documentation

◆ writeHeader()

writeHeader ( )
See also
OutputStrategy::writeHeader

Implements OutputStrategy.

Definition at line 70 of file DotOutputStrategy.php.

◆ writeFooter()

writeFooter ( )
See also
OutputStrategy::writeFooter

Implements OutputStrategy.

Definition at line 98 of file DotOutputStrategy.php.

◆ writeObject()

writeObject ( PersistentObject  $obj)
See also
OutputStrategy::writeObject

Implements OutputStrategy.

Definition at line 109 of file DotOutputStrategy.php.

Member Data Documentation

◆ DEFAULT_NODE_STYLE

const DEFAULT_NODE_STYLE = 'height=0.1,width=1,shape=box,style=filled,color="#49B4CF",fillcolor="#49B4CF",fontcolor=white,fontsize=14,fontname="Helvetica-Bold"'

Definition at line 25 of file DotOutputStrategy.php.

◆ DEFAULT_EDGE_STYLE

const DEFAULT_EDGE_STYLE = 'color="#49B4CF"'

Definition at line 26 of file DotOutputStrategy.php.