2017-06-21 06:30:14 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace SilverStripe\Reports\Tests\ReportTest;
|
|
|
|
|
|
|
|
use SilverStripe\Control\Controller;
|
|
|
|
use SilverStripe\Dev\TestOnly;
|
|
|
|
use SilverStripe\ORM\CMSPreviewable;
|
|
|
|
use SilverStripe\ORM\DataObject;
|
|
|
|
|
|
|
|
class FakeObject extends DataObject implements CMSPreviewable, TestOnly
|
|
|
|
{
|
|
|
|
private static $table_name = 'ReportTest_FakeObject';
|
|
|
|
|
|
|
|
private static $db = array(
|
|
|
|
'Title' => 'Varchar'
|
|
|
|
);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return String Absolute URL to the end-user view for this record.
|
|
|
|
* Example: http://mysite.com/my-record
|
|
|
|
*/
|
|
|
|
public function Link()
|
|
|
|
{
|
|
|
|
return Controller::join_links('dummy-link', $this->ID);
|
|
|
|
}
|
|
|
|
|
2024-08-25 23:58:30 +02:00
|
|
|
public function getCMSEditLink(): ?string
|
2017-06-21 06:30:14 +02:00
|
|
|
{
|
|
|
|
return Controller::join_links('dummy-edit-link', $this->ID);
|
|
|
|
}
|
|
|
|
|
|
|
|
public function PreviewLink($action = null)
|
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getMimeType()
|
|
|
|
{
|
|
|
|
return 'text/html';
|
|
|
|
}
|
|
|
|
}
|