@@ -22,6 +22,9 @@ discard block |
||
22 | 22 | protected $backendLink; |
23 | 23 | protected static $classNames; |
24 | 24 | |
25 | + /** |
|
26 | + * @param integer $id |
|
27 | + */ |
|
25 | 28 | protected function getPageLinks($id) |
26 | 29 | { |
27 | 30 | /** @var Page $model */ |
@@ -46,6 +49,9 @@ discard block |
||
46 | 49 | } |
47 | 50 | } |
48 | 51 | |
52 | + /** |
|
53 | + * @param integer $id |
|
54 | + */ |
|
49 | 55 | protected function getCategoryLinks($id) |
50 | 56 | { |
51 | 57 | $model = Category::findById($id, null); |
@@ -72,6 +78,9 @@ discard block |
||
72 | 78 | } |
73 | 79 | } |
74 | 80 | |
81 | + /** |
|
82 | + * @param integer $id |
|
83 | + */ |
|
75 | 84 | protected function getProductLinks($id) |
76 | 85 | { |
77 | 86 | $product = Yii::$container->get(Product::class); |
@@ -2,12 +2,12 @@ |
||
2 | 2 | |
3 | 3 | namespace app\modules\image\models; |
4 | 4 | |
5 | +use Yii; |
|
5 | 6 | use app\backend\components\Helper; |
6 | 7 | use app\models\BaseObject; |
7 | 8 | use app\modules\page\models\Page; |
8 | 9 | use app\modules\shop\models\Category; |
9 | 10 | use app\modules\shop\models\Product; |
10 | -use Yii; |
|
11 | 11 | use yii\helpers\Html; |
12 | 12 | |
13 | 13 | /** |
@@ -2,6 +2,7 @@ discard block |
||
2 | 2 | |
3 | 3 | namespace app\modules\review\controllers; |
4 | 4 | |
5 | +use Yii; |
|
5 | 6 | use app\actions\SubmitFormAction; |
6 | 7 | use app\behaviors\spamchecker\SpamCheckerBehavior; |
7 | 8 | use app\components\Controller; |
@@ -10,7 +11,6 @@ discard block |
||
10 | 11 | use app\modules\review\models\RatingItem; |
11 | 12 | use app\modules\review\models\RatingValues; |
12 | 13 | use app\modules\review\models\Review; |
13 | -use Yii; |
|
14 | 14 | use yii\helpers\Json; |
15 | 15 | use yii\web\HttpException; |
16 | 16 |
@@ -2,10 +2,9 @@ |
||
2 | 2 | |
3 | 3 | namespace app\modules\seo\models; |
4 | 4 | |
5 | +use Yii; |
|
5 | 6 | use yii\data\ActiveDataProvider; |
6 | 7 | use yii\db\ActiveRecord; |
7 | -use yii\helpers\ArrayHelper; |
|
8 | -use Yii; |
|
9 | 8 | |
10 | 9 | /** |
11 | 10 | * This is the model class for table "seo_redirect". |
@@ -316,6 +316,9 @@ |
||
316 | 316 | return $result; |
317 | 317 | } |
318 | 318 | |
319 | + /** |
|
320 | + * @param string $className |
|
321 | + */ |
|
319 | 322 | private function invalidateTags($className, $ids) |
320 | 323 | { |
321 | 324 | $tags = [ |
@@ -2,19 +2,18 @@ |
||
2 | 2 | |
3 | 3 | namespace app\modules\shop\backend; |
4 | 4 | |
5 | +use Yii; |
|
5 | 6 | use app\backend\components\BackendController; |
6 | -use app\modules\shop\models\Category; |
|
7 | 7 | use app\models\BaseObject; |
8 | -use app\modules\shop\models\Product; |
|
9 | 8 | use app\models\Property; |
10 | 9 | use app\models\PropertyGroup; |
11 | 10 | use app\models\PropertyStaticValues; |
11 | +use app\modules\shop\models\Category; |
|
12 | 12 | use app\modules\shop\models\FilterSets; |
13 | +use app\modules\shop\models\Product; |
|
14 | +use devgroup\JsTreeWidget\AdjacencyFullTreeDataAction; |
|
13 | 15 | use devgroup\TagDependencyHelper\ActiveRecordHelper; |
14 | -use Yii; |
|
15 | -use yii\debug\components\search\Filter; |
|
16 | 16 | use yii\filters\AccessControl; |
17 | -use devgroup\JsTreeWidget\AdjacencyFullTreeDataAction; |
|
18 | 17 | use yii\web\BadRequestHttpException; |
19 | 18 | use yii\web\NotFoundHttpException; |
20 | 19 | use yii\web\Response; |
@@ -2,25 +2,25 @@ |
||
2 | 2 | |
3 | 3 | namespace app\modules\shop\controllers; |
4 | 4 | |
5 | +use Yii; |
|
6 | +use app\backend\actions\DeleteOne; |
|
7 | +use app\backend\actions\MultipleDelete; |
|
8 | +use app\backend\actions\UpdateEditable; |
|
5 | 9 | use app\backend\components\BackendController; |
6 | 10 | use app\components\SearchModel; |
7 | 11 | use app\modules\shop\models\Product; |
12 | +use app\modules\shop\models\Warehouse; |
|
8 | 13 | use app\modules\shop\models\WarehouseEmail; |
9 | 14 | use app\modules\shop\models\WarehouseOpeninghours; |
10 | 15 | use app\modules\shop\models\WarehousePhone; |
11 | -use devgroup\TagDependencyHelper\ActiveRecordHelper; |
|
12 | -use app\backend\actions\DeleteOne; |
|
13 | -use app\backend\actions\MultipleDelete; |
|
14 | -use app\backend\actions\UpdateEditable; |
|
15 | -use app\modules\shop\models\Warehouse; |
|
16 | 16 | use app\modules\shop\models\WarehouseProduct; |
17 | -use yii\helpers\Url; |
|
18 | -use Yii; |
|
17 | +use devgroup\TagDependencyHelper\ActiveRecordHelper; |
|
18 | +use yii\caching\TagDependency; |
|
19 | 19 | use yii\data\ActiveDataProvider; |
20 | 20 | use yii\filters\AccessControl; |
21 | +use yii\helpers\Url; |
|
21 | 22 | use yii\web\HttpException; |
22 | 23 | use yii\web\NotFoundHttpException; |
23 | -use yii\caching\TagDependency; |
|
24 | 24 | |
25 | 25 | class BackendWarehouseController extends BackendController |
26 | 26 | { |
@@ -344,7 +344,7 @@ discard block |
||
344 | 344 | } |
345 | 345 | |
346 | 346 | /** |
347 | - * @return Category|null |
|
347 | + * @return ActiveQuery |
|
348 | 348 | */ |
349 | 349 | public function getCategory() |
350 | 350 | { |
@@ -1115,7 +1115,7 @@ discard block |
||
1115 | 1115 | } |
1116 | 1116 | |
1117 | 1117 | /** |
1118 | - * @param int|Category|null $category |
|
1118 | + * @param integer $category |
|
1119 | 1119 | * @param bool $asMainCategory |
1120 | 1120 | * @return bool |
1121 | 1121 | * @throws \yii\db\Exception |
@@ -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 | /** |
@@ -1,11 +1,11 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | +use app\backend\components\Helper; |
|
4 | +use devgroup\JsTreeWidget\ContextMenuHelper; |
|
5 | +use devgroup\JsTreeWidget\TreeWidget; |
|
3 | 6 | use kartik\dynagrid\DynaGrid; |
4 | 7 | use kartik\icons\Icon; |
5 | 8 | use yii\helpers\Url; |
6 | -use devgroup\JsTreeWidget\TreeWidget; |
|
7 | -use devgroup\JsTreeWidget\ContextMenuHelper; |
|
8 | -use app\backend\components\Helper; |
|
9 | 9 | |
10 | 10 | $this->title = Yii::t('app', 'Categories'); |
11 | 11 | if (is_object($model)) { |
@@ -1,12 +1,12 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | +use app\backend\components\Helper; |
|
3 | 4 | use app\modules\shop\models\Product; |
5 | +use devgroup\JsTreeWidget\ContextMenuHelper; |
|
6 | +use devgroup\JsTreeWidget\TreeWidget; |
|
4 | 7 | use kartik\dynagrid\DynaGrid; |
5 | 8 | use kartik\icons\Icon; |
6 | 9 | use yii\helpers\Url; |
7 | -use devgroup\JsTreeWidget\TreeWidget; |
|
8 | -use devgroup\JsTreeWidget\ContextMenuHelper; |
|
9 | -use app\backend\components\Helper; |
|
10 | 10 | |
11 | 11 | $this->title = Yii::t('app', 'Products'); |
12 | 12 | $this->params['breadcrumbs'][] = $this->title; |
@@ -5,7 +5,6 @@ |
||
5 | 5 | * @var \yii\web\View $this |
6 | 6 | */ |
7 | 7 | |
8 | -use app\modules\shop\models\Product; |
|
9 | 8 | use kartik\helpers\Html; |
10 | 9 | |
11 | 10 | $immutable = isset($immutable) && $immutable; |