@@ -185,7 +185,7 @@ |
||
185 | 185 | /** |
186 | 186 | * @param int $id |
187 | 187 | * @param int $is_published |
188 | - * @return mixed |
|
188 | + * @return ActiveRecord |
|
189 | 189 | */ |
190 | 190 | public static function findById($id, $is_published = 1) |
191 | 191 | { |
@@ -11,6 +11,9 @@ discard block |
||
11 | 11 | protected $fileHandler; |
12 | 12 | protected $urlsCount = 0; |
13 | 13 | |
14 | + /** |
|
15 | + * @return resource |
|
16 | + */ |
|
14 | 17 | protected function getFileHandler() |
15 | 18 | { |
16 | 19 | if ($this->fileHandler === null) { |
@@ -38,12 +41,19 @@ discard block |
||
38 | 41 | return rename($this->directory . $oldName, $this->directory . $newName); |
39 | 42 | } |
40 | 43 | |
44 | + /** |
|
45 | + * @param string|boolean $directory |
|
46 | + * @param string $domain |
|
47 | + */ |
|
41 | 48 | public function __construct($directory, $domain) |
42 | 49 | { |
43 | 50 | $this->directory = $directory; |
44 | 51 | $this->domain = $domain; |
45 | 52 | } |
46 | 53 | |
54 | + /** |
|
55 | + * @param string $url |
|
56 | + */ |
|
47 | 57 | public function addUrl($url) |
48 | 58 | { |
49 | 59 | // @todo convert "wrong" symbols |
@@ -94,7 +94,7 @@ |
||
94 | 94 | } |
95 | 95 | |
96 | 96 | /** |
97 | - * @return array prepared to dropdown list in configurable |
|
97 | + * @return string[] prepared to dropdown list in configurable |
|
98 | 98 | */ |
99 | 99 | public static function getRedirectTypes() |
100 | 100 | { |
@@ -193,6 +193,9 @@ |
||
193 | 193 | return $result; |
194 | 194 | } |
195 | 195 | |
196 | + /** |
|
197 | + * @param string $className |
|
198 | + */ |
|
196 | 199 | private function invalidateTags($className, $ids) |
197 | 200 | { |
198 | 201 | $tags = [ |
@@ -74,7 +74,7 @@ |
||
74 | 74 | * Get OrderItem. |
75 | 75 | * @param int $id |
76 | 76 | * @param bool $checkOrderAttachment |
77 | - * @return OrderItem |
|
77 | + * @return null|Order |
|
78 | 78 | * @throws NotFoundHttpException |
79 | 79 | */ |
80 | 80 | protected function loadOrderItem($id, $checkOrderAttachment = true) |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | /** |
28 | 28 | * @param $id |
29 | 29 | * @param null|string $backUrl |
30 | - * @return bool|\yii\web\Response |
|
30 | + * @return \yii\web\Response |
|
31 | 31 | */ |
32 | 32 | public function actionAdd($id, $backUrl = null) |
33 | 33 | { |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | /** |
39 | 39 | * @param $id |
40 | 40 | * @param null|string $backUrl |
41 | - * @return bool|\yii\web\Response |
|
41 | + * @return \yii\web\Response |
|
42 | 42 | */ |
43 | 43 | public function actionRemove($id, $backUrl = null) |
44 | 44 | { |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | |
120 | 120 | /** |
121 | 121 | * Return delete modes list |
122 | - * @return array |
|
122 | + * @return string[] |
|
123 | 123 | */ |
124 | 124 | public static function deleteModesList() |
125 | 125 | { |
@@ -239,7 +239,7 @@ discard block |
||
239 | 239 | /** |
240 | 240 | * Returns model using indentity map and cache |
241 | 241 | * @param int $id |
242 | - * @param int|null $isActive |
|
242 | + * @param integer $isActive |
|
243 | 243 | * @return Category|null |
244 | 244 | */ |
245 | 245 | public static function findById($id, $isActive = 1) |
@@ -275,6 +275,7 @@ discard block |
||
275 | 275 | /** |
276 | 276 | * Finds category by slug inside category_group_id |
277 | 277 | * Uses cache and identity_map |
278 | + * @param integer $category_group_id |
|
278 | 279 | */ |
279 | 280 | public static function findBySlug($slug, $category_group_id, $parent_id = 0) |
280 | 281 | { |
@@ -328,6 +329,7 @@ discard block |
||
328 | 329 | /** |
329 | 330 | * Ищет по name в рамках category_group_id |
330 | 331 | * Заносит в identity_map |
332 | + * @param integer $category_group_id |
|
331 | 333 | */ |
332 | 334 | public static function findByName($name, $category_group_id, $parent_id = 0) |
333 | 335 | { |
@@ -415,6 +417,7 @@ discard block |
||
415 | 417 | /** |
416 | 418 | * Ищет root для группы категорий |
417 | 419 | * Использует identity_map |
420 | + * @param integer $id |
|
418 | 421 | * @return Category|null |
419 | 422 | */ |
420 | 423 | public static function findRootForCategoryGroup($id = null) |
@@ -477,7 +480,7 @@ discard block |
||
477 | 480 | |
478 | 481 | /** |
479 | 482 | * @param int $parentId |
480 | - * @param int|null $isActive |
|
483 | + * @param integer $isActive |
|
481 | 484 | * @return Category[]|array |
482 | 485 | */ |
483 | 486 | public static function getByParentId($parentId = null, $isActive = 1) |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | } |
87 | 87 | |
88 | 88 | /** |
89 | - * @return Order[]|null |
|
89 | + * @return \yii\db\ActiveQuery |
|
90 | 90 | */ |
91 | 91 | public function getOrders() |
92 | 92 | { |
@@ -94,7 +94,7 @@ discard block |
||
94 | 94 | } |
95 | 95 | |
96 | 96 | /** |
97 | - * @return Customer|null |
|
97 | + * @return \yii\db\ActiveQuery |
|
98 | 98 | */ |
99 | 99 | public function getCustomer() |
100 | 100 | { |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | } |
103 | 103 | |
104 | 104 | /** |
105 | - * @return DeliveryInformation|null |
|
105 | + * @return \yii\db\ActiveQuery |
|
106 | 106 | */ |
107 | 107 | public function getDeliveryInformation() |
108 | 108 | { |
@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | } |
119 | 119 | |
120 | 120 | /** |
121 | - * @return PropertyGroup|null |
|
121 | + * @return PropertyGroup |
|
122 | 122 | */ |
123 | 123 | public function getPropertyGroup() |
124 | 124 | { |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | /** |
129 | 129 | * @param Customer $customer |
130 | 130 | * @param bool $dummyObject |
131 | - * @return Contragent|null |
|
131 | + * @return Contragent |
|
132 | 132 | */ |
133 | 133 | public static function createEmptyContragent(Customer $customer, $dummyObject = true) |
134 | 134 | { |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | } |
104 | 104 | |
105 | 105 | /** |
106 | - * @return Order[]|null |
|
106 | + * @return \yii\db\ActiveQuery |
|
107 | 107 | */ |
108 | 108 | public function getOrders() |
109 | 109 | { |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | } |
112 | 112 | |
113 | 113 | /** |
114 | - * @return User|null |
|
114 | + * @return \yii\db\ActiveQuery |
|
115 | 115 | */ |
116 | 116 | public function getUser() |
117 | 117 | { |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | } |
120 | 120 | |
121 | 121 | /** |
122 | - * @return Contragent[]|null |
|
122 | + * @return \yii\db\ActiveQuery |
|
123 | 123 | */ |
124 | 124 | public function getContragents() |
125 | 125 | { |
@@ -127,7 +127,7 @@ discard block |
||
127 | 127 | } |
128 | 128 | |
129 | 129 | /** |
130 | - * @return Contragent|null |
|
130 | + * @return \yii\db\ActiveQuery |
|
131 | 131 | */ |
132 | 132 | public function getContragent() |
133 | 133 | { |
@@ -224,7 +224,7 @@ discard block |
||
224 | 224 | } |
225 | 225 | |
226 | 226 | /** |
227 | - * @return PropertyGroup|null |
|
227 | + * @return PropertyGroup |
|
228 | 228 | */ |
229 | 229 | public function getPropertyGroup() |
230 | 230 | { |