mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
28 lines
622 B
PHP
28 lines
622 B
PHP
<?php
|
|
|
|
namespace SilverStripe\Control\Tests\RSS\RSSFeedTest;
|
|
|
|
use SilverStripe\View\ViewableData;
|
|
|
|
class ItemD extends ViewableData
|
|
{
|
|
// ItemD test fields - all fields use casting but Content & AltContent cast as HTMLText
|
|
private static $casting = array(
|
|
'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';
|
|
}
|
|
}
|