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