wCMF
3.6
|
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 = '' | |
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.
Definition at line 29 of file class.TreeViewOutputStrategy.php.
TreeViewOutputStrategy::TreeViewOutputStrategy | ( | $indent = 2 , |
|
$linebreak = "\n" |
|||
) |
Constructor.
indent | The number of spaces to indent. |
linebreak | The 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().
TreeViewOutputStrategy::writeFooter | ( | ) |
Write the treeview footer.
Implements OutputStrategy.
Definition at line 64 of file class.TreeViewOutputStrategy.php.
References write().
TreeViewOutputStrategy::writeObject | ( | & | $obj | ) |
Write the object's content.
obj | The object to write. |
Implements OutputStrategy.
Definition at line 80 of file class.TreeViewOutputStrategy.php.
References $_leafOpenTag, $_nodeOpenTag, and write().
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().
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().