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();
Afficher le fichier
Open project: contao/core-bundle
Protected Properties
Méthodes publiques
Method Details
__construct()
public méthode
Set the data from an array
Return an object property
Check whether a property is set
addEnclosure()
public méthode
Property Details
$arrData protected_oe property
protected array $arrData |
Résultat |
array |
|