mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
29 lines
531 B
PHP
29 lines
531 B
PHP
|
<?php
|
||
|
|
||
|
namespace SilverStripe\Control\Tests\RSS\RSSFeedTest;
|
||
|
|
||
|
use SilverStripe\View\ViewableData;
|
||
|
|
||
|
class ItemC extends ViewableData
|
||
|
{
|
||
|
// ItemC tests fields - Title has casting, Content doesn't.
|
||
|
private static $casting = array(
|
||
|
'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";
|
||
|
}
|
||
|
}
|