2016-11-13 08:35:43 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace SilverStripe\Control\Tests\RSS\RSSFeedTest;
|
|
|
|
|
|
|
|
use SilverStripe\View\ViewableData;
|
|
|
|
|
|
|
|
class ItemD extends ViewableData
|
|
|
|
{
|
2016-12-16 05:34:21 +01:00
|
|
|
// ItemD test fields - all fields use casting but Content & AltContent cast as HTMLText
|
|
|
|
private static $casting = array(
|
|
|
|
'Title' => 'Varchar',
|
|
|
|
'Content' => 'HTMLText', // Supports shortcodes
|
|
|
|
);
|
2016-11-13 08:35:43 +01:00
|
|
|
|
2016-12-16 05:34:21 +01:00
|
|
|
public $Title = 'ItemD';
|
|
|
|
public $Content = '<p>ItemD Content [test_shortcode]</p>';
|
2016-11-13 08:35:43 +01:00
|
|
|
|
2016-12-16 05:34:21 +01:00
|
|
|
public function Link()
|
|
|
|
{
|
|
|
|
return 'item-d.html';
|
|
|
|
}
|
2016-11-13 08:35:43 +01:00
|
|
|
|
2016-12-16 05:34:21 +01:00
|
|
|
public function AbsoluteLink()
|
|
|
|
{
|
|
|
|
return 'http://www.example.org/item-d.html';
|
|
|
|
}
|
2016-11-13 08:35:43 +01:00
|
|
|
}
|