@@ -2,14 +2,14 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace app\modules\shop\controllers; |
| 4 | 4 | |
| 5 | +use Yii; |
|
| 5 | 6 | use app\backend\components\BackendController; |
| 6 | 7 | use app\models\BaseObject; |
| 7 | 8 | use app\models\PrefilteredPages; |
| 8 | -use app\modules\shop\models\Product; |
|
| 9 | 9 | use app\models\Property; |
| 10 | 10 | use app\models\PropertyGroup; |
| 11 | 11 | use app\models\PropertyStaticValues; |
| 12 | -use Yii; |
|
| 12 | +use app\modules\shop\models\Product; |
|
| 13 | 13 | use yii\db\Query; |
| 14 | 14 | use yii\filters\AccessControl; |
| 15 | 15 | use yii\helpers\Url; |
@@ -2,26 +2,29 @@ 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\BaseObject; |
| 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\actions\BatchEditPriceAction; |
|
| 23 | +use app\modules\shop\models\Category; |
|
| 24 | +use app\modules\shop\models\Currency; |
|
| 25 | +use app\modules\shop\models\Product; |
|
| 26 | +use app\properties\HasProperties; |
|
| 23 | 27 | use devgroup\JsTreeWidget\AdjacencyFullTreeDataAction; |
| 24 | -use Yii; |
|
| 25 | 28 | use yii\data\ActiveDataProvider; |
| 26 | 29 | use yii\db\Query; |
| 27 | 30 | use yii\filters\AccessControl; |
@@ -30,9 +33,6 @@ discard block |
||
| 30 | 33 | use yii\helpers\Url; |
| 31 | 34 | use yii\web\NotFoundHttpException; |
| 32 | 35 | use yii\web\ServerErrorHttpException; |
| 33 | -use app\backend\actions\MassPublishAction; |
|
| 34 | -use app\backend\actions\CategoryMovementsAction; |
|
| 35 | -use app\modules\shop\actions\BatchEditPriceAction; |
|
| 36 | 36 | |
| 37 | 37 | class BackendProductController extends BackendController |
| 38 | 38 | { |
@@ -2,12 +2,11 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace app\modules\shop\controllers; |
| 4 | 4 | |
| 5 | +use Yii; |
|
| 5 | 6 | use app\models\BaseObject; |
| 6 | 7 | use app\modules\core\behaviors\DisableRobotIndexBehavior; |
| 7 | 8 | use app\modules\shop\helpers\ProductCompareHelper; |
| 8 | 9 | use app\modules\shop\models\Product; |
| 9 | -use Yii; |
|
| 10 | -use yii\caching\TagDependency; |
|
| 11 | 10 | use yii\web\Controller; |
| 12 | 11 | use yii\web\Response; |
| 13 | 12 | |
@@ -2,31 +2,31 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace app\modules\shop\models; |
| 4 | 4 | |
| 5 | +use Yii; |
|
| 5 | 6 | use app\behaviors\CleanRelations; |
| 6 | 7 | use app\behaviors\Tree; |
| 7 | 8 | use app\components\Helper; |
| 8 | -use app\modules\image\models\Image; |
|
| 9 | 9 | use app\models\BaseObject; |
| 10 | -use app\modules\data\components\ImportableInterface; |
|
| 11 | 10 | use app\modules\data\components\ExportableInterface; |
| 11 | +use app\modules\data\components\ImportableInterface; |
|
| 12 | +use app\modules\image\models\Image; |
|
| 13 | +use app\modules\shop\ShopModule; |
|
| 12 | 14 | use app\modules\shop\data\FilterPagination; |
| 13 | 15 | use app\modules\shop\traits\HasAddonTrait; |
| 14 | -use app\modules\shop\ShopModule; |
|
| 15 | 16 | use app\properties\HasProperties; |
| 16 | 17 | use app\properties\PropertiesHelper; |
| 17 | 18 | use app\traits\GetImages; |
| 18 | 19 | use devgroup\TagDependencyHelper\ActiveRecordHelper; |
| 19 | -use Yii; |
|
| 20 | 20 | use yii\base\Exception; |
| 21 | 21 | use yii\behaviors\TimestampBehavior; |
| 22 | 22 | use yii\caching\TagDependency; |
| 23 | 23 | use yii\data\ActiveDataProvider; |
| 24 | +use yii\data\Pagination; |
|
| 24 | 25 | use yii\db\ActiveQuery; |
| 25 | 26 | use yii\db\ActiveRecord; |
| 26 | 27 | use yii\db\Expression; |
| 27 | 28 | use yii\db\Query; |
| 28 | 29 | use yii\helpers\ArrayHelper; |
| 29 | -use yii\data\Pagination; |
|
| 30 | 30 | use yii\web\ServerErrorHttpException; |
| 31 | 31 | |
| 32 | 32 | /** |
@@ -2,22 +2,22 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace app\modules\shop; |
| 4 | 4 | |
| 5 | +use Yii; |
|
| 5 | 6 | use app; |
| 6 | 7 | use app\backend\BackendModule; |
| 7 | 8 | use app\components\BaseModule; |
| 9 | +use app\models\BaseObject; |
|
| 8 | 10 | use app\modules\event\interfaces\EventInterface; |
| 9 | 11 | use app\modules\floatPanel\widgets\FloatingPanel; |
| 10 | 12 | use app\modules\shop\handlers\UserHandler; |
| 11 | 13 | use app\modules\shop\models\Category; |
| 12 | 14 | use app\modules\shop\models\ConfigConfigurationModel; |
| 15 | +use app\modules\shop\models\Product; |
|
| 13 | 16 | use kartik\icons\Icon; |
| 14 | -use Yii; |
|
| 15 | 17 | use yii\base\Application; |
| 16 | 18 | use yii\base\BootstrapInterface; |
| 17 | 19 | use yii\base\Event; |
| 18 | 20 | use yii\helpers\Json; |
| 19 | -use app\models\BaseObject; |
|
| 20 | -use app\modules\shop\models\Product; |
|
| 21 | 21 | use yii\web\User; |
| 22 | 22 | |
| 23 | 23 | /** |
@@ -2,12 +2,12 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace app\modules\shop\widgets; |
| 4 | 4 | |
| 5 | +use Yii; |
|
| 5 | 6 | use app\models\BaseObject; |
| 6 | 7 | use app\models\Property; |
| 7 | 8 | use app\models\PropertyGroup; |
| 8 | 9 | use kartik\helpers\Html; |
| 9 | 10 | use kartik\icons\Icon; |
| 10 | -use Yii; |
|
| 11 | 11 | use yii\base\Widget; |
| 12 | 12 | use yii\db\Query; |
| 13 | 13 | use yii\helpers\Json; |
@@ -2,10 +2,10 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace app\properties; |
| 4 | 4 | |
| 5 | +use Yii; |
|
| 5 | 6 | use app\models\BaseObject; |
| 6 | 7 | use app\models\ObjectStaticValues; |
| 7 | 8 | use app\models\Property; |
| 8 | -use Yii; |
|
| 9 | 9 | use yii\base\Model; |
| 10 | 10 | use yii\db\ActiveRecord; |
| 11 | 11 | use yii\helpers\ArrayHelper; |
@@ -3,10 +3,10 @@ |
||
| 3 | 3 | namespace app\properties; |
| 4 | 4 | |
| 5 | 5 | |
| 6 | +use Yii; |
|
| 6 | 7 | use app\models\BaseObject; |
| 7 | 8 | use app\models\Property; |
| 8 | 9 | use app\models\PropertyStaticValues; |
| 9 | -use Yii; |
|
| 10 | 10 | use yii\base\DynamicModel; |
| 11 | 11 | use yii\data\ActiveDataProvider; |
| 12 | 12 | use yii\helpers\ArrayHelper; |
@@ -2,6 +2,7 @@ discard block |
||
| 2 | 2 | |
| 3 | 3 | namespace app\properties; |
| 4 | 4 | |
| 5 | +use Yii; |
|
| 5 | 6 | use app\models\BaseObject; |
| 6 | 7 | use app\models\ObjectPropertyGroup; |
| 7 | 8 | use app\models\ObjectStaticValues; |
@@ -11,7 +12,6 @@ discard block |
||
| 11 | 12 | use app\modules\core\helpers\ContentBlockHelper; |
| 12 | 13 | use app\modules\core\models\ContentBlock; |
| 13 | 14 | use devgroup\TagDependencyHelper\ActiveRecordHelper; |
| 14 | -use Yii; |
|
| 15 | 15 | use yii\base\Behavior; |
| 16 | 16 | use yii\caching\TagDependency; |
| 17 | 17 | use yii\db\ActiveRecord; |