silverstripe-framework/tests/php/Control/RSS/RSSFeedTest/ItemD.php
Guy Sartorelli e2e32317d6
API Move various classes to more appropriate namespaces (#11370)
Also rename ViewableData to ModelData ahead of the template layer
lift-and-shift
2024-09-23 14:31:50 +12:00

28 lines
612 B
PHP

<?php
namespace SilverStripe\Control\Tests\RSS\RSSFeedTest;
use SilverStripe\Model\ModelData;
class ItemD extends ModelData
{
// ItemD test fields - all fields use casting but Content & AltContent cast as HTMLText
private static $casting = [
'Title' => 'Varchar',
'Content' => 'HTMLText', // Supports shortcodes
];
public $Title = 'ItemD';
public $Content = '<p>ItemD Content [test_shortcode]</p>';
public function Link()
{
return 'item-d.html';
}
public function AbsoluteLink()
{
return 'http://www.example.org/item-d.html';
}
}