Class BeTreeComponent
Management of the tree of the contents.
Permits with bits representation (bedita.ini.php): BEDITA_PERMS_READ 0x1 BEDITA_PERMS_MODIFY 0x2
- Object
- BeTreeComponent
Version:
$Revision$
Modifiedby: $LastChangedBy$
Lastmodified:
Located at controllers/components/be_tree.php
Modifiedby: $LastChangedBy$
Lastmodified:
$LastChangedDate$
$Id$
Located at controllers/components/be_tree.php
Methods summary
public
|
|
public
|
|
public
|
|
public
array
|
|
public
array
|
|
public
array
|
|
public
array
|
#
expandOneBranch( integer $id = null )
Get tree with one branch expanded (the branch where object $id is) |
public
array
|
#
getChildren( integer $id = null, mixed $status = null, mixed $filter = false, mixed $order = null, boolean $dir = true, integer $page = 1, integer $dim = null, array $excludeIds = array() )
Get children for node $id |
public
array
|
#
getDescendants( integer $id = null, mixed $status = null, mixed $filter = false, mixed $order = null, boolean $dir = true, integer $page = 1, integer $dim = null, array $excludeIds = array() )
Return descendants of a tree node |
public
array
|
#
getParents( integer $id = null, $area_id = null, $status = array() )
TODO: remove this method Array of parent objects of $id... |
public
|
#
updateTree( integer $id, array $destination )
TODO: remove this method. Used only in some addons shell scripts update tree position of object $id with new $destination array |
public
|
#
setupForSave( integer $objectId, array & $destination = array() )
setup array of tree destinations (parent ids) if some parents is forbidden to user (backend_private permission) then add it to $destination because user can't edit that destination |
private
boolean
|
#
_searchRootDeleteOther( array & $tree, integer $id )
Delete branches that don't contain object $id |