From 7917df81edf9e5094e6896d0c206bb5eb544bb68 Mon Sep 17 00:00:00 2001 From: Sam Minnee Date: Thu, 7 Feb 2008 03:08:30 +0000 Subject: [PATCH] #1956 - Show Title in RSSFeed git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@49177 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- api/RSSFeed.php | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/api/RSSFeed.php b/api/RSSFeed.php index 1553ecb53..ecf05c942 100755 --- a/api/RSSFeed.php +++ b/api/RSSFeed.php @@ -13,6 +13,14 @@ * @subpackage integration */ class RSSFeed extends ViewableData { + /** + * Casting information for this object's methods. + * Let's us use $Title.XML in templates + */ + public static $casting = array( + "Title" => "Varchar", + "Description" => "Varchar", + ); /** * Holds the feed entries @@ -57,7 +65,7 @@ class RSSFeed extends ViewableData { protected $descriptionField; /** - Name of the author field of feed entries + * Name of the author field of feed entries * * @var string */ @@ -197,7 +205,6 @@ class RSSFeed extends ViewableData { * @subpackage integration */ class RSSFeed_Entry extends ViewableData { - /** * The object that represents the item, it contains all the data. * @@ -220,7 +227,7 @@ class RSSFeed_Entry extends ViewableData { protected $descriptionField; /** - Name of the author field of feed entries + * Name of the author field of feed entries * * @var string */