PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Database » DB_NestedSet

API to build and query nested sets

This package is unmaintained.

Download latest release 1.4.1 (archived versions might be outdated)

License: PHP License

Description

DB_NestedSet let's you create trees with infinite depth
inside a relational database.
The package provides a way to
o create/update/delete nodes
o query nodes, trees and subtrees
o copy (clone) nodes, trees and subtrees
o move nodes, trees and subtrees
o Works with PEAR::DB, PEAR::MDB, PEAR::MDB2
o output the tree with
- PEAR::HTML_TreeMenu
- TigraMenu (http://www.softcomplex.com/products/tigra_menu/)
- CoolMenus (http://www.dhtmlcentral.com/projects/coolmenus/)
- PEAR::Image_GraphViz (http://pear.php.net/package/Image_GraphViz)
- PEAR::HTML_Menu

Documentation

Manual

Maintainers

Dependencies

Required

Releases

Bugs

IDStatusTypeVersionDateSummary
#138ClosedBug2003-10-22moveTree doesn't return anything!
#281ClosedBug2003-11-20moving root nodes (level 1) to level 2 nodes
#321ClosedBug2003-11-27Lock table insert is mysql specific
#510ClosedBug2004-01-02NESE_SORT_PREORDER doesn't work with $aliasFields and $addSQL
#561ClosedBug2004-01-13db fields in query-strings are not escaped
#600ClosedBug2004-01-19Inconsitency in APPEND between methods
#808ClosedBug2004-02-20use of other DB as mysql (MSSQL)
#1097ClosedBug2004-03-30getSubBranch does not work with sort_preorder
#1114ClosedBug2004-04-01bug fix 561 flawed; single-quoting fields errors in pgsql
#1187BogusBug2004-04-12oracle reserved words
#1188ClosedBug2004-04-12wrong node in createNode listeners
#1221Wont fixBug2004-04-16problems with quoted identifiers and Oracle
#1226ClosedBug2004-04-16wrong pivknode lovk sequence
#1423ClosedBug2004-05-17Wrong generated structure for Menu
#1441ClosedBug2004-05-19getOne() and getAll() not supported by all DBAL systems
#1683ClosedBug2004-06-20Error in deleting and insert a node
#2000ClosedBug2004-07-27CVS $Revision interpreted as variable
#2023BogusBug2004-07-30getAllNodes really screwd
#2031ClosedBug2004-07-31Call to undefined method DB_NestedSet_DB::_getOne()
#2034ClosedBug2004-07-31getAllNodes with secondarySort='name') and setsortMode='NESE_SORT_PREORDER' do
#2062DuplicateBug2004-08-05call to an undefined function in createRootNode
#2187Wont fixBug2004-08-21index parent not found
#2386No FeedbackBug2004-09-24quoting issues with mysql
#2433No FeedbackBug2004-10-01Table creation fails
#2837ClosedBug2004-11-27Documentation Site Down
#2969ClosedBug2004-12-15Undefined variables
#3342BogusReq2005-01-31Support for DB_DataObject
#3536ClosedBug2005-02-20getSiblings doesn't work on root level
#4349ClosedBug2005-05-15Problem with driver 'Menu'
#4599ClosedBug2005-06-15MDB2 Driver broken w/ patch
#4702ClosedBug2005-06-29Fatal error in NestedSet.php:1856 /w patch
#4762BogusReq2005-07-07triggerEvent passes node by value not by reference
#4869ClosedBug2005-07-20Variable references should be returned
#4945ClosedReq2005-07-29Move DB_NestedSet_Node into own file
#5160BogusBug2005-08-20DB_NestedSet_Output destroy data-array?
#5474DuplicateBug2005-09-21Object used as array
#5766ClosedBug2005-10-24DB.php doesn't check connection errors w/patch
#6061BogusBug2005-11-24problem creating root node with Oracle
#6193Wont fixBug2005-12-08Field IDs quoted only in insert
#6390ClosedBug2006-01-02options not used
#6405ClosedBug2006-01-03Only variable references should be returned by reference
#9890ClosedBugCVS2007-01-20dirname(__FILE__) should not be used for include/require
#12324ClosedReq1.4.0RC12007-10-24Caching and manipulation
#12325ClosedDoc2007-10-24User note that is a documentation problem
#12326No FeedbackBug1.4.0RC12007-10-24event nodeCopy and skipCallbacks
#12327Wont fixReq1.4.0RC12007-10-24New functions
#12328ClosedReq1.4.0RC12007-10-24getBreadcrumbs
#12329ClosedReq1.4.0RC12007-10-24new function hasChildren
#12330BogusReq1.4.0RC12007-10-24new function isLeaf
#12332Wont fixReq1.4.0RC12007-10-24Passing DB_NestedSet object instance in DB_NestedSet_Event
#12333BogusBug1.4.0RC12007-10-24Allow callbacks (event nodeCreate) inside moveTree when creating tmp nodes
#12334BogusReq1.4.0RC12007-10-24getChildren doesn't use parameter $forceNorder
#12341BogusBug1.4.0RC12007-10-25Bug with root nodes
#12343Wont fixBug1.4.0RC12007-10-25getAllNodes performance suggestion
#12676ClosedDoc2007-12-13User note that is a documentation problem
#12981Wont fixReq1.4.0RC12008-01-26new method: updateBranch()
#17768ClosedBug1.4.12010-08-20file included with relative path
#18448OpenBug1.4.12011-04-15fail to submit ID with createSubNode()