From 3df8a505c3c23c31d8c4eda7f349e1f593d4f55d Mon Sep 17 00:00:00 2001 From: Guy Sartorelli Date: Thu, 12 Sep 2024 12:22:11 +1200 Subject: [PATCH] API Use new names for renamed classes --- code/Report.php | 12 ++++++------ code/ReportAdmin.php | 6 +++--- code/SideReportView.php | 4 ++-- tests/ReportAdminTest/FakeReport.php | 2 +- tests/ReportAdminTest/FakeReport2.php | 2 +- tests/ReportTest/FakeTest.php | 2 +- tests/ReportTest/FakeTest2.php | 2 +- tests/ReportTest/FakeTest3.php | 2 +- tests/ReportTest/FakeTestAbstract.php | 2 +- 9 files changed, 17 insertions(+), 17 deletions(-) diff --git a/code/Report.php b/code/Report.php index bce53349..e09a6841 100644 --- a/code/Report.php +++ b/code/Report.php @@ -21,17 +21,17 @@ use SilverStripe\Forms\GridField\GridFieldPrintButton; use SilverStripe\Forms\GridField\GridFieldSortableHeader; use SilverStripe\Forms\LiteralField; -use SilverStripe\ORM\ArrayList; +use SilverStripe\Model\List\ArrayList; use SilverStripe\ORM\CMSPreviewable; use SilverStripe\ORM\DataList; use SilverStripe\ORM\DataQuery; -use SilverStripe\ORM\Limitable; -use SilverStripe\ORM\SS_List; +use SilverStripe\Model\List\Limitable; +use SilverStripe\Model\List\SS_List; use SilverStripe\Security\Member; use SilverStripe\Security\Permission; use SilverStripe\Security\Security; -use SilverStripe\View\ArrayData; -use SilverStripe\View\ViewableData; +use Silverstripe\Model\ArrayData; +use SilverStripe\Model\ModelData; /** * Base "abstract" class creating reports on your data. @@ -64,7 +64,7 @@ * @method SS_List|DataList sourceRecords($params = [], $sort = null, $limit = null) * List of records to show for this report */ -class Report extends ViewableData +class Report extends ModelData { /** * This is the title of the report, diff --git a/code/ReportAdmin.php b/code/ReportAdmin.php index 397037ed..401b2151 100644 --- a/code/ReportAdmin.php +++ b/code/ReportAdmin.php @@ -12,12 +12,12 @@ use SilverStripe\Forms\GridField\GridFieldFooter; use SilverStripe\Forms\GridField\GridFieldSortableHeader; use SilverStripe\Forms\HTMLEditor\HTMLEditorConfig; -use SilverStripe\ORM\ArrayList; -use SilverStripe\ORM\SS_List; +use SilverStripe\Model\List\ArrayList; +use SilverStripe\Model\List\SS_List; use SilverStripe\Security\Member; use SilverStripe\Security\PermissionProvider; use SilverStripe\Security\Security; -use SilverStripe\View\ArrayData; +use Silverstripe\Model\ArrayData; use SilverStripe\View\Requirements; /** diff --git a/code/SideReportView.php b/code/SideReportView.php index 5a79526c..5ad8ff06 100644 --- a/code/SideReportView.php +++ b/code/SideReportView.php @@ -4,12 +4,12 @@ use SilverStripe\Core\Convert; use SilverStripe\ORM\FieldType\DBField; -use SilverStripe\View\ViewableData; +use SilverStripe\Model\ModelData; /** * Renderer for showing SideReports in CMSMain */ -class SideReportView extends ViewableData +class SideReportView extends ModelData { protected $controller; protected $report; diff --git a/tests/ReportAdminTest/FakeReport.php b/tests/ReportAdminTest/FakeReport.php index 72242343..7797a1a3 100644 --- a/tests/ReportAdminTest/FakeReport.php +++ b/tests/ReportAdminTest/FakeReport.php @@ -3,7 +3,7 @@ namespace SilverStripe\Reports\Tests\ReportAdminTest; use SilverStripe\Dev\TestOnly; -use SilverStripe\ORM\ArrayList; +use SilverStripe\Model\List\ArrayList; use SilverStripe\Reports\Report; use SilverStripe\Security\Member; diff --git a/tests/ReportAdminTest/FakeReport2.php b/tests/ReportAdminTest/FakeReport2.php index a4ee7406..3a1c352a 100644 --- a/tests/ReportAdminTest/FakeReport2.php +++ b/tests/ReportAdminTest/FakeReport2.php @@ -6,7 +6,7 @@ use SilverStripe\Dev\TestOnly; use SilverStripe\Reports\Report; use SilverStripe\Reports\ReportAdmin; -use SilverStripe\View\ArrayData; +use Silverstripe\Model\ArrayData; class FakeReport2 extends Report implements TestOnly { diff --git a/tests/ReportTest/FakeTest.php b/tests/ReportTest/FakeTest.php index 7194ba55..fc69fa10 100644 --- a/tests/ReportTest/FakeTest.php +++ b/tests/ReportTest/FakeTest.php @@ -3,7 +3,7 @@ namespace SilverStripe\Reports\Tests\ReportTest; use SilverStripe\Dev\TestOnly; -use SilverStripe\ORM\ArrayList; +use SilverStripe\Model\List\ArrayList; use SilverStripe\Reports\Report; class FakeTest extends Report implements TestOnly diff --git a/tests/ReportTest/FakeTest2.php b/tests/ReportTest/FakeTest2.php index 736de851..fa1a28db 100644 --- a/tests/ReportTest/FakeTest2.php +++ b/tests/ReportTest/FakeTest2.php @@ -3,7 +3,7 @@ namespace SilverStripe\Reports\Tests\ReportTest; use SilverStripe\Dev\TestOnly; -use SilverStripe\ORM\ArrayList; +use SilverStripe\Model\List\ArrayList; use SilverStripe\Reports\Report; class FakeTest2 extends Report implements TestOnly diff --git a/tests/ReportTest/FakeTest3.php b/tests/ReportTest/FakeTest3.php index b327303c..3f6f6557 100644 --- a/tests/ReportTest/FakeTest3.php +++ b/tests/ReportTest/FakeTest3.php @@ -3,7 +3,7 @@ namespace SilverStripe\Reports\Tests\ReportTest; use SilverStripe\Dev\TestOnly; -use SilverStripe\ORM\ArrayList; +use SilverStripe\Model\List\ArrayList; use SilverStripe\Reports\Report; class FakeTest3 extends Report implements TestOnly diff --git a/tests/ReportTest/FakeTestAbstract.php b/tests/ReportTest/FakeTestAbstract.php index 08aadb6d..343ebbfd 100644 --- a/tests/ReportTest/FakeTestAbstract.php +++ b/tests/ReportTest/FakeTestAbstract.php @@ -3,7 +3,7 @@ namespace SilverStripe\Reports\Tests\ReportTest; use SilverStripe\Dev\TestOnly; -use SilverStripe\ORM\ArrayList; +use SilverStripe\Model\List\ArrayList; use SilverStripe\Reports\Report; abstract class FakeTestAbstract extends Report implements TestOnly