]> _ Git - cubist_cms-back.git/commitdiff
wip #3439 @0.25
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 27 Feb 2020 15:29:57 +0000 (16:29 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Thu, 27 Feb 2020 15:29:57 +0000 (16:29 +0100)
src/app/Magic/Controllers/CubistMagicController.php
src/app/Magic/Controllers/CubistMagicNestedController.php
src/app/Magic/Models/CubistMagicAbstractModel.php

index ec506c3bb9de8da4b6436dd95c570bb32d1a80d0..6852bf3ded3df87e5a2b91b875157576d2b7318f 100644 (file)
@@ -3,6 +3,14 @@
 
 namespace Cubist\Backpack\app\Magic\Controllers;
 
+use Backpack\CRUD\app\Http\Controllers\Operations\BulkCloneOperation;
+use Backpack\CRUD\app\Http\Controllers\Operations\BulkDeleteOperation;
+use Backpack\CRUD\app\Http\Controllers\Operations\CloneOperation;
+use Backpack\CRUD\app\Http\Controllers\Operations\CreateOperation;
+use Backpack\CRUD\app\Http\Controllers\Operations\DeleteOperation;
+use Backpack\CRUD\app\Http\Controllers\Operations\ListOperation;
+use Backpack\CRUD\app\Http\Controllers\Operations\RevisionsOperation;
+use Backpack\CRUD\app\Http\Controllers\Operations\UpdateOperation;
 use Backpack\CRUD\app\Models\Traits\CrudTrait;
 use Cubist\Backpack\app\Http\Controllers\CubistCrudController;
 use Cubist\Backpack\app\Magic\Fields\Field;
@@ -25,6 +33,15 @@ class CubistMagicController extends CubistCrudController
     use CrudTrait;
     use HandleAjaxMedia;
 
+    use ListOperation;
+    use CreateOperation;
+    use UpdateOperation;
+    use DeleteOperation;
+    use BulkDeleteOperation;
+    use CloneOperation;
+    use BulkCloneOperation;
+    use RevisionsOperation;
+
     protected $_modelNamespace;
     protected $_routeURL;
     protected $_singular;
index aa736d8b80db3af022a084ccaf315a78fcadb6fb..35fee4a8bf238b9ebfefc17d313f8055fb1f5682 100644 (file)
@@ -4,7 +4,11 @@
 namespace Cubist\Backpack\app\Magic\Controllers;
 
 
+use Backpack\CRUD\app\Http\Controllers\Operations\ReorderOperation;
+
 class CubistMagicNestedController extends CubistMagicController
 {
+   use ReorderOperation;
+
     protected $_nested = true;
 }
index 685e2efca5f9810a506b2378bd4ef450e3361ffe..61413ddd9bfe5ba677e720d29e2237ee1ff9a1cc 100644 (file)
@@ -11,7 +11,6 @@ use Cubist\Backpack\app\Magic\PageData;
 use Cubist\Backpack\app\Magic\QueryBuilder;
 use Cubist\Backpack\app\Magic\Requests\CubistMagicUpdateRequest;
 use Cubist\Backpack\app\Magic\Util;
-use Cubist\Backpack\Facades\App;
 use Cubist\Util\Json;
 use Doctrine\DBAL\Schema\Schema;
 use Doctrine\DBAL\Schema\Table;