@@ -36,6 +36,9 @@ discard block |
||
| 36 | 36 | $this->elements[$cacheStackId][$elementType][] = $arguments; |
| 37 | 37 | } |
| 38 | 38 | |
| 39 | + /** |
|
| 40 | + * @param string $elementType |
|
| 41 | + */ |
|
| 39 | 42 | public function gather($elementType, $arguments) |
| 40 | 43 | { |
| 41 | 44 | if ($this->currentStackId===null) { |
@@ -45,6 +48,9 @@ discard block |
||
| 45 | 48 | $this->gatherToStack($this->currentStackId, $elementType, $arguments); |
| 46 | 49 | } |
| 47 | 50 | |
| 51 | + /** |
|
| 52 | + * @param string $cacheStackId |
|
| 53 | + */ |
|
| 48 | 54 | public function startGathering($cacheStackId, $dependency = null) |
| 49 | 55 | { |
| 50 | 56 | $this->currentStackId = $cacheStackId; |
@@ -89,6 +95,9 @@ discard block |
||
| 89 | 95 | } |
| 90 | 96 | } |
| 91 | 97 | |
| 98 | + /** |
|
| 99 | + * @param string $cacheStackId |
|
| 100 | + */ |
|
| 92 | 101 | public function getCachedData($cacheStackId) |
| 93 | 102 | { |
| 94 | 103 | Yii::trace('Get cached data: ' . $cacheStackId); |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | |
| 76 | 76 | /** |
| 77 | 77 | * Relation to ThemeWidgets |
| 78 | - * @return ThemeWidgets |
|
| 78 | + * @return \yii\db\ActiveQuery |
|
| 79 | 79 | */ |
| 80 | 80 | public function getWidget() |
| 81 | 81 | { |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | |
| 85 | 85 | /** |
| 86 | 86 | * Relation to ThemeWidgets |
| 87 | - * @return ThemeWidgets |
|
| 87 | + * @return \yii\db\ActiveQuery |
|
| 88 | 88 | */ |
| 89 | 89 | public function getPart() |
| 90 | 90 | { |
@@ -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 | /** |
@@ -122,7 +122,7 @@ |
||
| 122 | 122 | * |
| 123 | 123 | * @todo rewrite all json_decode calls in that manner |
| 124 | 124 | * |
| 125 | - * @param null $json |
|
| 125 | + * @param string $json |
|
| 126 | 126 | * @return null|string |
| 127 | 127 | */ |
| 128 | 128 | private static function _php7JsonPatch($json = null) |
@@ -2,15 +2,15 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace app\extensions\DefaultTheme\models; |
| 4 | 4 | |
| 5 | +use Yii; |
|
| 5 | 6 | use app\components\ViewElementsGathener; |
| 6 | 7 | use app\extensions\DefaultTheme\components\BaseWidget; |
| 7 | 8 | use app\traits\IdentityMap; |
| 8 | -use Yii; |
|
| 9 | 9 | use yii\base\InvalidConfigException; |
| 10 | 10 | use yii\caching\TagDependency; |
| 11 | 11 | use \devgroup\TagDependencyHelper\ActiveRecordHelper; |
| 12 | -use yii\helpers\ArrayHelper; |
|
| 13 | 12 | use yii\data\ActiveDataProvider; |
| 13 | +use yii\helpers\ArrayHelper; |
|
| 14 | 14 | use yii\helpers\Json; |
| 15 | 15 | |
| 16 | 16 | /** |
@@ -2,8 +2,8 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace app\extensions\DefaultTheme\models; |
| 4 | 4 | |
| 5 | -use app\traits\IdentityMap; |
|
| 6 | 5 | use Yii; |
| 6 | +use app\traits\IdentityMap; |
|
| 7 | 7 | use yii\caching\TagDependency; |
| 8 | 8 | use yii\data\ActiveDataProvider; |
| 9 | 9 | use \devgroup\TagDependencyHelper\ActiveRecordHelper; |
@@ -291,7 +291,7 @@ |
||
| 291 | 291 | * @param string $key ContentBlock key |
| 292 | 292 | * @param array $params . Array of params to be replaced while render |
| 293 | 293 | * @param yii\base\Model $model . Caller model instance to use in caching |
| 294 | - * @return mixed |
|
| 294 | + * @return string |
|
| 295 | 295 | */ |
| 296 | 296 | public static function getChunk($key, $params = [], yii\base\Model $model = null) |
| 297 | 297 | { |
@@ -291,7 +291,7 @@ |
||
| 291 | 291 | * @param string $key ContentBlock key |
| 292 | 292 | * @param array $params . Array of params to be replaced while render |
| 293 | 293 | * @param yii\base\Model $model . Caller model instance to use in caching |
| 294 | - * @return mixed |
|
| 294 | + * @return string |
|
| 295 | 295 | */ |
| 296 | 296 | public static function getChunk($key, $params = [], yii\base\Model $model = null) |
| 297 | 297 | { |
@@ -291,7 +291,7 @@ |
||
| 291 | 291 | * @param string $key ContentBlock key |
| 292 | 292 | * @param array $params . Array of params to be replaced while render |
| 293 | 293 | * @param yii\base\Model $model . Caller model instance to use in caching |
| 294 | - * @return mixed |
|
| 294 | + * @return string |
|
| 295 | 295 | */ |
| 296 | 296 | public static function getChunk($key, $params = [], yii\base\Model $model = null) |
| 297 | 297 | { |
@@ -2,11 +2,7 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace app\extensions\DefaultTheme\widgets\Footer; |
| 4 | 4 | |
| 5 | -use Yii; |
|
| 6 | -use app\extensions\DefaultTheme\assets\BootstrapHoverDropdown; |
|
| 7 | 5 | use app\extensions\DefaultTheme\components\BaseWidget; |
| 8 | -use app\modules\shop\models\Order; |
|
| 9 | -use yii\helpers\ArrayHelper; |
|
| 10 | 6 | |
| 11 | 7 | class Widget extends BaseWidget |
| 12 | 8 | { |
@@ -291,7 +291,7 @@ |
||
| 291 | 291 | * @param string $key ContentBlock key |
| 292 | 292 | * @param array $params . Array of params to be replaced while render |
| 293 | 293 | * @param yii\base\Model $model . Caller model instance to use in caching |
| 294 | - * @return mixed |
|
| 294 | + * @return string |
|
| 295 | 295 | */ |
| 296 | 296 | public static function getChunk($key, $params = [], yii\base\Model $model = null) |
| 297 | 297 | { |
@@ -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; |
@@ -291,7 +291,7 @@ |
||
| 291 | 291 | * @param string $key ContentBlock key |
| 292 | 292 | * @param array $params . Array of params to be replaced while render |
| 293 | 293 | * @param yii\base\Model $model . Caller model instance to use in caching |
| 294 | - * @return mixed |
|
| 294 | + * @return string |
|
| 295 | 295 | */ |
| 296 | 296 | public static function getChunk($key, $params = [], yii\base\Model $model = null) |
| 297 | 297 | { |
@@ -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 = '{}'; |