wCMF  3.6
 All Classes Namespaces Files Functions Variables Groups Pages
DotOutputStrategy Class Reference
+ Inheritance diagram for DotOutputStrategy:

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 = ''
 

Detailed Description

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.

Id:
class.DotOutputStrategy.php 1462 2014-02-04 23:52:27Z iherwig
Note
file locking works not on NFS!
Author
ingo herwig ingo@.nosp@m.wemo.nosp@m.ve.co.nosp@m.m

Definition at line 30 of file class.DotOutputStrategy.php.

Member Function Documentation

DotOutputStrategy::DotOutputStrategy (   $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 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().

+ Here is the call graph for this function:

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.

Parameters
objThe object to write.

Implements OutputStrategy.

Definition at line 108 of file class.DotOutputStrategy.php.

References getNextIndex().

+ Here is the call graph for this function:

DotOutputStrategy::getNextIndex ( )

Get the next Node index.

Returns
The next Node index.

Definition at line 130 of file class.DotOutputStrategy.php.

Referenced by writeObject().

Member Data Documentation

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.


The documentation for this class was generated from the following file: