silverstripe-framework/tests/php/Control/RSS/RSSFeedTest/ItemC.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

29 lines
581 B
PHP

<?php
namespace SilverStripe\Control\Tests\RSS\RSSFeedTest;
use SilverStripe\Model\ModelData;
class ItemC extends ModelData
{
// ItemC tests fields - Title has casting, Content doesn't.
private static $casting = [
'Title' => 'Varchar',
'AltContent' => 'Text',
];
public $Title = "ItemC";
public $Content = "ItemC Content";
public $AltContent = "ItemC AltContent";
public function Link()
{
return "item-c.html";
}
public function AbsoluteLink()
{
return "http://www.example.com/item-c.html";
}
}