[ticket/12117] Add get_all_tree_data method to tree class

http://tracker.phpbb.com/browse/PHPBB3-12117

PHPBB3-12117