DB_NestedSet
[ class tree: DB_NestedSet ] [ index: DB_NestedSet ] [ all elements ]

Class: DB_NestedSet_MDB

Source Location: /DB_NestedSet-1.4.1/NestedSet/MDB.php

Class Overview

DB_NestedSet
   |
   --DB_NestedSet_MDB

Wrapper class for PEAR::MDB


Author(s):

Version:

  • $Revision: 164620 $

Variables

Methods


Inherited Variables

Inherited Methods

Class: DB_NestedSet

DB_NestedSet::addListener()
Add an event listener
DB_NestedSet::apiVersion()
DB_NestedSet::convertTreeModel()
Convert a <1.3 tree into a 1.3 tree format
DB_NestedSet::createLeftNode()
Creates a node before a given node
DB_NestedSet::createRightNode()
Creates a node after a given node
DB_NestedSet::createRootNode()
Creates a new root node. If no id is specified then it is either added to the beginning/end of the tree based on the $pos.
DB_NestedSet::createSubNode()
Creates a subnode
DB_NestedSet::deleteNode()
Deletes a node
DB_NestedSet::factory()
Handles the returning of a concrete instance of DB_NestedSet based on the driver.
DB_NestedSet::getAllNodes()
Fetch the whole NestedSet
DB_NestedSet::getBranch()
Fetch the whole branch where a given node id is in
DB_NestedSet::getChildren()
Fetch the children _one level_ after of a node given by id
DB_NestedSet::getParent()
Fetch the immediate parent of a node given by id
DB_NestedSet::getParents()
Fetch the parents of a node given by id
DB_NestedSet::getRootNodes()
Fetches the first level (the rootnodes) of the NestedSet
DB_NestedSet::getSiblings()
Fetch all siblings of the node given by id Important: The node given by ID will also be returned Do a unset($array[$id]) on the result if you don't want that
DB_NestedSet::getSubBranch()
Fetch all the children of a node given by id
DB_NestedSet::isParent()
See if a given node is a parent of another given node
DB_NestedSet::moveTree()
Wrapper for node moving and copying
DB_NestedSet::pickNode()
Fetch the data of a node with the given id
DB_NestedSet::removeListener()
Removes an event listener
DB_NestedSet::setAttr()
Sets an object attribute
DB_NestedSet::setDbOption()
Sets a db option. Example, setting the sequence table format
DB_NestedSet::setsortMode()
This enables you to set specific options for each output method
DB_NestedSet::testLock()
Tests if a database lock is set
DB_NestedSet::triggerEvent()
Triggers and event an calls the event listeners
DB_NestedSet::updateNode()
Changes the payload of a node

Class Details

[line 36]
Wrapper class for PEAR::MDB
  • Author: Daniel Khan <dk@webcluster.at>
  • Version: $Revision: 164620 $
  • Access: public


[ Top ]


Class Variables

$db =

[line 42]

  • Var: MDB object

Type:   object The


[ Top ]



Method Detail

DB_NestedSet_MDB (Constructor)   [line 54]

DB_NestedSet_MDB &DB_NestedSet_MDB( &$dsn, [array $params = array()], mixed $dsn)

Constructor

Parameters:

mixed   $dsn     DSN as PEAR dsn URI or dsn Array
array   $params     Database column fields which should be returned
   &$dsn     

[ Top ]

_DB_NestedSet_MDB (Destructor)   [line 68]

void _DB_NestedSet_MDB( )

Destructor

[ Top ]


Documentation generated on Sun, 25 Apr 2010 21:30:05 +0000 by phpDocumentor 1.4.3. PEAR Logo Copyright © PHP Group 2004.