FeedItem

Data object representing a feed item

since

1.7.0

Methods

setEnclosure

Set the FeedEnclosure for this item

setEnclosure(\Joomla\CMS\Document\Feed\FeedEnclosure $enclosure) : \Joomla\CMS\Document\Feed\FeedItem
since

1.7.0

Arguments

$enclosure

\Joomla\CMS\Document\Feed\FeedEnclosureThe FeedEnclosure to add to the feed.

Response

\Joomla\CMS\Document\Feed\FeedIteminstance of $this to allow chaining

Properties

title

Title item element

required

since

1.7.0

Type(s)

string

description

Description item element

required

since

1.7.0

Type(s)

string

author

Author item element

optional

since

1.7.0

Type(s)

string

authorEmail

Author email element

optional

since

1.7.0

Type(s)

string

category

Category element

optional

since

1.7.0

Type(s)

array

comments

Comments element

optional

since

1.7.0

Type(s)

string

enclosure

Enclosure element

guid

Guid element

optional

since

1.7.0

Type(s)

string

date

Published date

optional

May be in one of the following formats:

RFC 822: "Mon, 20 Jan 03 18:05:41 +0400" "20 Jan 03 18:05:41 +0000"

ISO 8601: "2003-01-20T18:05:41+04:00"

Unix: 1043082341

since

1.7.0

Type(s)

string

source

Source element

optional

since

1.7.0

Type(s)

string