mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
API Use new names for renamed classes (#195)
This commit is contained in:
parent
fd5f04395c
commit
61ecdb74e7
@ -21,17 +21,17 @@ use SilverStripe\Forms\GridField\GridFieldPaginator;
|
|||||||
use SilverStripe\Forms\GridField\GridFieldPrintButton;
|
use SilverStripe\Forms\GridField\GridFieldPrintButton;
|
||||||
use SilverStripe\Forms\GridField\GridFieldSortableHeader;
|
use SilverStripe\Forms\GridField\GridFieldSortableHeader;
|
||||||
use SilverStripe\Forms\LiteralField;
|
use SilverStripe\Forms\LiteralField;
|
||||||
use SilverStripe\ORM\ArrayList;
|
use SilverStripe\Model\List\ArrayList;
|
||||||
use SilverStripe\ORM\CMSPreviewable;
|
use SilverStripe\ORM\CMSPreviewable;
|
||||||
use SilverStripe\ORM\DataList;
|
use SilverStripe\ORM\DataList;
|
||||||
use SilverStripe\ORM\DataQuery;
|
use SilverStripe\ORM\DataQuery;
|
||||||
use SilverStripe\ORM\Limitable;
|
use SilverStripe\Model\List\Limitable;
|
||||||
use SilverStripe\ORM\SS_List;
|
use SilverStripe\Model\List\SS_List;
|
||||||
use SilverStripe\Security\Member;
|
use SilverStripe\Security\Member;
|
||||||
use SilverStripe\Security\Permission;
|
use SilverStripe\Security\Permission;
|
||||||
use SilverStripe\Security\Security;
|
use SilverStripe\Security\Security;
|
||||||
use SilverStripe\View\ArrayData;
|
use SilverStripe\Model\ArrayData;
|
||||||
use SilverStripe\View\ViewableData;
|
use SilverStripe\Model\ModelData;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Base "abstract" class creating reports on your data.
|
* Base "abstract" class creating reports on your data.
|
||||||
@ -64,7 +64,7 @@ use SilverStripe\View\ViewableData;
|
|||||||
* @method SS_List|DataList sourceRecords($params = [], $sort = null, $limit = null)
|
* @method SS_List|DataList sourceRecords($params = [], $sort = null, $limit = null)
|
||||||
* List of records to show for this report
|
* List of records to show for this report
|
||||||
*/
|
*/
|
||||||
class Report extends ViewableData
|
class Report extends ModelData
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* This is the title of the report,
|
* This is the title of the report,
|
||||||
|
@ -12,12 +12,12 @@ use SilverStripe\Forms\GridField\GridFieldDataColumns;
|
|||||||
use SilverStripe\Forms\GridField\GridFieldFooter;
|
use SilverStripe\Forms\GridField\GridFieldFooter;
|
||||||
use SilverStripe\Forms\GridField\GridFieldSortableHeader;
|
use SilverStripe\Forms\GridField\GridFieldSortableHeader;
|
||||||
use SilverStripe\Forms\HTMLEditor\HTMLEditorConfig;
|
use SilverStripe\Forms\HTMLEditor\HTMLEditorConfig;
|
||||||
use SilverStripe\ORM\ArrayList;
|
use SilverStripe\Model\List\ArrayList;
|
||||||
use SilverStripe\ORM\SS_List;
|
use SilverStripe\Model\List\SS_List;
|
||||||
use SilverStripe\Security\Member;
|
use SilverStripe\Security\Member;
|
||||||
use SilverStripe\Security\PermissionProvider;
|
use SilverStripe\Security\PermissionProvider;
|
||||||
use SilverStripe\Security\Security;
|
use SilverStripe\Security\Security;
|
||||||
use SilverStripe\View\ArrayData;
|
use SilverStripe\Model\ArrayData;
|
||||||
use SilverStripe\View\Requirements;
|
use SilverStripe\View\Requirements;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -4,12 +4,12 @@ namespace SilverStripe\Reports;
|
|||||||
|
|
||||||
use SilverStripe\Core\Convert;
|
use SilverStripe\Core\Convert;
|
||||||
use SilverStripe\ORM\FieldType\DBField;
|
use SilverStripe\ORM\FieldType\DBField;
|
||||||
use SilverStripe\View\ViewableData;
|
use SilverStripe\Model\ModelData;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Renderer for showing SideReports in CMSMain
|
* Renderer for showing SideReports in CMSMain
|
||||||
*/
|
*/
|
||||||
class SideReportView extends ViewableData
|
class SideReportView extends ModelData
|
||||||
{
|
{
|
||||||
protected $controller;
|
protected $controller;
|
||||||
protected $report;
|
protected $report;
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
namespace SilverStripe\Reports\Tests\ReportAdminTest;
|
namespace SilverStripe\Reports\Tests\ReportAdminTest;
|
||||||
|
|
||||||
use SilverStripe\Dev\TestOnly;
|
use SilverStripe\Dev\TestOnly;
|
||||||
use SilverStripe\ORM\ArrayList;
|
use SilverStripe\Model\List\ArrayList;
|
||||||
use SilverStripe\Reports\Report;
|
use SilverStripe\Reports\Report;
|
||||||
use SilverStripe\Security\Member;
|
use SilverStripe\Security\Member;
|
||||||
|
|
||||||
|
@ -6,7 +6,7 @@ use SilverStripe\Control\Controller;
|
|||||||
use SilverStripe\Dev\TestOnly;
|
use SilverStripe\Dev\TestOnly;
|
||||||
use SilverStripe\Reports\Report;
|
use SilverStripe\Reports\Report;
|
||||||
use SilverStripe\Reports\ReportAdmin;
|
use SilverStripe\Reports\ReportAdmin;
|
||||||
use SilverStripe\View\ArrayData;
|
use SilverStripe\Model\ArrayData;
|
||||||
|
|
||||||
class FakeReport2 extends Report implements TestOnly
|
class FakeReport2 extends Report implements TestOnly
|
||||||
{
|
{
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
namespace SilverStripe\Reports\Tests\ReportTest;
|
namespace SilverStripe\Reports\Tests\ReportTest;
|
||||||
|
|
||||||
use SilverStripe\Dev\TestOnly;
|
use SilverStripe\Dev\TestOnly;
|
||||||
use SilverStripe\ORM\ArrayList;
|
use SilverStripe\Model\List\ArrayList;
|
||||||
use SilverStripe\Reports\Report;
|
use SilverStripe\Reports\Report;
|
||||||
|
|
||||||
class FakeReport extends Report implements TestOnly
|
class FakeReport extends Report implements TestOnly
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
namespace SilverStripe\Reports\Tests\ReportTest;
|
namespace SilverStripe\Reports\Tests\ReportTest;
|
||||||
|
|
||||||
use SilverStripe\Dev\TestOnly;
|
use SilverStripe\Dev\TestOnly;
|
||||||
use SilverStripe\ORM\ArrayList;
|
use SilverStripe\Model\List\ArrayList;
|
||||||
use SilverStripe\Reports\Report;
|
use SilverStripe\Reports\Report;
|
||||||
|
|
||||||
class FakeReport2 extends Report implements TestOnly
|
class FakeReport2 extends Report implements TestOnly
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
namespace SilverStripe\Reports\Tests\ReportTest;
|
namespace SilverStripe\Reports\Tests\ReportTest;
|
||||||
|
|
||||||
use SilverStripe\Dev\TestOnly;
|
use SilverStripe\Dev\TestOnly;
|
||||||
use SilverStripe\ORM\ArrayList;
|
use SilverStripe\Model\List\ArrayList;
|
||||||
use SilverStripe\Reports\Report;
|
use SilverStripe\Reports\Report;
|
||||||
|
|
||||||
class FakeReport3 extends Report implements TestOnly
|
class FakeReport3 extends Report implements TestOnly
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
namespace SilverStripe\Reports\Tests\ReportTest;
|
namespace SilverStripe\Reports\Tests\ReportTest;
|
||||||
|
|
||||||
use SilverStripe\Dev\TestOnly;
|
use SilverStripe\Dev\TestOnly;
|
||||||
use SilverStripe\ORM\ArrayList;
|
use SilverStripe\Model\List\ArrayList;
|
||||||
use SilverStripe\Reports\Report;
|
use SilverStripe\Reports\Report;
|
||||||
|
|
||||||
abstract class FakeReportAbstract extends Report implements TestOnly
|
abstract class FakeReportAbstract extends Report implements TestOnly
|
||||||
|
Loading…
Reference in New Issue
Block a user