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;
 }
 public function get_feeds_list()
 {
     $list = new FeedsList();
     //unsolved bugs list
     $cats_tree = new FeedsCat('bugtracker', 0, LangLoader::get_message('titles.unsolved', 'common', 'bugtracker'));
     //solved bugs list
     $sub_tree = new FeedsCat('bugtracker', 1, LangLoader::get_message('titles.solved', 'common', 'bugtracker'));
     $cats_tree->add_child($sub_tree);
     $list->add_feed($cats_tree, Feed::DEFAULT_FEED_NAME);
     return $list;
 }
 function get_feeds_list()
 {
     global $LANG;
     require_once PATH_TO_ROOT . '/pages/pages_functions.php';
     $cats_tree = new FeedsCat('pages', 0, $LANG['root']);
     $categories = PagesCategoriesCache::load()->get_categories();
     build_pages_cat_children($cats_tree, array_values($categories));
     $feeds = new FeedsList();
     $feeds->add_feed($cats_tree, Feed::DEFAULT_FEED_NAME);
     return $feeds;
 }
Exemplo n.º 4
0
 function get_feeds_list()
 {
     global $LANG, $Sql;
     import('content/syndication/feeds_list');
     $feeds = new FeedsList();
     $cats_tree = new FeedsCat('news', 0, $LANG['root']);
     $result = $Sql->query_while("SELECT id, name FROM " . PREFIX . "news_cat ORDER BY name ASC", __LINE__, __FILE__);
     while ($row = $Sql->fetch_assoc($result)) {
         $cats_tree->add_child(new FeedsCat('news', $row['id'], $row['name']));
     }
     $Sql->query_close($result);
     $feeds->add_feed($cats_tree, DEFAULT_FEED_NAME);
     return $feeds;
 }
 function get_feeds_list()
 {
     global $LANG;
     $feed = array();
     require_once PATH_TO_ROOT . '/forum/forum.class.php';
     $forum = new Forum();
     $categories = $forum->get_cats_tree();
     import('content/syndication/feeds_list');
     import('content/syndication/feeds_cat');
     $cat_tree = new FeedsCat('forum', 0, $LANG['root']);
     ForumInterface::_feeds_add_category($cat_tree, $categories);
     $children = $cat_tree->get_children();
     $feeds = new FeedsList();
     if (count($children) > 0) {
         $feeds->add_feed($children[0], DEFAULT_FEED_NAME);
     }
     return $feeds;
 }
 function get_feeds_list()
 {
     global $LANG;
     import('content/syndication/feeds_list');
     import('content/syndication/feeds_cat');
     $list = new FeedsList();
     $cats_tree = new FeedsCat($this->cache_file_name, 0, $LANG['root']);
     $this->_build_feeds_sub_list($cats_tree, 0);
     $list->add_feed($cats_tree, DEFAULT_FEED_NAME);
     return $list;
 }
Exemplo n.º 7
0
 function get_feeds_list()
 {
     global $LANG, $Sql;
     import('content/syndication/feeds_list');
     $cats_tree = new FeedsCat('wiki', 0, $LANG['root']);
     $result = $Sql->query_while("SELECT c.id, c.id_parent, a.title\n            FROM " . PREFIX . "wiki_cats c, " . PREFIX . "wiki_articles a\n            WHERE c.article_id = a.id", __LINE__, __FILE__);
     $results = array();
     while ($row = $Sql->fetch_assoc($result)) {
         $results[] = $row;
     }
     $Sql->query_close($result);
     WikiInterface::_build_wiki_cat_children($cats_tree, $results);
     $feeds = new FeedsList();
     $feeds->add_feed($cats_tree, DEFAULT_FEED_NAME);
     return $feeds;
 }
 function get_feeds_list()
 {
     global $LANG;
     $feed = array();
     $categories = $this->_get_cats_tree();
     import('content/syndication/feeds_list');
     $cat_tree = new FeedsCat('articles', 0, $LANG['root']);
     ArticlesInterface::_feeds_add_category($cat_tree, $categories);
     $children = $cat_tree->get_children();
     $feeds = new FeedsList();
     if (count($children) > 0) {
         $feeds->add_feed($children[0], DEFAULT_FEED_NAME);
     }
     return $feeds;
 }