The class create a valid RSS XML.
$rss = new Domframework\Rss ();
$rss->title ("Global Title")
->link ("http://localhost")
->language ("fr-fr")
->description ("The Super Global Description");
$rss->addItem ()->title ("Item1 Title")
->link ("http://Item1Link")
->description ("Item1 Description");
$rss->addItem ()->title ("Item2 Title")
->pubDate ("2017-04-13 12:25:30")
->link ("http://Item2Link")
->description ("Item2 Description");
$res = $rss->asXML ();
Namespace Domframework
/** Create the RSS pages for the websites Specification http://www.rssboard.org/rss-specification Will use RssItem class
No property available
/** Add a new item to the RSS Return the new rss object created
/** Return the complete RSS in XML format Throw an exception if there is some mandatory fields missing
/**
Get/Set the value
@param string|null $description
The description to get/set
/**
Get/Set the value
@param string|null $language
The language to get/set
/**
Get/Set the value
The date must be in the SQL format Y-m-d H:i:s
@param string|null $lastBuildDate
The lastBuildDate to get/set
/**
Get/Set the value
@param string|null $link
The link to get/set
/**
Get/Set the value
@param string|null $title
The title to get/set