Controller/Action/Auto/Synctree.php
- package
- Classes
- Kwf_Controller_Action_Auto_Synctree
Description
This controller is used to display a tree structure.
The sync-prefix means that this controller loads all data at once, so children are always loaded.
\Kwf_Controller_Action_Auto_Synctree
- Extends from
- \Kwf_Controller_Action_Auto_Abstract
- package
- Constants
- ADD_FIRST
- ADD_LAST
- Properties
- $_addPosition
- $_buttons
- $_defaultOrder
- $_editDialog
- $_enableDD
- $_filters
- $_hasPosition
- $_icons
- $_model
- $_modelName
- $_parentField
- $_primaryKey
- $_rootParentValue
- $_rootText
- $_rootVisible
- $_table
- $_tableName
- $_textField
- Methods
- _beforeDelete
- _beforeSaveMove
- _changeVisibility
- _fetchData
- _filterNodes
- _formatNode
- _formatNodes
- _getParentId
- _getQueryExpression
- _getSelect
- _getTreeWhere
- _getWhere
- _hasPermissions
- _init
- _saveNodeOpened
- _saveSessionNodeOpened
- indexAction
- jsonAddAction
- jsonCollapseAction
- jsonDataAction
- jsonDeleteAction
- jsonExpandAction
- jsonMetaAction
- jsonMoveAction
- jsonNodeDataAction
- jsonVisibleAction
- preDispatch
- setTable
Description
This controller is used to display a tree structure.
The sync-prefix means that this controller loads all data at once, so children are always loaded.
Constants
Properties
$_addPosition
$_addPosition = 'self'
Details
$_buttons
$_buttons = 'array'
Change this array to your needs.
remove an entry to remove the button. false to disable the button.
Details
$_defaultOrder
$_defaultOrder = ''
Details
$_editDialog
$_editDialog = ''
Use this field to set a controller to add/edit a single entry of this tree it should look like this: protected $_editDialog = array( 'controllerUrl' => 'url', ) The url should match the entry in Acl.php
Details
$_enableDD
$_enableDD = ''
Set this field to true to enable drag and drop for tree-items
Details
$_filters
$_filters = ''
Details
$_hasPosition
$_hasPosition = ''
Details
$_icons
$_icons = 'array'
Details
$_model
$_modelName
$_modelName = ''
The model has needs to be a subclass of Kwf_Model_Tree
Details
$_parentField
$_parentField = 'parent_id'
Details
$_primaryKey
$_primaryKey = ''
Details
$_rootParentValue
$_rootParentValue = 'null'
Details
$_rootText
$_rootText = 'Root'
Details
$_rootVisible
$_rootVisible = 'true'
Details
$_table
$_table = ''
Details
$_tableName
$_tableName = ''
Details
$_textField
$_textField = 'name'
Details
Methods
_beforeDelete
_beforeDelete(
$row
)
:
Arguments
- $row
Details
_beforeSaveMove
_beforeSaveMove(
$row
)
:
Arguments
- $row
Details
_changeVisibility
_changeVisibility(
$row
)
:
Arguments
- $row
Details
_fetchData
_fetchData(
$parentRow
)
:
Arguments
- $parentRow
Details
_filterNodes
_filterNodes(
)
:
Details
_formatNode
_formatNode(
$row
)
:
Arguments
- $row
Details
_formatNodes
_formatNodes(
$parentRow
=
null
)
:
Arguments
- $parentRow
Details
_getParentId
_getParentId(
$row
)
:
Arguments
- $row
Details
_getQueryExpression
_getQueryExpression(
$query
)
:
Arguments
- $query
Details
_getSelect
_getSelect(
)
:
override this method to handle the output of this view. Just return the select statement which serves your needs.
Details
_getTreeWhere
_getTreeWhere(
$parentRow
=
null
)
:
Arguments
- $parentRow
Details
_getWhere
_getWhere(
)
:
Details
_hasPermissions
_hasPermissions(
$row, $action
)
:
Arguments
- $row
- $action
Details
_init
_init(
)
:
Details
_saveNodeOpened
_saveNodeOpened(
)
:
Details
_saveSessionNodeOpened
_saveSessionNodeOpened(
$id, $activate
)
:
Arguments
- $id
- $activate
Details
indexAction
indexAction(
)
:
This method is called when the url is requested without params and sub-paths
Details
jsonAddAction
jsonAddAction(
)
:
Details
jsonCollapseAction
jsonCollapseAction(
)
:
Details
jsonDataAction
jsonDataAction(
)
:
This function is called when CONTROLLER_URL/json-data is called.
Details
jsonDeleteAction
jsonDeleteAction(
)
:
Details
jsonExpandAction
jsonExpandAction(
)
:
Details
jsonMetaAction
jsonMetaAction(
)
:
Details
jsonMoveAction
jsonMoveAction(
)
:
Details
jsonNodeDataAction
jsonNodeDataAction(
)
:
Details
jsonVisibleAction
jsonVisibleAction(
)
:
Details
preDispatch
preDispatch(
)
:
Details
setTable
setTable(
$table
)
:
Arguments
- $table