PHP Class Contao\FeedItem
The class provides an interface to create RSS or Atom feed items. You can
then add the items to a Feed object.
Usage:
$feed = new Feed('news');
$feed->title = 'News feed';
$item = new FeedItem();
$item->title = 'Latest news';
$item->author = 'Leo Feyer';
$feed->addItem($item);
echo $feed->generateRss();
ファイルを表示
Open project: contao/core-bundle
Protected Properties
Public Methods
Method Details
__construct()
public method
Set the data from an array
Return an object property
Check whether a property is set
addEnclosure()
public method
Property Details
$arrData protected_oe property
protected array $arrData |
return |
array |
|