Inherits DataItem.
Definition at line 7 of file rss_feed.inc.
◆ Articles()
RSSFeed::Articles |
( |
|
$constraint = "" | ) |
|
◆ findArticleByURL()
RSSFeed::findArticleByURL |
( |
|
$url | ) |
|
Definition at line 49 of file rss_feed.inc.
51 return Query::create(
RSSFeedArticles,
"WHERE rss_feed_id=:f AND rss_article_URL=:u")
52 ->bind(
":f", $this->rss_feed_id,
":u",
$url)
◆ getrssFeedsForUser()
static RSSFeed::getrssFeedsForUser |
( |
|
$user_id | ) |
|
|
static |
Definition at line 35 of file rss_feed.inc.
37 $feeds = Query::create(rssFeed,
"WHERE rss_feed_id in (SELECT rss_feed_id FROM rss_feed_articles where user_id=:u) ORDER BY sort_order")
41 if (count($feeds) == 0)
43 $feeds = Query::create(rssFeed,
"WHERE feed_status=1 ORDER BY sort_order")->execute();
◆ $fieldAliases
Initial value:= array(
"feed_status" => "Active",
"rss_trusted" => "Trusted Feed"
)
Definition at line 25 of file rss_feed.inc.
◆ $fields
Initial value:= array(
"rss_feed_id" => Number,
"rss_title" => String,
"rss_url" => String,
"rss_trusted" => Boolean,
"last_updated" => Timestamp,
"feed_status" => Boolean
)
Definition at line 12 of file rss_feed.inc.
◆ $primary_key
RSSFeed::$primary_key = "rss_feed_id" |
◆ $relations
◆ $table
RSSFeed::$table = "rss_feed" |
The documentation for this class was generated from the following file:
- C:/code/cms.sonjara.com/cms/components/rss_feed/datamodel/rss_feed.inc