[ Index ]

PHP Cross Reference of Akelos Framework

title

Body

[close]

/AkActiveRecord/AkActsAsBehaviours/ -> AkActsAsNestedSet.php (summary)

(no description)

File Size: 696 lines (27 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 1 file
 AkActiveRecord/AkObserver.php

Defines 1 class

AkActsAsNestedSet:: (38 methods):
  AkActsAsNestedSet()
  init()
  _ensureIsActiveRecordInstance()
  reloadActiveRecordInstance()
  getType()
  getScopeCondition()
  setScopeCondition()
  getScopedColumn()
  getLeftColumnName()
  setLeftColumnName()
  getRightColumnName()
  setRightColumnName()
  getParentColumnName()
  setParentColumnName()
  isRoot()
  isChild()
  isUnknown()
  addChild()
  getParent()
  getParents()
  beforeDestroy()
  beforeCreate()
  _setLeftAndRightToTheEndOfTheTree()
  getRoot()
  getRoots()
  getAncestors()
  getSelfAndAncestors()
  getSiblings()
  getSelfAndSiblings()
  getLevel()
  countChildren()
  getChildren()
  getAllChildren()
  getFullSet()
  moveToLeftOf()
  moveToRightOf()
  moveToChildOf()
  moveTo()


Class: AkActsAsNestedSet  - X-Ref


AkActsAsNestedSet(&$ActiveRecordInstance)   X-Ref
No description

init($options = array()   X-Ref
No description

_ensureIsActiveRecordInstance(&$ActiveRecordInstance)   X-Ref
No description

reloadActiveRecordInstance(&$nodeInstance)   X-Ref
No description

getType()   X-Ref
No description

getScopeCondition()   X-Ref
No description

setScopeCondition($scope_condition)   X-Ref
No description

getScopedColumn($column)   X-Ref
No description

getLeftColumnName()   X-Ref
No description

setLeftColumnName($left_column_name)   X-Ref
No description

getRightColumnName()   X-Ref
No description

setRightColumnName($right_column_name)   X-Ref
No description

getParentColumnName()   X-Ref
No description

setParentColumnName($parent_column_name)   X-Ref
No description

isRoot()   X-Ref
Returns true is this is a root node.


isChild()   X-Ref
Returns true is this is a child node


isUnknown()   X-Ref
Returns true if we have no idea what this is


addChild( &$child )   X-Ref
Added a child to this object in the tree.  If this object hasn't been initialized,
it gets set up as a root node.  Otherwise, this method will update all of the
other elements in the tree and shift them to the right. Keeping everything
balanced.


getParent()   X-Ref
Returns the parent Object


getParents()   X-Ref
Returns an array of parent Objects this is usefull to make breadcrum like stuctures


beforeDestroy(&$object)   X-Ref
Prunes a branch off of the tree, shifting all of the elements on the right
back to the left so the counts still work.


beforeCreate(&$object)   X-Ref
on creation, set automatically lft and rgt to the end of the tree


_setLeftAndRightToTheEndOfTheTree()   X-Ref
No description

getRoot()   X-Ref
Returns the single root


getRoots()   X-Ref
Returns roots when multiple roots (or virtual root, which is the same)


getAncestors()   X-Ref
Returns an array of all parents


getSelfAndAncestors()   X-Ref
Returns the array of all parents and self


getSiblings($search_for_self = false)   X-Ref
Returns the array of all children of the parent, except self


getSelfAndSiblings()   X-Ref
Returns the array of all children of the parent, included self


getLevel()   X-Ref
Returns the level of this object in the tree
root level is 0


countChildren()   X-Ref
Returns the number of all nested children of this object.


getChildren()   X-Ref
Returns a set of only this entry's immediate children


getAllChildren()   X-Ref
Returns a set of all of its children and nested children


getFullSet($exclude = null)   X-Ref
Returns a set of itself and all of its nested children


moveToLeftOf($node)   X-Ref
Move the node to the left of another node


moveToRightOf($node)   X-Ref
Move the node to the left of another node


moveToChildOf($node)   X-Ref
Move the node to the child of another node


moveTo($target, $position)   X-Ref
No description



Generated: Mon Oct 27 12:43:49 2008 Cross-referenced by PHPXref 0.6