@@ -3,17 +3,17 @@ |
||
| 3 | 3 | namespace app\backend\actions; |
| 4 | 4 | |
| 5 | 5 | |
| 6 | +use Yii; |
|
| 7 | +use app\backend\widgets\CategoryMovementsButtons; |
|
| 6 | 8 | use app\models\Object; |
| 7 | 9 | use app\modules\shop\models\Category; |
| 8 | 10 | use app\modules\shop\models\Product; |
| 9 | 11 | use devgroup\TagDependencyHelper\ActiveRecordHelper; |
| 10 | 12 | use yii\base\Action; |
| 11 | -use Yii; |
|
| 12 | 13 | use yii\caching\TagDependency; |
| 13 | 14 | use yii\db\Query; |
| 14 | 15 | use yii\web\NotFoundHttpException; |
| 15 | 16 | use yii\web\ServerErrorHttpException; |
| 16 | -use app\backend\widgets\CategoryMovementsButtons; |
|
| 17 | 17 | |
| 18 | 18 | class CategoryMovementsAction extends Action |
| 19 | 19 | { |
@@ -3,12 +3,12 @@ |
||
| 3 | 3 | namespace app\backend\widgets; |
| 4 | 4 | |
| 5 | 5 | |
| 6 | -use yii\base\Widget; |
|
| 7 | 6 | use Yii; |
| 8 | -use yii\helpers\Html; |
|
| 9 | -use yii\base\InvalidParamException; |
|
| 10 | 7 | use app\modules\shop\models\Category; |
| 11 | 8 | use kartik\icons\Icon; |
| 9 | +use yii\base\InvalidParamException; |
|
| 10 | +use yii\base\Widget; |
|
| 11 | +use yii\helpers\Html; |
|
| 12 | 12 | |
| 13 | 13 | class CategoryMovementsButtons extends Widget |
| 14 | 14 | { |
@@ -2,26 +2,28 @@ discard block |
||
| 2 | 2 | |
| 3 | 3 | namespace app\modules\shop\controllers; |
| 4 | 4 | |
| 5 | +use Yii; |
|
| 6 | +use app\backend\actions\CategoryMovementsAction; |
|
| 7 | +use app\backend\actions\MassPublishAction; |
|
| 5 | 8 | use app\backend\actions\PropertyHandler; |
| 9 | +use app\backend\actions\UpdateEditable; |
|
| 6 | 10 | use app\backend\components\BackendController; |
| 7 | 11 | use app\backend\events\BackendEntityEditEvent; |
| 8 | -use app\modules\image\widgets\views\AddImageAction; |
|
| 9 | -use app\modules\shop\models\Category; |
|
| 10 | -use app\modules\image\models\Image; |
|
| 11 | 12 | use app\models\Object; |
| 12 | 13 | use app\models\ObjectPropertyGroup; |
| 13 | -use app\modules\shop\models\Currency; |
|
| 14 | -use app\modules\shop\models\Product; |
|
| 15 | 14 | use app\models\Property; |
| 16 | 15 | use app\models\PropertyStaticValues; |
| 17 | 16 | use app\models\ViewObject; |
| 18 | -use app\properties\HasProperties; |
|
| 17 | +use app\modules\image\models\Image; |
|
| 19 | 18 | use app\modules\image\widgets\RemoveAction; |
| 20 | 19 | use app\modules\image\widgets\SaveInfoAction; |
| 21 | 20 | use app\modules\image\widgets\UploadAction; |
| 22 | -use app\backend\actions\UpdateEditable; |
|
| 21 | +use app\modules\image\widgets\views\AddImageAction; |
|
| 22 | +use app\modules\shop\models\Category; |
|
| 23 | +use app\modules\shop\models\Currency; |
|
| 24 | +use app\modules\shop\models\Product; |
|
| 25 | +use app\properties\HasProperties; |
|
| 23 | 26 | use devgroup\JsTreeWidget\AdjacencyFullTreeDataAction; |
| 24 | -use Yii; |
|
| 25 | 27 | use yii\data\ActiveDataProvider; |
| 26 | 28 | use yii\db\Query; |
| 27 | 29 | use yii\filters\AccessControl; |
@@ -30,8 +32,6 @@ discard block |
||
| 30 | 32 | use yii\helpers\Url; |
| 31 | 33 | use yii\web\NotFoundHttpException; |
| 32 | 34 | use yii\web\ServerErrorHttpException; |
| 33 | -use app\backend\actions\MassPublishAction; |
|
| 34 | -use app\backend\actions\CategoryMovementsAction; |
|
| 35 | 35 | |
| 36 | 36 | class BackendProductController extends BackendController |
| 37 | 37 | { |