You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Modified Preorder Tree Traversal (or Nested Sets) tree model
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.
Added 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.
Version 0.1.1
Release Date: February 18, 2008
Added 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.