Свойство | Тип | Описание | |
---|---|---|---|
$idAttribute | |||
$leftAttribute | |||
$rightAttribute |
Свойство | Тип | Описание | |
---|---|---|---|
$_cacheStub |
Метод | Описание | |
---|---|---|
ancestorIds ( ) | returns all parent object ids (note there may be more than one because any object can exist in more than one tree). | |
ancestorIdsMatch ( $ids, $ancestor_ids ) | * utlity function that will check whether any of the list $ids appear in the trees of any of the $ancestor_ids (including the ancestor ids themselves) | |
ancestorOfIds ( $ids ) | returns true if the owner is an ancestor of any of the ids passed in. | |
childIds ( ) | immediate child ids of the object (note that these children might not be all in one tree, given that a node can exist in more than one tree). | |
children ( ) | ||
descendentIds ( ) | returns all descendant ids of the object, across any trees the the object exists in. | |
parentIds ( ) | get immediate parent ids for the object (note there may be more than one because any disorder can exist in more than one tree). | |
rootIds ( ) | returns the object ids that are at the top of trees. | |
treeStart ( ) | works out the starting point for a new tree. | |
treeTable ( ) : string |
Метод | Описание | |
---|---|---|
_ancestorIds ( CDbConnection $db, string $table, string $obj_id ) | Returns all the ancestor ids of the provided object id. | |
_descendentIds ( $db, $tree_table, $obj_id ) | * gets the list of left and right boundaries for any given owner objects | |
_treeLimits ( CDbConnection $db, string $tree_table, string $obj_id ) | gets the list of left and right boundaries for any given owner objects. | |
getCacheStub ( ) | ||
treeLimits ( $owner ) | * gets the list of left and right boundaries for any given owner objects |
protected _ancestorIds ( CDbConnection $db, string $table, string $obj_id ) | ||
$db | CDbConnection | |
$table | string | |
$obj_id | string |
protected _descendentIds ( $db, $tree_table, $obj_id ) | ||
$db | ||
$tree_table | ||
$obj_id |
protected _treeLimits ( CDbConnection $db, string $tree_table, string $obj_id ) | ||
$db | CDbConnection | |
$tree_table | string | |
$obj_id | string |
public ancestorIds ( ) |
public ancestorIdsMatch ( $ids, $ancestor_ids ) |
public ancestorOfIds ( $ids ) |
public childIds ( ) |
public descendentIds ( ) |
public parentIds ( ) |
protected treeLimits ( $owner ) | ||
$owner |