CMS  Version 3.9
RSSFeedArticles Class Reference

Inherits DataItem.

Public Member Functions

 RSSFeed ()
 

Static Public Member Functions

static getPublishedArticles ($limit=10)
 

Public Attributes

 $table = "rss_feed_articles"
 
 $primary_key = "rss_article_id"
 
 $fields
 
 $relations = array("RSSFeed" => RSSFeed)
 

Detailed Description

Definition at line 7 of file rss_feed_articles.inc.

Member Function Documentation

◆ getPublishedArticles()

static RSSFeedArticles::getPublishedArticles (   $limit = 10)
static

Definition at line 33 of file rss_feed_articles.inc.

34  {
35  return Query::create(RSSFeedArticles, "WHERE publish_status=1 ORDER BY article_date DESC LIMIT $limit")->execute();
36  }

◆ RSSFeed()

RSSFeedArticles::RSSFeed ( )

Definition at line 28 of file rss_feed_articles.inc.

29  {
30  return $this->getRelated(RSSFeed);
31  }

Member Data Documentation

◆ $fields

RSSFeedArticles::$fields
Initial value:
= array(
"rss_article_id" => Number,
"rss_title" => Text,
"rss_feed_id" => Number,
"rss_article_author" => String,
"rss_article_newsStory" => Text,
"rss_article_content" => Text,
"rss_article_URL" => String,
"rss_thumbnail" => String,
"article_date" => DateTime,
"publish_status" => Boolean,
"date_added" => Timestamp
)

Definition at line 12 of file rss_feed_articles.inc.

◆ $primary_key

RSSFeedArticles::$primary_key = "rss_article_id"

Definition at line 10 of file rss_feed_articles.inc.

◆ $relations

RSSFeedArticles::$relations = array("RSSFeed" => RSSFeed)

Definition at line 26 of file rss_feed_articles.inc.

◆ $table

RSSFeedArticles::$table = "rss_feed_articles"

Definition at line 9 of file rss_feed_articles.inc.


The documentation for this class was generated from the following file: