@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | } |
56 | 56 | |
57 | 57 | /** |
58 | - * @return Property|null |
|
58 | + * @return \yii\db\ActiveQuery |
|
59 | 59 | */ |
60 | 60 | public function getProperty() |
61 | 61 | { |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | } |
64 | 64 | |
65 | 65 | /** |
66 | - * @return Product|null |
|
66 | + * @return \yii\db\ActiveQuery |
|
67 | 67 | */ |
68 | 68 | public function getProduct() |
69 | 69 | { |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | |
120 | 120 | /** |
121 | 121 | * Return delete modes list |
122 | - * @return array |
|
122 | + * @return string[] |
|
123 | 123 | */ |
124 | 124 | public static function deleteModesList() |
125 | 125 | { |
@@ -239,7 +239,7 @@ discard block |
||
239 | 239 | /** |
240 | 240 | * Returns model using indentity map and cache |
241 | 241 | * @param int $id |
242 | - * @param int|null $isActive |
|
242 | + * @param integer $isActive |
|
243 | 243 | * @return Category|null |
244 | 244 | */ |
245 | 245 | public static function findById($id, $isActive = 1) |
@@ -275,6 +275,7 @@ discard block |
||
275 | 275 | /** |
276 | 276 | * Finds category by slug inside category_group_id |
277 | 277 | * Uses cache and identity_map |
278 | + * @param integer $category_group_id |
|
278 | 279 | */ |
279 | 280 | public static function findBySlug($slug, $category_group_id, $parent_id = 0) |
280 | 281 | { |
@@ -328,6 +329,7 @@ discard block |
||
328 | 329 | /** |
329 | 330 | * Ищет по name в рамках category_group_id |
330 | 331 | * Заносит в identity_map |
332 | + * @param integer $category_group_id |
|
331 | 333 | */ |
332 | 334 | public static function findByName($name, $category_group_id, $parent_id = 0) |
333 | 335 | { |
@@ -415,6 +417,7 @@ discard block |
||
415 | 417 | /** |
416 | 418 | * Ищет root для группы категорий |
417 | 419 | * Использует identity_map |
420 | + * @param integer $id |
|
418 | 421 | * @return Category|null |
419 | 422 | */ |
420 | 423 | public static function findRootForCategoryGroup($id = null) |
@@ -477,7 +480,7 @@ discard block |
||
477 | 480 | |
478 | 481 | /** |
479 | 482 | * @param int $parentId |
480 | - * @param int|null $isActive |
|
483 | + * @param integer $isActive |
|
481 | 484 | * @return Category[]|array |
482 | 485 | */ |
483 | 486 | public static function getByParentId($parentId = null, $isActive = 1) |
@@ -133,7 +133,7 @@ discard block |
||
133 | 133 | } |
134 | 134 | |
135 | 135 | /** |
136 | - * @return Product|null |
|
136 | + * @return \yii\db\ActiveQuery |
|
137 | 137 | */ |
138 | 138 | public function getProduct() |
139 | 139 | { |
@@ -141,7 +141,7 @@ discard block |
||
141 | 141 | } |
142 | 142 | |
143 | 143 | /** |
144 | - * @return Addon|null |
|
144 | + * @return \yii\db\ActiveQuery |
|
145 | 145 | */ |
146 | 146 | public function getAddon() |
147 | 147 | { |
@@ -149,7 +149,7 @@ discard block |
||
149 | 149 | } |
150 | 150 | |
151 | 151 | /** |
152 | - * @return Order|null |
|
152 | + * @return \yii\db\ActiveQuery |
|
153 | 153 | */ |
154 | 154 | public function getOrder() |
155 | 155 | { |
@@ -137,7 +137,7 @@ |
||
137 | 137 | /** |
138 | 138 | * Actual run function for all widget classes extending BaseWidget |
139 | 139 | * |
140 | - * @return mixed |
|
140 | + * @return string |
|
141 | 141 | */ |
142 | 142 | public function widgetRun() |
143 | 143 | { |
@@ -194,7 +194,7 @@ discard block |
||
194 | 194 | } |
195 | 195 | |
196 | 196 | /** |
197 | - * @param $property_id |
|
197 | + * @param integer $property_id |
|
198 | 198 | * @param $category_id |
199 | 199 | * @param $properties |
200 | 200 | * @return PropertyStaticValues[] |
@@ -333,6 +333,9 @@ discard block |
||
333 | 333 | return $allSelections; |
334 | 334 | } |
335 | 335 | |
336 | + /** |
|
337 | + * @param string $joinCondition |
|
338 | + */ |
|
336 | 339 | private static function initSubQuery($category_id, $joinCondition) |
337 | 340 | { |
338 | 341 | $product = Yii::$container->get(Product::class); |
@@ -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); |
@@ -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,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 |