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
$rssFeeds
Definition:
rss_feed.inc:7
$menu_item
$menu_item
Definition:
rss_feed.inc:5
$table
$table
Definition:
rss_feed.inc:9
$script
$script
Definition:
rss_feed.inc:19
Fakoli\usingFeature
static usingFeature()
Uses the specified framework feature(s).
Definition:
core.inc:388
Fakoli\using
static using()
Import the datamodels, views and manifest for the specified component(s).
Definition:
core.inc:116
RSSFeed
Definition:
rss_feed.inc:8
code
cms.sonjara.com
cms
components
rss_feed
admin
rss_feed.inc
Generated on Tue Mar 23 2021 15:36:14 for CMS by
1.9.1