2016-11-13 08:35:43 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace SilverStripe\Control\Tests\RSS\RSSFeedTest;
|
|
|
|
|
|
|
|
use SilverStripe\View\ViewableData;
|
|
|
|
|
|
|
|
class ItemB extends ViewableData
|
|
|
|
{
|
2016-12-16 05:34:21 +01:00
|
|
|
// ItemB tests without $casting
|
2016-11-13 08:35:43 +01:00
|
|
|
|
2016-12-16 05:34:21 +01:00
|
|
|
public function Title()
|
|
|
|
{
|
|
|
|
return "ItemB";
|
|
|
|
}
|
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-b.html";
|
|
|
|
}
|
2016-11-13 08:35:43 +01:00
|
|
|
|
2016-12-16 05:34:21 +01:00
|
|
|
public function Content()
|
|
|
|
{
|
|
|
|
return "ItemB Content";
|
|
|
|
}
|
2016-11-13 08:35:43 +01:00
|
|
|
|
2016-12-16 05:34:21 +01:00
|
|
|
public function AltContent()
|
|
|
|
{
|
|
|
|
return "ItemB AltContent";
|
|
|
|
}
|
2016-11-13 08:35:43 +01:00
|
|
|
}
|