The getFeedItem() method of a table delegate class returns an associative array of parameters for a record as it should appear as part of an RSS feed. An RSS feed item consists of the following components:
title - The title of the record as it appears in the RSS feed.
description - The description of the record for the RSS feed. This is really the body of the RSS feed item.
link - The linkback URL if users want to know more about the record.
date - The date that the record was posted/modified.
author - The name of the person who posted this record.
source - URL to the site where record originated from.
Parameters
Dataface_Record &$record - The record that is being represented in an RSS feed.
Return Value
The getFeedItem() method returns an associative array with the components of the RSS feed. This array does not need to contain all possible keys, or even any keys. Any keys that are omitted will simply use default values in the RSS feed. The array may contain the following keys:
Name
Description
Version
title
The record title as it appears in RSS feeds. If this is omitted, the RSS feed will simply use the output of Dataface_Record'sgetTitle() method.
1.0
description
The record description. This is used in the main body of the RSS feed. If this is omitted, the RSS feed will use an HTML table that shows all of the field data in the record. This value can also be overridden using the getRSSDescription? method of the delegate class.
1.0
link
The URL to this record. If this is omitted it just points to the view tab for this record. However you can direct it anywhere you like. When the user clicks on the "More Info" link in his RSS reader it will direct him to this link.
1.0
date
The date that this record was posted or last modified. This is the date that an RSS reader will use to decide if it has already loaded the record yet. If this is omitted it will try the Dataface_Record'sgetLastModified() method to obtain the last modified date of the record. Failing that, it will use Dataface_Record'sgetCreated() method to try to obtain the creation date of the record. This date should be a unix timestamp.
1.0
author
The name of the user who posted this record. If this is omitted, then it will try to use Dataface_Record'sgetCreator() method. Failing that, it will use the value of the default_author parameter in the [_feed] section of the conf.ini file. If that is not defined, then it simply uses the string "Site Administrator".
1.0
source
The source URL where the feed is to have originated. If none is specified, then it will use the value of the source parameter in the [_feed] section of the conf.ini file. Failing that, it will simply use the URL to the application.
Note that you can alternatively define this value using the getFeedSource? method.
getRSSDescription? - A delegate class method to override the description that appears for a particular record in an RSS feed. (The same as the description parameter of the getFeedItem method.