-
Notifications
You must be signed in to change notification settings - Fork 0
Trees
Information about SQL trees: http://dev.e-taller.net/dbtree/
=> a bit of inspiration...
- [url=http://pear.php.net/package/Tree]PEAR Tree Package[/url]
Place the MPTtree.php file in your models directory.
Load the model with $this->load->model(’MPTtree’), and then set the table name with $this->MPTtree->set_table(’tablename’)
Check the comments in file or the accompanying html manual on how to use the model.
File:MPTtree_0_1_4_fix.zip
Thread: http://codeigniter.com/forums/viewthread/72706/
Martin WernstahlMPTtree is licensed under LGPL
Release Date: February 26, 2008Added a few methods to be used with Active Record, see Active Record helpers Added calls to db::protect_identifiers() in set_opts() and in set_table() Replaced the method xpath() with a much more efficient xpath variant. The old xpath() method have been renamed to path2(). HCG: Replaced use of transactions with locks
Release Date: February 20, 2008Added the method xpath() Remade set_opts() to accept an array with the parameters Added a sanitation of the data to update_node() and to the insert methods. This to prevent damage to the tree.
Release Date: February 18, 2008Added transaction support Added the method get_descendants_where() Added the method get_children_where() Changed algohrithm for get_children(), the new is almost twice as fast as the old one! Renamed some internal properties to address some conflicts with different CI libraries Changed name of get_decendants() to get_descendants(), a bad misspelling by me.
Release Date: February 9, 2008Initial Release
Hamish Guthrie <hamish at prodigi dot ch> (Table locking)