[ticket/12117] Add get_all_tree_data method to tree class

PHPBB3-12117