mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
37 lines
681 B
PHP
37 lines
681 B
PHP
|
<?php
|
||
|
namespace SilverStripe\Reports\Tests;
|
||
|
|
||
|
use SilverStripe\Dev\TestOnly;
|
||
|
use SilverStripe\ORM\ArrayList;
|
||
|
use SilverStripe\Reports\Report;
|
||
|
|
||
|
/**
|
||
|
* @package reports
|
||
|
* @subpackage tests
|
||
|
*/
|
||
|
class ReportTest_FakeTest extends Report implements TestOnly
|
||
|
{
|
||
|
public function title()
|
||
|
{
|
||
|
return 'Report title';
|
||
|
}
|
||
|
public function columns()
|
||
|
{
|
||
|
return array(
|
||
|
"Title" => array(
|
||
|
"title" => "Page Title",
|
||
|
"link" => true,
|
||
|
)
|
||
|
);
|
||
|
}
|
||
|
public function sourceRecords($params, $sort, $limit)
|
||
|
{
|
||
|
return new ArrayList();
|
||
|
}
|
||
|
|
||
|
public function sort()
|
||
|
{
|
||
|
return 100;
|
||
|
}
|
||
|
}
|