@@ -2,12 +2,12 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace app\widgets\navigation\models; |
| 4 | 4 | |
| 5 | +use Yii; |
|
| 5 | 6 | use app\backgroundtasks\traits\SearchModelTrait; |
| 6 | 7 | use app\behaviors\Tree; |
| 7 | 8 | use app\properties\HasProperties; |
| 8 | 9 | use app\traits\FindById; |
| 9 | 10 | use app\traits\GetImages; |
| 10 | -use Yii; |
|
| 11 | 11 | use yii\data\ActiveDataProvider; |
| 12 | 12 | |
| 13 | 13 | /** |
@@ -2,8 +2,8 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace app\traits; |
| 4 | 4 | |
| 5 | -use devgroup\TagDependencyHelper\ActiveRecordHelper; |
|
| 6 | 5 | use Yii; |
| 6 | +use devgroup\TagDependencyHelper\ActiveRecordHelper; |
|
| 7 | 7 | use yii\caching\TagDependency; |
| 8 | 8 | use yii\db\ActiveRecord; |
| 9 | 9 | use yii\web\NotFoundHttpException; |
@@ -2,12 +2,12 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace app\widgets\navigation\models; |
| 4 | 4 | |
| 5 | +use Yii; |
|
| 5 | 6 | use app\backgroundtasks\traits\SearchModelTrait; |
| 6 | 7 | use app\behaviors\Tree; |
| 7 | 8 | use app\properties\HasProperties; |
| 8 | 9 | use app\traits\FindById; |
| 9 | 10 | use app\traits\GetImages; |
| 10 | -use Yii; |
|
| 11 | 11 | use yii\data\ActiveDataProvider; |
| 12 | 12 | |
| 13 | 13 | /** |
@@ -2,12 +2,12 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace app\widgets\navigation\models; |
| 4 | 4 | |
| 5 | +use Yii; |
|
| 5 | 6 | use app\backgroundtasks\traits\SearchModelTrait; |
| 6 | 7 | use app\behaviors\Tree; |
| 7 | 8 | use app\properties\HasProperties; |
| 8 | 9 | use app\traits\FindById; |
| 9 | 10 | use app\traits\GetImages; |
| 10 | -use Yii; |
|
| 11 | 11 | use yii\data\ActiveDataProvider; |
| 12 | 12 | |
| 13 | 13 | /** |
@@ -2,12 +2,12 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace app\widgets\navigation\models; |
| 4 | 4 | |
| 5 | +use Yii; |
|
| 5 | 6 | use app\backgroundtasks\traits\SearchModelTrait; |
| 6 | 7 | use app\behaviors\Tree; |
| 7 | 8 | use app\properties\HasProperties; |
| 8 | 9 | use app\traits\FindById; |
| 9 | 10 | use app\traits\GetImages; |
| 10 | -use Yii; |
|
| 11 | 11 | use yii\data\ActiveDataProvider; |
| 12 | 12 | |
| 13 | 13 | /** |
@@ -2,12 +2,12 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace app\widgets\navigation\models; |
| 4 | 4 | |
| 5 | +use Yii; |
|
| 5 | 6 | use app\backgroundtasks\traits\SearchModelTrait; |
| 6 | 7 | use app\behaviors\Tree; |
| 7 | 8 | use app\properties\HasProperties; |
| 8 | 9 | use app\traits\FindById; |
| 9 | 10 | use app\traits\GetImages; |
| 10 | -use Yii; |
|
| 11 | 11 | use yii\data\ActiveDataProvider; |
| 12 | 12 | |
| 13 | 13 | /** |
@@ -2,12 +2,12 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace app\widgets\navigation\models; |
| 4 | 4 | |
| 5 | +use Yii; |
|
| 5 | 6 | use app\backgroundtasks\traits\SearchModelTrait; |
| 6 | 7 | use app\behaviors\Tree; |
| 7 | 8 | use app\properties\HasProperties; |
| 8 | 9 | use app\traits\FindById; |
| 9 | 10 | use app\traits\GetImages; |
| 10 | -use Yii; |
|
| 11 | 11 | use yii\data\ActiveDataProvider; |
| 12 | 12 | |
| 13 | 13 | /** |
@@ -3,7 +3,6 @@ |
||
| 3 | 3 | namespace app\widgets\options; |
| 4 | 4 | |
| 5 | 5 | use app\models\Property; |
| 6 | -use Yii; |
|
| 7 | 6 | use yii\base\Widget; |
| 8 | 7 | use yii\helpers\ArrayHelper; |
| 9 | 8 | use yii\helpers\Json; |
@@ -2,12 +2,12 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace app\widgets\navigation\models; |
| 4 | 4 | |
| 5 | +use Yii; |
|
| 5 | 6 | use app\backgroundtasks\traits\SearchModelTrait; |
| 6 | 7 | use app\behaviors\Tree; |
| 7 | 8 | use app\properties\HasProperties; |
| 8 | 9 | use app\traits\FindById; |
| 9 | 10 | use app\traits\GetImages; |
| 10 | -use Yii; |
|
| 11 | 11 | use yii\data\ActiveDataProvider; |
| 12 | 12 | |
| 13 | 13 | /** |
@@ -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) |