@@ -1,11 +1,9 @@ |
||
1 | 1 | <?php |
2 | 2 | namespace app\modules\shop\controllers; |
3 | 3 | |
4 | +use Yii; |
|
4 | 5 | use app\modules\core\behaviors\DisableRobotIndexBehavior; |
5 | 6 | use app\modules\shop\models\UserPreferences; |
6 | -use Yii; |
|
7 | -use yii\helpers\Url; |
|
8 | -use yii\validators\UrlValidator; |
|
9 | 7 | use yii\web\Controller; |
10 | 8 | use yii\web\Response; |
11 | 9 |
@@ -3,18 +3,16 @@ |
||
3 | 3 | namespace app\modules\shop\helpers; |
4 | 4 | |
5 | 5 | |
6 | +use Yii; |
|
6 | 7 | use app\modules\shop\events\OrderCalculateEvent; |
7 | 8 | use app\modules\shop\models\Currency; |
8 | -use app\modules\shop\models\DeliveryInformation; |
|
9 | 9 | use app\modules\shop\models\Discount; |
10 | 10 | use app\modules\shop\models\Order; |
11 | 11 | use app\modules\shop\models\Product; |
12 | 12 | use app\modules\shop\models\SpecialPriceList; |
13 | 13 | use app\modules\shop\models\SpecialPriceObject; |
14 | 14 | use devgroup\TagDependencyHelper\ActiveRecordHelper; |
15 | -use Yii; |
|
16 | 15 | use yii\caching\TagDependency; |
17 | -use yii\helpers\ArrayHelper; |
|
18 | 16 | |
19 | 17 | class PriceHandlers |
20 | 18 | { |
@@ -130,7 +130,7 @@ discard block |
||
130 | 130 | } |
131 | 131 | |
132 | 132 | /** |
133 | - * @return OrderStageLeaf[] |
|
133 | + * @return \yii\db\ActiveQuery |
|
134 | 134 | */ |
135 | 135 | public function getNextLeafs() |
136 | 136 | { |
@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | } |
140 | 140 | |
141 | 141 | /** |
142 | - * @return OrderStageLeaf[] |
|
142 | + * @return \yii\db\ActiveQuery |
|
143 | 143 | */ |
144 | 144 | public function getPrevLeafs() |
145 | 145 | { |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | } |
96 | 96 | |
97 | 97 | /** |
98 | - * @return OrderStage|null |
|
98 | + * @return \yii\db\ActiveQuery |
|
99 | 99 | */ |
100 | 100 | public function getStageFrom() |
101 | 101 | { |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | } |
104 | 104 | |
105 | 105 | /** |
106 | - * @return OrderStage|null |
|
106 | + * @return \yii\db\ActiveQuery |
|
107 | 107 | */ |
108 | 108 | public function getStageTo() |
109 | 109 | { |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | } |
84 | 84 | |
85 | 85 | /** |
86 | - * @return Order |
|
86 | + * @return \yii\db\ActiveQuery |
|
87 | 87 | */ |
88 | 88 | public function getOrder() |
89 | 89 | { |
@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | } |
92 | 92 | |
93 | 93 | /** |
94 | - * @return PaymentType|null |
|
94 | + * @return \yii\db\ActiveQuery |
|
95 | 95 | */ |
96 | 96 | public function getPaymentType() |
97 | 97 | { |
@@ -16,7 +16,7 @@ |
||
16 | 16 | { |
17 | 17 | /** |
18 | 18 | * getShippingOption |
19 | - * @return ShippingOption |
|
19 | + * @return \yii\db\ActiveQuery |
|
20 | 20 | */ |
21 | 21 | public function getShippingOption() |
22 | 22 | { |
@@ -52,7 +52,7 @@ |
||
52 | 52 | } |
53 | 53 | |
54 | 54 | /** |
55 | - * @return SpecialPriceList|null |
|
55 | + * @return \yii\db\ActiveQuery |
|
56 | 56 | */ |
57 | 57 | public function getSpecialPriceList() |
58 | 58 | { |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace app\modules\shop\models; |
4 | 4 | |
5 | 5 | use Yii; |
6 | -use yii\base\InvalidParamException; |
|
7 | 6 | use yii\helpers\ArrayHelper; |
8 | 7 | |
9 | 8 | /** |
@@ -1,14 +1,14 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | +use app\backend\components\ActiveForm; |
|
4 | +use app\backend\components\Helper; |
|
3 | 5 | use app\backend\widgets\BackendWidget; |
6 | +use app\modules\shop\ShopModule; |
|
4 | 7 | use app\modules\shop\controllers\BackendCategoryController; |
5 | 8 | use kartik\helpers\Html; |
6 | 9 | use kartik\icons\Icon; |
7 | -use app\backend\components\ActiveForm; |
|
8 | 10 | use kartik\widgets\DateTimePicker; |
9 | 11 | use yii\helpers\ArrayHelper; |
10 | -use app\backend\components\Helper; |
|
11 | -use app\modules\shop\ShopModule; |
|
12 | 12 | use yii\helpers\Url; |
13 | 13 | |
14 | 14 | /** |
@@ -9,7 +9,6 @@ |
||
9 | 9 | use kartik\icons\Icon; |
10 | 10 | use kartik\select2\Select2; |
11 | 11 | use kartik\widgets\ActiveForm; |
12 | -use vova07\imperavi\Widget as ImperaviWidget; |
|
13 | 12 | use yii\helpers\Json; |
14 | 13 | use yii\helpers\Url; |
15 | 14 | use yii\web\JsExpression; |