DB_NestedSet: Feature Request

From: Date: Thu, 06 Nov 2003 20:31:22 +0000
Subject: DB_NestedSet: Feature Request
Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-23307@lists.php.net to get a copy of this message
Hi there I've been using DB_Nested set for a short while now and have found it an amazing resource...thanks for the MDB fixes...works a treat now!! I have however a few method requests that could be very useful for navigation: Useful to navigate around the tree using the 'l' and 'r' columns, or perhaps just up and down the 'l' column and return false when at the top or bottom...either would be nice. METHOD: getNextNode($id, $keepAsArray = false, $aliasFields = true, $addSQL = array()) METHOD: getPreviousNode($id, $keepAsArray = false, $aliasFields = true, $addSQL = array()) My suggestions on how to get this info may be off, but they seem like logical additions since we now have the new getParent() method - to provide a full compliment of tree navigation tools. // confirm that the current node is a parent // return true/false METHOD: hasChildren($id) Maybe there are simple ways to get this info without adding the methods, but I haven't came across them yet. Thanks for an extremely useful tool! -- Simon H

« previous php.pear.dev (#23307) next »