@@ -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); |
@@ -62,7 +62,7 @@ |
||
| 62 | 62 | |
| 63 | 63 | /** |
| 64 | 64 | * Return thumbnail width watermark or create if not exist |
| 65 | - * @param $thumb Thumbnail |
|
| 65 | + * @param Thumbnail $thumb Thumbnail |
|
| 66 | 66 | * @param $water Watermark |
| 67 | 67 | * @return thumbnail |
| 68 | 68 | */ |
@@ -2,9 +2,9 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace app\modules\image\models; |
| 4 | 4 | |
| 5 | -use app\behaviors\ImageExist; |
|
| 6 | 5 | use Imagine\Image\Box; |
| 7 | 6 | use Yii; |
| 7 | +use app\behaviors\ImageExist; |
|
| 8 | 8 | use yii\base\Exception; |
| 9 | 9 | use yii\imagine\Image as Imagine; |
| 10 | 10 | |