- fixed #11 where
moving
root nodes and using thebefore
/after
arguments would yield warnings. Thanks @xVinniVx!
- added
show_full_path
argument to the to_select method; thanks to Jiri Melcak for suggesting - the library will now stop on MySQL errors; previously, because it uses TABLE LOCKs, errors while in a lock would not be reported, making it difficult to debug; thanks to Jiri Melcak for suggesting!
- fixed #5 where
get_previous_sibling
was in fact returning thenext
sibling. Thanks @kinnevo! - performance tweaks for
get_previous_sibling
andget_next_sibling
methods - escape custom table and column names; thanks @dominikfiala!
- unnecessary files are no more included when downloading from GitHub or via Composer
- minor source code tweaks
- documentation is now available in the repository and on GitHub
- the home of the library is now exclusively on GitHub
- fixed an issue with auto-loading when installed via Composer
- updated references to the minimum required PHP version
- this version breaks compatibility with previous versions
- "get_children_count" and "get_descendats_count" methods were both replaced by the new get_descendant_count method
- "get_selectables" method was renamed to to_select
- added 3 new methods: get_siblings, get_next_sibling and get_previous_sibling
- the move method can now be used to move nodes before and after another nodes (not just as a child of another node)
- dropped support for the deprecated "mysql" extension; the library now only works with the "mysqli" extension
- minimum required PHP version is now 5.0.5 instead of 4.4.9
- fixed some issues preventing the library from running pn PHP7; thanks Jiri Melcak
- improved compatibility with Composer
- some minor performance tweaks
- added a new update method, useful if you want to change a node's name
- fixed a bug with the to_list method when custom column names were used; thanks hendra
- the "get_parent" method now returns all the properties of the parent node and not just the ID; thanks Edgar Veiga
- added a new method: to_list which can be used to generate HTML ordered or unordered lists for a given node; thanks to Dino Sane Moreira for suggesting
- project is now available on GitHub and as a package for Composer
- fixed a bug where the last node returned by the "get_path" method did not have the correct key; thanks to Gus
- fixed a bug that escaped fixing in the previous release, where the get_selectables() method was triggering a "Strict Standards" notice in PHP 5.3+; thanks to mrplugins
- fixed a bug where the "copy" method was not working correctly; thanks to Victor Hugo Contreras
- fixed an issue with some constructs in the code that would trigger a "Strict standards: Only variables should be passed by reference" warnings in PHP 5.3+; thanks Juan Gutierrez
- fixed a bug where some of the methods were not working anymore if custom column names were used for the MySQL table (thanks to hisham for reporting)
- entire code was audited and improved
- added new methods
- many documentation refinements
- initial release