@@ -2,8 +2,8 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace app\controllers; |
| 4 | 4 | |
| 5 | -use app\backend\components\Yml; |
|
| 6 | 5 | use Yii; |
| 6 | +use app\backend\components\Yml; |
|
| 7 | 7 | use yii\web\Controller; |
| 8 | 8 | |
| 9 | 9 | class YmlController extends Controller |
@@ -2,6 +2,7 @@ discard block |
||
| 2 | 2 | |
| 3 | 3 | namespace app\extensions\DefaultTheme\backend; |
| 4 | 4 | |
| 5 | +use Yii; |
|
| 5 | 6 | use app\backend\components\BackendController; |
| 6 | 7 | use app\backend\traits\BackendRedirect; |
| 7 | 8 | use app\extensions\DefaultTheme\models\BaseWidgetConfigurationModel; |
@@ -12,8 +13,6 @@ discard block |
||
| 12 | 13 | use app\extensions\DefaultTheme\models\WidgetConfigurationModel; |
| 13 | 14 | use app\traits\LoadModel; |
| 14 | 15 | use devgroup\TagDependencyHelper\ActiveRecordHelper; |
| 15 | -use Yii; |
|
| 16 | -use yii\base\DynamicModel; |
|
| 17 | 16 | use yii\helpers\Json; |
| 18 | 17 | use yii\web\BadRequestHttpException; |
| 19 | 18 | use yii\web\NotFoundHttpException; |
@@ -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 = [ |
@@ -151,6 +151,7 @@ |
||
| 151 | 151 | |
| 152 | 152 | /** |
| 153 | 153 | * @inheritdoc |
| 154 | + * @param string $view |
|
| 154 | 155 | */ |
| 155 | 156 | public function render($view, $params = []) |
| 156 | 157 | { |
@@ -2,11 +2,11 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace app\extensions\DefaultTheme\components; |
| 4 | 4 | |
| 5 | +use Yii; |
|
| 5 | 6 | use app\components\ViewElementsGathener; |
| 6 | 7 | use app\extensions\DefaultTheme\models\ThemeActiveWidgets; |
| 7 | 8 | use app\extensions\DefaultTheme\models\ThemeWidgets; |
| 8 | 9 | use devgroup\TagDependencyHelper\ActiveRecordHelper; |
| 9 | -use Yii; |
|
| 10 | 10 | use yii\base\InvalidConfigException; |
| 11 | 11 | use yii\base\Widget; |
| 12 | 12 | use yii\caching\TagDependency; |
@@ -2,9 +2,9 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace app\extensions\DefaultTheme\components; |
| 4 | 4 | |
| 5 | +use Yii; |
|
| 5 | 6 | use app\extensions\DefaultTheme\models\ThemeVariation; |
| 6 | 7 | use devgroup\TagDependencyHelper\ActiveRecordHelper; |
| 7 | -use Yii; |
|
| 8 | 8 | use yii\caching\TagDependency; |
| 9 | 9 | |
| 10 | 10 | abstract class VariationMatcher |
@@ -59,7 +59,7 @@ |
||
| 59 | 59 | } |
| 60 | 60 | |
| 61 | 61 | /** |
| 62 | - * @return array Array of tags(strings) |
|
| 62 | + * @return string[] Array of tags(strings) |
|
| 63 | 63 | */ |
| 64 | 64 | public function getCacheTags() |
| 65 | 65 | { |
@@ -2,8 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace app\extensions\DefaultTheme\models; |
| 4 | 4 | |
| 5 | -use Yii; |
|
| 6 | - |
|
| 7 | 5 | class BaseWidgetConfigurationModel extends WidgetConfigurationModel |
| 8 | 6 | { |
| 9 | 7 | public $configurationJson = '{}'; |
@@ -2,9 +2,9 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace app\extensions\DefaultTheme\models; |
| 4 | 4 | |
| 5 | +use Yii; |
|
| 5 | 6 | use app; |
| 6 | 7 | use app\extensions\DefaultTheme\components\StylesCompiler; |
| 7 | -use Yii; |
|
| 8 | 8 | use yii\helpers\ArrayHelper; |
| 9 | 9 | use yii\web\UploadedFile; |
| 10 | 10 | |
@@ -2,9 +2,9 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace app\extensions\DefaultTheme\models; |
| 4 | 4 | |
| 5 | +use Yii; |
|
| 5 | 6 | use app\extensions\DefaultTheme\components\VariationMatcher; |
| 6 | 7 | use app\traits\IdentityMap; |
| 7 | -use Yii; |
|
| 8 | 8 | use \devgroup\TagDependencyHelper\ActiveRecordHelper; |
| 9 | 9 | use yii\caching\TagDependency; |
| 10 | 10 | use yii\data\ActiveDataProvider; |
@@ -2,8 +2,8 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace app\extensions\DefaultTheme\widgets\PagesList; |
| 4 | 4 | |
| 5 | -use app\modules\page\models\Page; |
|
| 6 | 5 | use app\extensions\DefaultTheme\components\BaseWidget; |
| 6 | +use app\modules\page\models\Page; |
|
| 7 | 7 | use devgroup\TagDependencyHelper\ActiveRecordHelper; |
| 8 | 8 | use yii\caching\TagDependency; |
| 9 | 9 | |
@@ -21,7 +21,7 @@ |
||
| 21 | 21 | |
| 22 | 22 | /** |
| 23 | 23 | * Actual run function for all widget classes extending BaseWidget |
| 24 | - * @return mixed |
|
| 24 | + * @return string |
|
| 25 | 25 | */ |
| 26 | 26 | public function widgetRun() |
| 27 | 27 | { |
@@ -31,6 +31,9 @@ |
||
| 31 | 31 | : $name; |
| 32 | 32 | } |
| 33 | 33 | |
| 34 | + /** |
|
| 35 | + * @param string $name |
|
| 36 | + */ |
|
| 34 | 37 | protected function saveEav($id, $groupId, $name, $value) |
| 35 | 38 | { |
| 36 | 39 | $key = $this->getKey($name); |
@@ -1,16 +1,16 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | -use app\modules\image\models\Image; |
|
| 4 | -use app\modules\shop\models\Category; |
|
| 5 | -use app\modules\shop\models\Product; |
|
| 6 | -use app\models\PropertyGroup; |
|
| 7 | -use app\models\Property; |
|
| 8 | -use app\models\PropertyStaticValues; |
|
| 3 | +use app\components\Helper; |
|
| 9 | 4 | use app\models\BaseObject; |
| 10 | -use app\models\ObjectStaticValues; |
|
| 11 | 5 | use app\models\ObjectPropertyGroup; |
| 6 | +use app\models\ObjectStaticValues; |
|
| 7 | +use app\models\Property; |
|
| 8 | +use app\models\PropertyGroup; |
|
| 12 | 9 | use app\models\PropertyHandler; |
| 13 | -use app\components\Helper; |
|
| 10 | +use app\models\PropertyStaticValues; |
|
| 11 | +use app\modules\image\models\Image; |
|
| 12 | +use app\modules\shop\models\Category; |
|
| 13 | +use app\modules\shop\models\Product; |
|
| 14 | 14 | use yii\db\Migration; |
| 15 | 15 | |
| 16 | 16 | class m150605_094805_demo_data extends Migration |