2017-06-21 06:30:14 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace SilverStripe\Reports\Tests\ReportTest;
|
|
|
|
|
|
|
|
use SilverStripe\Dev\TestOnly;
|
2024-09-23 04:35:07 +02:00
|
|
|
use SilverStripe\Model\List\ArrayList;
|
2017-06-21 06:30:14 +02:00
|
|
|
use SilverStripe\Reports\Report;
|
|
|
|
|
2024-09-10 06:42:23 +02:00
|
|
|
abstract class FakeReportAbstract extends Report implements TestOnly
|
2017-06-21 06:30:14 +02:00
|
|
|
{
|
|
|
|
public function title()
|
|
|
|
{
|
|
|
|
return 'Report title Abstract';
|
|
|
|
}
|
|
|
|
|
|
|
|
public function columns()
|
|
|
|
{
|
|
|
|
return array(
|
|
|
|
"Title" => array(
|
|
|
|
"title" => "Page Title Abstract"
|
|
|
|
)
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
public function sourceRecords($params, $sort, $limit)
|
|
|
|
{
|
|
|
|
return new ArrayList();
|
|
|
|
}
|
|
|
|
|
|
|
|
public function sort()
|
|
|
|
{
|
|
|
|
return 5;
|
|
|
|
}
|
|
|
|
}
|