BeTreeComponent Class Reference

Management of the tree of the contents. More...

List of all members.

Public Member Functions

 startup (&$controller)
 cleanFilter ()
 getSectionsTree ()
 Tree of publications and sections for user connected.
 getAreaForSection ($section_id)
 expandOneBranch ($id=null)
 Get tree with one branch expanded (the branch where object $id is).
 getChildren ($id=null, $status=null, $filter=false, $order=null, $dir=true, $page=1, $dim=100000)
 Get children for node $id.
 getDescendants ($id=null, $status=null, $filter=false, $order=null, $dir=true, $page=1, $dim=100000)
 Return descendants of a tree node.
 getIdFromNickname ($path)
 Get object id from path $path.
 getParents ($id=null, $area_id=null)
 Array of parent objects of $id.
 updateTree ($id, $destination)
 update tree position of object $id with new $destination array

Public Attributes

 $controller = null
 $filter = array()

Protected Attributes

 $Tree = null
 $BEObject = null
 $Section = null


Detailed Description

Management of the tree of the contents.

Permits with bits representation (bedita.ini.php): BEDITA_PERMS_READ 0x1 BEDITA_PERMS_MODIFY 0x2

Version:
Revision
2328
Modified By:
LastChangedBy
dante
Last Modified: $LastChangedDate
LastChangedDate
2009-10-05 15:03:18 +0200 (lun, 05 ott 2009)

Id
be_tree.php 2328 2009-10-05 13:03:18Z dante

Definition at line 36 of file be_tree.php.


Member Function Documentation

BeTreeComponent.startup ( &$  controller  ) 

Parameters:
object $controller

Definition at line 52 of file be_tree.php.

BeTreeComponent.getSectionsTree (  ) 

Tree of publications and sections for user connected.

Definition at line 97 of file be_tree.php.

Referenced by expandOneBranch().

BeTreeComponent.expandOneBranch ( id = null  ) 

Get tree with one branch expanded (the branch where object $id is).

Parameters:
integer $id

Definition at line 122 of file be_tree.php.

References getSectionsTree().

BeTreeComponent.getChildren ( id = null,
status = null,
filter = false,
order = null,
dir = true,
page = 1,
dim = 100000 
)

Get children for node $id.

Parameters:
integer $id node ID

Definition at line 139 of file be_tree.php.

BeTreeComponent.getDescendants ( id = null,
status = null,
filter = false,
order = null,
dir = true,
page = 1,
dim = 100000 
)

Return descendants of a tree node.

Parameters:
integer $id node ID

Definition at line 157 of file be_tree.php.

BeTreeComponent.getIdFromNickname ( path  ) 

Get object id from path $path.

Parameters:
integer $path Path of the object to find

Definition at line 174 of file be_tree.php.

BeTreeComponent.getParents ( id = null,
area_id = null 
)

Array of parent objects of $id.

..

Parameters:
integer $id

Definition at line 183 of file be_tree.php.

Referenced by updateTree().

BeTreeComponent.updateTree ( id,
destination 
)

update tree position of object $id with new $destination array

Parameters:
integer $id
array $destination

Definition at line 201 of file be_tree.php.

References getParents().


The documentation for this class was generated from the following file:

Generated on Tue Jan 12 15:45:35 2010  BEditaBEdita 3.0.1 betula