CMS  Version 3.9
rss.inc File Reference

Go to the source code of this file.

Variables

 $blog_id = checkNumeric($_GET["blog_id"])
 
 $identifier = checkIdentifier($_GET["blog"])
 
if(! $blog_id &&! $identifier) if($blog_idelse
 
if(! $blog->published||! $blog->enable_rss_feed||!checkRole($blog->allow_read)) $url = $blog->getURL()
 
 $constraint = ($blog->max_rss_articles) ? "LIMIT {$blog->max_rss_articles}" : ""
 
 $articles = $blog->Articles()
 
 $timestamp = date("r")
 
 $xmlArticles = formatItems($articles, "<item>\n\t<title>{title:xml}</title>\n\t<description>{message:xml}</description>\n\t<link>{$url}?article_id={article_id}</link>\n\t<author>{author:xml}</author>\n\t<guid>{$url}?article_id={article_id}</guid>\n\t<pubDate>{publish_date:r}</pubDate>\n</item>","\n")
 

Variable Documentation

◆ $articles

$articles = $blog->Articles()

Definition at line 62 of file rss.inc.

◆ $blog_id

$blog_id = checkNumeric($_GET["blog_id"])

Definition at line 36 of file rss.inc.

◆ $constraint

$constraint = ($blog->max_rss_articles) ? "LIMIT {$blog->max_rss_articles}" : ""

Definition at line 60 of file rss.inc.

◆ $identifier

$identifier = checkIdentifier($_GET["blog"])

Definition at line 37 of file rss.inc.

◆ $timestamp

$timestamp = date("r")

Definition at line 63 of file rss.inc.

◆ $url

if (! $blog->published||! $blog->enable_rss_feed||!checkRole( $blog->allow_read)) $url = $blog->getURL()

Definition at line 58 of file rss.inc.

◆ $xmlArticles

$xmlArticles = formatItems($articles, "<item>\n\t<title>{title:xml}</title>\n\t<description>{message:xml}</description>\n\t<link>{$url}?article_id={article_id}</link>\n\t<author>{author:xml}</author>\n\t<guid>{$url}?article_id={article_id}</guid>\n\t<pubDate>{publish_date:r}</pubDate>\n</item>","\n")

Definition at line 65 of file rss.inc.

◆ else

if (! $blog_id &&! $identifier) if ( $blog_id) else
Initial value:
{
$blog
static findByIdentifier($identifier)
Definition: blog.inc:155
$identifier
Definition: rss.inc:37

Definition at line 48 of file rss.inc.