mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
35 lines
615 B
PHP
35 lines
615 B
PHP
<?php
|
|
|
|
namespace SilverStripe\Reports\Tests\ReportTest;
|
|
|
|
use SilverStripe\Dev\TestOnly;
|
|
use SilverStripe\Model\List\ArrayList;
|
|
use SilverStripe\Reports\Report;
|
|
|
|
class FakeReport2 extends Report implements TestOnly
|
|
{
|
|
public function title()
|
|
{
|
|
return 'Report title 2';
|
|
}
|
|
|
|
public function columns()
|
|
{
|
|
return array(
|
|
"Title" => array(
|
|
"title" => "Page Title 2"
|
|
)
|
|
);
|
|
}
|
|
|
|
public function sourceRecords($params, $sort, $limit)
|
|
{
|
|
return new ArrayList();
|
|
}
|
|
|
|
public function sort()
|
|
{
|
|
return 98;
|
|
}
|
|
}
|