Feed
class Feed implements ArrayAccess, Countable
Class to encapsulate a feed for the Joomla Platform.
Properties
Methods
Magic method to return values for feed properties.
Magic method to set values for feed properties.
Method to add a category to the feed object.
Method to add a contributor to the feed object.
Returns a count of the number of entries in the feed.
Whether or not an offset exists. This method is executed when using isset() or empty() on objects implementing ArrayAccess.
Returns the value at specified offset.
Unsets an offset.
Method to remove a category from the feed object.
Shortcut method to set the author for the feed object.
Method to reverse the items if display is set to 'oldest first'
Details
Feed
addContributor(
string $name,
string $email,
string $uri = null,
string $type = null)
Method to add a contributor to the feed object.
integer
count()
Returns a count of the number of entries in the feed.
This method is here to implement the Countable interface. You can call it by doing count($feed) rather than $feed->count();
boolean
offsetExists(
mixed $offset)
Whether or not an offset exists. This method is executed when using isset() or empty() on objects implementing ArrayAccess.
Feed
removeContributor(
FeedPerson $contributor)
Method to remove a contributor from the feed object.
Feed
setAuthor(
string $name,
string $email,
string $uri = null,
string $type = null)
Shortcut method to set the author for the feed object.