|
wCMF
3.6
|
Inheritance diagram for TreeViewController:Public Member Functions | |
| hasView () | |
| executeKernel () | |
| getRootOIDs () | |
| getChildren ($oid) | |
| getViewNode (&$node, $displayText='') | |
| isVisible (&$node) | |
| getDisplayText (&$node) | |
| getClickAction (&$node) | |
Public Member Functions inherited from Controller | |
| Controller (&$delegate) | |
| initialize (&$request, &$response) | |
| validate () | |
| hasView () | |
| execute () | |
| executeKernel () | |
| getErrorMsg () | |
| setErrorMsg ($msg) | |
| appendErrorMsg ($msg) | |
| & | getRequest () |
| & | getResponse () |
| & | getView () |
| & | getDelegate () |
| getViewTemplate ($controller, $context, $action) | |
| getCacheId () | |
| assignViewDefaults (&$view) | |
| isLocalizedRequest () | |
Additional Inherited Members | |
Public Attributes inherited from Controller | |
| $_request = null | |
| $_response = null | |
| $_errorMsg = '' | |
| $_view = null | |
| $_delegate = null | |
TreeViewController is used to visualize cms data in a tree view.
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.
Input actions:
Output actions:
| [in] | node | The object id of the parent Node whose children should be loaded |
| [in] | sort | The attribute to sort the children by |
| [out] | objects | An array of associative arrays with keys 'oid', 'text', 'onClickAction', 'hasChildren' |
Definition at line 43 of file class.TreeViewController.php.
| TreeViewController::hasView | ( | ) |
Definition at line 48 of file class.TreeViewController.php.
Referenced by ResourceTreeController\executeKernel().
| TreeViewController::executeKernel | ( | ) |
Assign data to View.
Definition at line 64 of file class.TreeViewController.php.
References getChildren(), Localization\getInstance(), getViewNode(), Controller\isLocalizedRequest(), isVisible(), and Node\sort().
Here is the call graph for this function:| TreeViewController::getRootOIDs | ( | ) |
Get the OIDs of the root nodes. TreeViewController will build the complete resource tree from these.
Definition at line 110 of file class.TreeViewController.php.
References PersistenceFacade\getInstance(), InifileParser\getInstance(), and Controller\setErrorMsg().
Referenced by getChildren().
Here is the call graph for this function:| TreeViewController::getChildren | ( | $oid | ) |
Get the children for a given oid.
Definition at line 134 of file class.TreeViewController.php.
References ACTION_READ, BUILDDEPTH_SINGLE, PersistenceFacade\getInstance(), RightsManager\getInstance(), getRootOIDs(), and PersistenceFacade\isValidOID().
Referenced by executeKernel().
Here is the call graph for this function:| TreeViewController::getViewNode | ( | & | $node, |
$displayText = '' |
|||
| ) |
Get the view of a Node
| node | The Node to create the view for |
| displayText | The text to display (will be taken from TreeViewController::getDisplayText() if not specified) [default: ''] |
Definition at line 170 of file class.TreeViewController.php.
References getClickAction(), and getDisplayText().
Referenced by executeKernel().
Here is the call graph for this function:| TreeViewController::isVisible | ( | & | $node | ) |
Test if a Node should be displayed in the tree
| node | A reference to the Node to display |
Definition at line 193 of file class.TreeViewController.php.
Referenced by executeKernel().
| TreeViewController::getDisplayText | ( | & | $node | ) |
Get the display text for a Node
| node | A reference to the Node to display |
Definition at line 203 of file class.TreeViewController.php.
References NodeUtil\getDisplayValue().
Referenced by getViewNode().
Here is the call graph for this function:| TreeViewController::getClickAction | ( | & | $node | ) |
Get the action to perform if a Node is clicked (The content of the anchor tag href attribute)
| node | A reference to the Node |
Definition at line 213 of file class.TreeViewController.php.
Referenced by getViewNode().