CMS  Version 3.9
rss_feed.inc
Go to the documentation of this file.
1 <?php
2 Fakoli::using("rss_feed");
3 Fakoli::usingFeature("data_view");
4 
5 $menu_item="RSS Feeds";
6 
7 $rssFeeds = Query::create(RSSFeed, "ORDER BY rss_feed_id")->execute();
8 
9 $table = new DataListView($rssFeeds, "rss_feeds");
10 $table->column("Feed Title", "<a href='/admin/rss_feed_form?rss_feed_id={rss_feed_id}'>{rss_title}</a>", true)
11  ->column("Articles", "<a href='/admin/rss_feed_articles?rss_feed_id={rss_feed_id}'>View Stored Articles</a>", true)
12  ->column("Last Updated", "{last_updated}", true)
13  ;
14 
15 $table->emptyMessage = "No RSS feeds defined.";
16 $table->enableDragReorder("/action/rss_feed/reorder_rss_feeds");
17 $table->dragText = "<span style='font-size: 10px'>Click and drag to change the order of the feeds</span>";
18 
19 $script .= $table->writeScript();
20 
21 $table->drawView();
22 ?>
23 <br/>
24 <a href='/admin/rss_feed_form' class='button'>New RSS Feed</a>
25 <a href='/admin/pull_feeds' class='button'>Update Feeds</a>
$rssFeeds
Definition: rss_feed.inc:7
$menu_item
Definition: rss_feed.inc:5
$table
Definition: rss_feed.inc:9
$script
Definition: rss_feed.inc:19
static usingFeature()
Uses the specified framework feature(s).
Definition: core.inc:388
static using()
Import the datamodels, views and manifest for the specified component(s).
Definition: core.inc:116