PHP Nested Set Framework