@@ -56,7 +56,7 @@ |
||
56 | 56 | } |
57 | 57 | |
58 | 58 | /** |
59 | - * @return User |
|
59 | + * @return \yii\db\ActiveQuery |
|
60 | 60 | */ |
61 | 61 | public function getUser() |
62 | 62 | { |
@@ -158,7 +158,7 @@ discard block |
||
158 | 158 | |
159 | 159 | /** |
160 | 160 | * Users relation |
161 | - * @return mixed |
|
161 | + * @return \yii\db\ActiveQuery |
|
162 | 162 | */ |
163 | 163 | public function getUsers() |
164 | 164 | { |
@@ -231,7 +231,7 @@ discard block |
||
231 | 231 | |
232 | 232 | /** |
233 | 233 | * Set status |
234 | - * @param $status |
|
234 | + * @param string $status |
|
235 | 235 | * @return bool |
236 | 236 | */ |
237 | 237 | public function setStatus($status) |
@@ -109,6 +109,10 @@ |
||
109 | 109 | } |
110 | 110 | |
111 | 111 | |
112 | + /** |
|
113 | + * @param string|boolean $path |
|
114 | + * @param string $themeName |
|
115 | + */ |
|
112 | 116 | protected function createStructure($path, $children, $themeName) |
113 | 117 | { |
114 | 118 | foreach ($children as $child) { |
@@ -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); |
@@ -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 = [ |
@@ -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 | { |
@@ -131,7 +131,7 @@ |
||
131 | 131 | } |
132 | 132 | |
133 | 133 | /** |
134 | - * @return Submission[]|array |
|
134 | + * @return \yii\db\ActiveQuery |
|
135 | 135 | */ |
136 | 136 | public function getSubmissions() |
137 | 137 | { |
@@ -64,7 +64,7 @@ |
||
64 | 64 | } |
65 | 65 | |
66 | 66 | /** |
67 | - * @return PropertyGroup|null |
|
67 | + * @return \yii\db\ActiveQuery |
|
68 | 68 | */ |
69 | 69 | public function getGroup() |
70 | 70 | { |
@@ -116,7 +116,7 @@ |
||
116 | 116 | /** |
117 | 117 | * Returns active prefiltered page as array for specified URL (exact match). |
118 | 118 | * Used by ObjectRule |
119 | - * @param $url |
|
119 | + * @param string $url |
|
120 | 120 | * @return null|array |
121 | 121 | */ |
122 | 122 | public static function getActiveByUrl($url) |