wCMF
3.6
|
Public Member Functions | |
DotOutputStrategy ($file, $nodeStyle='', $edgeStyle='') | |
writeHeader () | |
writeFooter () | |
writeObject (&$obj) | |
getNextIndex () | |
Public Attributes | |
$DEFAULT_NODE_STYLE = 'height=0.1,width=1,shape=box,style=filled,color="#49B4CF",fillcolor="#49B4CF",fontcolor=white,fontsize=14,fontname="Helvetica-Bold"' | |
$DEFAULT_EDGE_STYLE = 'arrowhead=none,arrowtail=none,color="#49B4CF"' | |
$_file = '' | |
$_fp = 0 | |
$_fileOk = false | |
$_nodeIndex = 0 | |
$_nodeStyle = '' | |
$_edgeStyle = '' | |
This OutputStrategy outputs an object's content in a dot file.
wCMF - wemove Content Management Framework Copyright (C) 2005-2014 wemove digital solutions GmbH
Licensed under the terms of any of the following licenses at your choice:
See the license.txt file distributed with this work for additional information.
Definition at line 30 of file class.DotOutputStrategy.php.
DotOutputStrategy::DotOutputStrategy | ( | $file, | |
$nodeStyle = '' , |
|||
$edgeStyle = '' |
|||
) |
Constructor.
file | The output file name. |
nodeStyle | Style definition to use for nodes (see dot documentation). |
edgeStyle | Style definition to use for edges (see dot documentation). |
Definition at line 49 of file class.DotOutputStrategy.php.
References $DEFAULT_EDGE_STYLE, and $DEFAULT_NODE_STYLE.
DotOutputStrategy::writeHeader | ( | ) |
Write the dot header.
Implements OutputStrategy.
Definition at line 66 of file class.DotOutputStrategy.php.
References Log\warn().
DotOutputStrategy::writeFooter | ( | ) |
Write the dot footer.
Implements OutputStrategy.
Definition at line 95 of file class.DotOutputStrategy.php.
DotOutputStrategy::writeObject | ( | & | $obj | ) |
Write the object's content.
obj | The object to write. |
Implements OutputStrategy.
Definition at line 108 of file class.DotOutputStrategy.php.
References getNextIndex().
DotOutputStrategy::getNextIndex | ( | ) |
Get the next Node index.
Definition at line 130 of file class.DotOutputStrategy.php.
Referenced by writeObject().
DotOutputStrategy::$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 32 of file class.DotOutputStrategy.php.
Referenced by DotOutputStrategy().
DotOutputStrategy::$DEFAULT_EDGE_STYLE = 'arrowhead=none,arrowtail=none,color="#49B4CF"' |
Definition at line 33 of file class.DotOutputStrategy.php.
Referenced by DotOutputStrategy().
DotOutputStrategy::$_file = '' |
Definition at line 35 of file class.DotOutputStrategy.php.
DotOutputStrategy::$_fp = 0 |
Definition at line 36 of file class.DotOutputStrategy.php.
DotOutputStrategy::$_fileOk = false |
Definition at line 37 of file class.DotOutputStrategy.php.
DotOutputStrategy::$_nodeIndex = 0 |
Definition at line 38 of file class.DotOutputStrategy.php.
DotOutputStrategy::$_nodeStyle = '' |
Definition at line 40 of file class.DotOutputStrategy.php.
DotOutputStrategy::$_edgeStyle = '' |
Definition at line 41 of file class.DotOutputStrategy.php.