Web Development Pear Manual - Learn Pear
 Developer Newsletter

Developer Tutorials
ASP
CGI & Perl
CSS
Flash
HTML
Java
JavaScript
Linux
MySQL
PHP
Photoshop
Python
Wireless
XML


Developer Manuals
Learn HTML
Learn PHP
Learn CSS
Learn Pear
Free White Papers



Scripts Directory
ASP Scripts
ASP.NET Scripts
CGI & Perl Scripts
Flash Scripts
Java Scripts
JavaScript Scripts
PHP Scripts
Python Scripts
Remotely Hosted Scripts
Tools & Utilities Scripts
XML Scripts

Web Hosting Directory
ASP.NET Hosting
Budget Web Hosting
Dedicated Servers
Linux Web Hosting
Shared Hosting
Small Business Hosting
Windows Web Hosting

Developer Resources
Developer Tools
Developer News
Developer Content
Developer Book Reviews
Survey Software




DB_NestedSet

Table of Contents
Introduction --  Introduction to DB_NestedSet
DB_NestedSet::addListener() -- Add an event listener
DB_NestedSet::apiVersion() -- 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

With this package, one can easily create trees with infinite depth inside a relational database.







About the NetVisits, Inc Network | Advertise
Developer Tutorials hosted by HostGator.
Copyright ©2007 NetVisits, Inc Network. All Rights Reserved. Privacy Policy.
Visit other NetVisits, Inc. sites: