silverstripe-reports/tests/ReportTest/FakeReport2.php

35 lines
615 B
PHP
Raw Normal View History

2017-06-21 06:30:14 +02:00
<?php
namespace SilverStripe\Reports\Tests\ReportTest;
use SilverStripe\Dev\TestOnly;
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
class FakeReport2 extends Report implements TestOnly
2017-06-21 06:30:14 +02:00
{
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;
}
}