@@ -59,7 +59,7 @@ |
||
59 | 59 | /** |
60 | 60 | * Unified action for import and export |
61 | 61 | * @param $id |
62 | - * @param $importMode |
|
62 | + * @param boolean $importMode |
|
63 | 63 | * @return string|\yii\web\Response |
64 | 64 | * @throws ErrorException |
65 | 65 | */ |
@@ -2,17 +2,16 @@ |
||
2 | 2 | |
3 | 3 | namespace app\modules\data\controllers; |
4 | 4 | |
5 | -use app\modules\data\components\ExportableInterface; |
|
6 | 5 | use Yii; |
7 | -use app\modules\data\models\Import; |
|
8 | -use app\modules\data\models\Export; |
|
6 | +use app\backgroundtasks\helpers\BackgroundTasks; |
|
9 | 7 | use app\models\Object; |
8 | +use app\modules\data\components\ExportableInterface; |
|
9 | +use app\modules\data\models\Export; |
|
10 | +use app\modules\data\models\Import; |
|
10 | 11 | use app\modules\data\models\ImportModel; |
11 | -use app\backgroundtasks\helpers\BackgroundTasks; |
|
12 | 12 | use yii\base\ErrorException; |
13 | 13 | use yii\data\ActiveDataProvider; |
14 | 14 | use yii\filters\AccessControl; |
15 | -use yii\helpers\ArrayHelper; |
|
16 | 15 | use yii\web\HttpException; |
17 | 16 | use yii\web\UploadedFile; |
18 | 17 |
@@ -2,9 +2,9 @@ |
||
2 | 2 | |
3 | 3 | namespace app\modules\data\models; |
4 | 4 | |
5 | -use app\modules\shop\models\Product; |
|
6 | -use app\models\Property; |
|
7 | 5 | use Yii; |
6 | +use app\models\Property; |
|
7 | +use app\modules\shop\models\Product; |
|
8 | 8 | |
9 | 9 | /** |
10 | 10 | * This is the model class for table "{{%commerceml_guid}}". |
@@ -2,9 +2,8 @@ |
||
2 | 2 | |
3 | 3 | namespace app\modules\data\models; |
4 | 4 | |
5 | -use app\backgroundtasks\models\Task; |
|
6 | -use app\models\Object; |
|
7 | 5 | use Yii; |
6 | +use app\models\Object; |
|
8 | 7 | use yii\behaviors\TimestampBehavior; |
9 | 8 | |
10 | 9 | /** |
@@ -2,7 +2,6 @@ |
||
2 | 2 | |
3 | 3 | namespace app\modules\data\models; |
4 | 4 | |
5 | -use app\modules\data\DataModule; |
|
6 | 5 | use Yii; |
7 | 6 | use yii\base\Model; |
8 | 7 | use yii\helpers\Json; |
@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | namespace app\modules\image\controllers; |
4 | 4 | |
5 | -use app\backgroundtasks\helpers\BackgroundTasks; |
|
6 | 5 | use Yii; |
6 | +use app\backgroundtasks\helpers\BackgroundTasks; |
|
7 | 7 | use yii\filters\AccessControl; |
8 | 8 | |
9 | 9 | class BackendThumbnailController extends \app\backend\components\BackendController |
@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | namespace app\modules\image\controllers; |
4 | 4 | |
5 | -use app\modules\image\models\ThumbnailSize; |
|
6 | 5 | use Yii; |
6 | +use app\modules\image\models\ThumbnailSize; |
|
7 | 7 | use yii\filters\AccessControl; |
8 | 8 | use yii\helpers\Url; |
9 | 9 | use yii\web\NotFoundHttpException; |
@@ -2,8 +2,8 @@ |
||
2 | 2 | |
3 | 3 | namespace app\modules\image\controllers; |
4 | 4 | |
5 | -use app\modules\image\models\Watermark; |
|
6 | 5 | use Yii; |
6 | +use app\modules\image\models\Watermark; |
|
7 | 7 | use yii\filters\AccessControl; |
8 | 8 | use yii\helpers\Url; |
9 | 9 | use yii\web\NotFoundHttpException; |
@@ -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 | $model = Product::findById($id, null); |
@@ -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 | /** |
@@ -93,6 +93,9 @@ |
||
93 | 93 | return $dataProvider; |
94 | 94 | } |
95 | 95 | |
96 | + /** |
|
97 | + * @param string $demand |
|
98 | + */ |
|
96 | 99 | public static function getByDemand($demand) |
97 | 100 | { |
98 | 101 | $sizes = explode('x', $demand); |