public function get_feed_list()
 {
     $module_id = $this->categories_manager->get_module_id();
     $list = new FeedsList();
     $cats_tree = new FeedsCat($module_id, 0, LangLoader::get_message('root', 'main'));
     $categories = $this->categories_manager->get_categories_cache()->get_categories();
     $this->build_feeds_sub_list($module_id, $categories, $cats_tree, 0);
     $list->add_feed($cats_tree, Feed::DEFAULT_FEED_NAME);
     return $list;
 }
 private function get_module_map($auth_mode)
 {
     $module = ModulesManager::get_module($this->categories_manager->get_module_id());
     $module_configuration = $module->get_configuration();
     $link = new SitemapLink($module_configuration->get_name(), new Url('/' . $module->get_id() . '/'), Sitemap::FREQ_DAILY, Sitemap::PRIORITY_MAX);
     $module_map = new ModuleMap($link, $module->get_id());
     $categories = $this->categories_manager->get_categories_cache()->get_categories();
     foreach ($categories as $id => $category) {
         if ($auth_mode == Sitemap::AUTH_PUBLIC) {
             $this_auth = Authorizations::check_auth(RANK_TYPE, User::VISITOR_LEVEL, $category->get_authorizations(), Category::READ_AUTHORIZATIONS);
         } else {
             $this_auth = AppContext::get_current_user()->check_auth($category->get_authorizations(), Category::READ_AUTHORIZATIONS);
         }
         if ($this_auth && $id != Category::ROOT_CATEGORY && $category->get_id_parent() == Category::ROOT_CATEGORY) {
             $module_map->add($this->create_module_map_sections($categories, $id, $auth_mode));
         }
     }
     return $module_map;
 }