Implementation of a nested set model to use with Zend Framework