Any controller which is essentially a tree-based structure of nodes and sub-nodes. Required fields for a tree controller table: id name parent_id record_order
This is the code documentation for the SproutCMS project
Search documentation |
class TreeAdminControllerAny controller which is essentially a tree-based structure of nodes and sub-nodes. Required fields for a tree controller table: id name parent_id record_order
Functions
public __constructvoid $TreeAdminController->__construct ( ); Constructor protected _addPreRendervoid $TreeAdminController->_addPreRender ( mixed $view ); Pre-render hook for adding public _deleteSavebool $TreeAdminController->_deleteSave ( int $item_id [, int $depth [, int $log_id ]] ); Deletes an item and logs the deleted data protected _editPreRendervoid $TreeAdminController->_editPreRender ( mixed $view , mixed $item_id ); Pre-render hook for editing public _extraOrganiseunknown $TreeAdminController->_extraOrganise ( ); Tree organisation tool Bulk renaming, reordering and reparenting public _getDeleteFormarray $TreeAdminController->_getDeleteForm ( int $item_id ); Return HTML which represents the form for deleting a record public _getNavigationunknown $TreeAdminController->_getNavigation ( ); Returns the contents of the navigation pane for the tree public _getToolsunknown $TreeAdminController->_getTools ( ); Returns the tools to show in the left navigation public filetreeClosevoid $TreeAdminController->filetreeClose ( ); Saves in the session data the currently open items in navigation tree Uses the POST param 'dir', and is usually run through an AJAX call. public filetreeOpenvoid $TreeAdminController->filetreeOpen ( ); Returns the children for a specific item, in a format required by jqueryFileTree. Uses the POST param 'dir', and is usually run through an AJAX call. protected fixRecordOrdervoid $TreeAdminController->fixRecordOrder ( int $item_id ); If the specified item needs a record number to be set, Puts this item at the end of the list. public organiseActionvoid $TreeAdminController->organiseAction ( ); Save tree organise form submission, see self::_extraOrganise public reordervoid $TreeAdminController->reorder ( mixed $id ); Shows the reorder screen (which is shown in a popup box) for re-ordering the children items public reorderSavevoid $TreeAdminController->reorderSave ( mixed $parent_id ); Saves a tree reorder public reorderTopvoid $TreeAdminController->reorderTop ( ); Shows the reorder screen (which is shown in a popup box) for re-ordering the top-level stuff |
| Powered by Pelzini, version 0.9.0 |
Documentation is made available under the
GNU Free Documentation License 1.2. Generated: Tuesday, 15th September, 2026 at 10:26 am |
|