[feature/api] Added get_full_tree function

The nested set class can now retrieve the full tree.

PHPBB3-11595