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

Public Member Functions

 TreeViewOutputStrategy ($indent=2, $linebreak="\n")
 
 writeHeader ()
 
 writeFooter ()
 
 writeObject (&$obj)
 
 getResult ()
 
 write ($text)
 

Public Attributes

 $_leafOpenTag = '<table border="0"><tr><td width="10"></td><td><img src="images/treeview_leaf.gif" alt="tree leaf" /><a href="javascript:if (nodeClicked) nodeClicked(\'RPL_NODEOID\')"><span> RPL_NODETYPE</span></a><div>'
 
 $_leafCloseTag = '</div></td></tr></table>'
 
 $_nodeOpenTag = '<table border="0"><tr><td width="10"></td><td><a onclick="javascript:toggle(this)" name="toggleButton"><img src="images/treeview_minus.gif" alt="folder closed" /></a><a href="javascript:if (nodeClicked) nodeClicked(\'RPL_NODEOID\')"><span> RPL_NODETYPE</span></a><div>'
 
 $_nodeCloseTag = '</div></td></tr></table>'
 
 $_indent = ''
 
 $_linebreak = "\n"
 
 $_tagsToClose = null
 
 $_lastIndent = -1
 
 $_output = ''
 

Detailed Description

This OutputStrategy outputs the object's content in a DHTML Treeview.

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.TreeViewOutputStrategy.php 1462 2014-02-04 23:52:27Z iherwig
Note
This OutputStrategy expects the images 'treeview_leaf.gif', 'treeview_minus.gif', 'treeview_plus.gif' in the directory 'images'
Author
ingo herwig ingo@.nosp@m.wemo.nosp@m.ve.co.nosp@m.m

Definition at line 29 of file class.TreeViewOutputStrategy.php.

Member Function Documentation

TreeViewOutputStrategy::TreeViewOutputStrategy (   $indent = 2,
  $linebreak = "\n" 
)

Constructor.

Parameters
indentThe number of spaces to indent.
linebreakThe linebreak char to use.

Definition at line 48 of file class.TreeViewOutputStrategy.php.

TreeViewOutputStrategy::writeHeader ( )

Write the treeview header.

Implements OutputStrategy.

Definition at line 57 of file class.TreeViewOutputStrategy.php.

References write().

+ Here is the call graph for this function:

TreeViewOutputStrategy::writeFooter ( )

Write the treeview footer.

Implements OutputStrategy.

Definition at line 64 of file class.TreeViewOutputStrategy.php.

References write().

+ Here is the call graph for this function:

TreeViewOutputStrategy::writeObject ( $obj)

Write the object's content.

Parameters
objThe object to write.

Implements OutputStrategy.

Definition at line 80 of file class.TreeViewOutputStrategy.php.

References $_leafOpenTag, $_nodeOpenTag, and write().

+ Here is the call graph for this function:

TreeViewOutputStrategy::getResult ( )

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

References $_output.

TreeViewOutputStrategy::write (   $text)

Definition at line 137 of file class.TreeViewOutputStrategy.php.

Referenced by writeFooter(), writeHeader(), and writeObject().

Member Data Documentation

TreeViewOutputStrategy::$_leafOpenTag = '<table border="0"><tr><td width="10"></td><td><img src="images/treeview_leaf.gif" alt="tree leaf" /><a href="javascript:if (nodeClicked) nodeClicked(\'RPL_NODEOID\')"><span> RPL_NODETYPE</span></a><div>'

Definition at line 31 of file class.TreeViewOutputStrategy.php.

Referenced by writeObject().

TreeViewOutputStrategy::$_leafCloseTag = '</div></td></tr></table>'

Definition at line 32 of file class.TreeViewOutputStrategy.php.

TreeViewOutputStrategy::$_nodeOpenTag = '<table border="0"><tr><td width="10"></td><td><a onclick="javascript:toggle(this)" name="toggleButton"><img src="images/treeview_minus.gif" alt="folder closed" /></a><a href="javascript:if (nodeClicked) nodeClicked(\'RPL_NODEOID\')"><span> RPL_NODETYPE</span></a><div>'

Definition at line 33 of file class.TreeViewOutputStrategy.php.

Referenced by writeObject().

TreeViewOutputStrategy::$_nodeCloseTag = '</div></td></tr></table>'

Definition at line 34 of file class.TreeViewOutputStrategy.php.

TreeViewOutputStrategy::$_indent = ''

Definition at line 36 of file class.TreeViewOutputStrategy.php.

TreeViewOutputStrategy::$_linebreak = "\n"

Definition at line 37 of file class.TreeViewOutputStrategy.php.

TreeViewOutputStrategy::$_tagsToClose = null

Definition at line 38 of file class.TreeViewOutputStrategy.php.

TreeViewOutputStrategy::$_lastIndent = -1

Definition at line 39 of file class.TreeViewOutputStrategy.php.

TreeViewOutputStrategy::$_output = ''

Definition at line 41 of file class.TreeViewOutputStrategy.php.

Referenced by getResult().


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