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 */