PHP 클래스 TreeBehavior

Long description for file
상속: extends ModelBehavior
파일 보기 프로젝트 열기: openeyes/openeyes 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$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

메소드 상세

_ancestorIds() 보호된 메소드

Returns all the ancestor ids of the provided object id.
protected _ancestorIds ( CDbConnection $db, string $table, string $obj_id )
$db CDbConnection
$table string
$obj_id string

_descendentIds() 보호된 메소드

* gets the list of left and right boundaries for any given owner objects
protected _descendentIds ( $db, $tree_table, $obj_id )
$db
$tree_table
$obj_id

_treeLimits() 보호된 메소드

gets the list of left and right boundaries for any given owner objects.
protected _treeLimits ( CDbConnection $db, string $tree_table, string $obj_id )
$db CDbConnection
$tree_table string
$obj_id string

ancestorIds() 공개 메소드

returns all parent object ids (note there may be more than one because any object can exist in more than one tree).
public ancestorIds ( )

ancestorIdsMatch() 공개 메소드

* 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)
public ancestorIdsMatch ( $ids, $ancestor_ids )

ancestorOfIds() 공개 메소드

returns true if the owner is an ancestor of any of the ids passed in.
public ancestorOfIds ( $ids )

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).
public childIds ( )

children() 공개 메소드

public children ( )

descendentIds() 공개 메소드

returns all descendant ids of the object, across any trees the the object exists in.
public descendentIds ( )

getCacheStub() 보호된 메소드

protected getCacheStub ( )

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).
public parentIds ( )

rootIds() 공개 메소드

returns the object ids that are at the top of trees.
public rootIds ( )

treeLimits() 보호된 메소드

* gets the list of left and right boundaries for any given owner objects
protected treeLimits ( $owner )
$owner

treeStart() 공개 메소드

works out the starting point for a new tree.
public treeStart ( )

treeTable() 공개 메소드

public treeTable ( ) : string
리턴 string the associated database table name

프로퍼티 상세

$_cacheStub 보호되어 있는 프로퍼티

protected $_cacheStub

$idAttribute 공개적으로 프로퍼티

public $idAttribute

$leftAttribute 공개적으로 프로퍼티

public $leftAttribute

$rightAttribute 공개적으로 프로퍼티

public $rightAttribute