2016-11-13 08:35:43 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace SilverStripe\Control\Tests\RSS\RSSFeedTest;
|
|
|
|
|
|
|
|
use SilverStripe\View\ViewableData;
|
|
|
|
|
|
|
|
class ItemC extends ViewableData
|
|
|
|
{
|
2016-12-16 05:34:21 +01:00
|
|
|
// ItemC tests fields - Title has casting, Content doesn't.
|
2020-04-20 19:58:09 +02:00
|
|
|
private static $casting = [
|
2016-12-16 05:34:21 +01:00
|
|
|
'Title' => 'Varchar',
|
|
|
|
'AltContent' => 'Text',
|
2020-04-20 19:58:09 +02:00
|
|
|
];
|
2016-11-13 08:35:43 +01:00
|
|
|
|
2016-12-16 05:34:21 +01:00
|
|
|
public $Title = "ItemC";
|
|
|
|
public $Content = "ItemC Content";
|
|
|
|
public $AltContent = "ItemC AltContent";
|
2016-11-13 08:35:43 +01:00
|
|
|
|
2016-12-16 05:34:21 +01:00
|
|
|
public function Link()
|
|
|
|
{
|
|
|
|
return "item-c.html";
|
|
|
|
}
|
2016-11-13 08:35:43 +01:00
|
|
|
|
2016-12-16 05:34:21 +01:00
|
|
|
public function AbsoluteLink()
|
|
|
|
{
|
|
|
|
return "http://www.example.com/item-c.html";
|
|
|
|
}
|
2016-11-13 08:35:43 +01:00
|
|
|
}
|