[ Index ]

PHP Cross Reference of Limb3

title

Body

[close]

/tree/src/ -> lmbNSTree.class.php (summary)

(no description)

File Size: 600 lines (22 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

lmbNSTree:: (35 methods):
  __construct()
  _mapColumns()
  setNodeTable()
  getNodeTable()
  _getSelectFields()
  _processUserValues()
  initTree()
  getRootNode()
  getParents()
  getParent()
  getSiblings()
  getChildren()
  getChildrenAll()
  _getChildren()
  countChildren()
  countChildrenAll()
  _countChildren()
  getNode()
  getNodeByPath()
  getPathToNode()
  getNodesByIds()
  isNode()
  _getNextNodeInsertId()
  _dbIn()
  createNode()
  _createRootNode()
  _ensureNode()
  _ensureUniqueSiblingIdentifier()
  updateNode()
  deleteNode()
  deleteAll()
  moveNode()
  moveNodeUp()
  moveNodeDown()
  _moveNodeByStep()


Class: lmbNSTree  - X-Ref

Base class implementing a Nested Sets approach for storing tree-like structures in database tables.

__construct($node_table = 'ns_tree', $conn = null, $column_map = array('id' => 'id', 'parent_id' => 'parent_id', 'c_left' => 'c_left', 'c_right' => 'c_right', 'level' => 'level', 'identifier' => 'identifier' )   X-Ref
No description

_mapColumns($column_map)   X-Ref
No description

setNodeTable($table_name)   X-Ref
No description

getNodeTable()   X-Ref
No description

_getSelectFields($table = null)   X-Ref
No description

_processUserValues($values)   X-Ref
No description

initTree()   X-Ref
No description

getRootNode()   X-Ref
No description

getParents($node)   X-Ref
No description

getParent($node)   X-Ref
No description

getSiblings($node)   X-Ref
No description

getChildren($node, $depth = 1)   X-Ref
No description

getChildrenAll($node)   X-Ref
No description

_getChildren($node, $depth = -1)   X-Ref
No description

countChildren($node, $depth = 1)   X-Ref
No description

countChildrenAll($node)   X-Ref
No description

_countChildren($node, $depth = -1)   X-Ref
No description

getNode($node)   X-Ref
No description

getNodeByPath($path)   X-Ref
No description

getPathToNode($node, $delimeter = '/')   X-Ref
No description

getNodesByIds($ids)   X-Ref
No description

isNode($id)   X-Ref
No description

_getNextNodeInsertId()   X-Ref
No description

_dbIn($column_name, $values)   X-Ref
No description

createNode($node, $user_values)   X-Ref
No description

_createRootNode()   X-Ref
No description

_ensureNode($node)   X-Ref
No description

_ensureUniqueSiblingIdentifier($identifier, $parent_node)   X-Ref
No description

updateNode($node, $user_values, $internal = false)   X-Ref
No description

deleteNode($node)   X-Ref
No description

deleteAll()   X-Ref
No description

moveNode($source, $target)   X-Ref
No description

moveNodeUp($node)   X-Ref
No description

moveNodeDown($node)   X-Ref
No description

_moveNodeByStep($node , $step = 'up')   X-Ref
No description



Generated: Tue Oct 7 05:02:03 2008 Cross-referenced by PHPXref 0.7