RE: [PEAR-DEV] RFC Nested Set manipulation class

From: Date: Wed, 19 Mar 2003 14:48:57 +0000
Subject: RE: [PEAR-DEV] RFC Nested Set manipulation class
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-14450@lists.php.net to get a copy of this message
> From: Daniel Khan [mailto:dk@webcluster.at] > Sent: Wednesday, March 19, 2003 3:42 PM > To: Lukas Smith; 'Hans Lellelid' > Cc: pear-dev@lists.php.net > Subject: AW: [PEAR-DEV] RFC Nested Set manipulation class > > Lukas Smith wrote: > > > > >>This uses DB only, I am in favour of having it into DB. > > > >>Something like DB_NestedSet ? > > > >> > > > > > > Can one use MDB w/ this class? -- I'd be very interested in seeing > > > support for MDB (w/o PEAR wrapper, necessarily). Not sure how > > feasible > > > that would be. (Would be happy to help if that'd make a > > > difference.) > > > > The modifications necessary would not be a large amount of work. > > Mostly its just manually doing what the wrapper would do. > > > > So basically take every method call to DB, check what the wrapper > > would do and then make the changes. > > Hm - maybe not that easy. NestedSet includes PEAR::DB within the code. > It also calls the error handlers (it expects a pear::db result from a > query). > So the self made wrapper would have to _totally_ emulate PEAR::DB and > after > you did that job you > will see that you just have written a MDB abstraction layer for PEAR::DB > :) > I don't know much about MDB, but can't this be accessed using the ODBC > abstraction layer? MDB != access file format :-) MDB is merge of PEAR DB and Metabase. For more information: http://pear.php.net/package-info.php?package=MDB There is already a PEAR DB wrapper for MDB. Of course a modified version of DB_NestedSet would be a separate package as a container approach is probably not feasible. The same thing was done with DB_QueryTool. Regards, Lukas

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