mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
e2e32317d6
Also rename ViewableData to ModelData ahead of the template layer lift-and-shift
31 lines
489 B
PHP
31 lines
489 B
PHP
<?php
|
|
|
|
namespace SilverStripe\Control\Tests\RSS\RSSFeedTest;
|
|
|
|
use SilverStripe\Model\ModelData;
|
|
|
|
class ItemB extends ModelData
|
|
{
|
|
// ItemB tests without $casting
|
|
|
|
public function Title()
|
|
{
|
|
return "ItemB";
|
|
}
|
|
|
|
public function AbsoluteLink()
|
|
{
|
|
return "http://www.example.com/item-b.html";
|
|
}
|
|
|
|
public function Content()
|
|
{
|
|
return "ItemB Content";
|
|
}
|
|
|
|
public function AltContent()
|
|
{
|
|
return "ItemB AltContent";
|
|
}
|
|
}
|