@@ 155-162 (lines=8) @@ | ||
152 | /** |
|
153 | * @return array|\yii\db\ActiveRecord[] |
|
154 | */ |
|
155 | public static function getActiveMenu() |
|
156 | { |
|
157 | return static::find()->select([ |
|
158 | 'id', 'parentId', 'alias' |
|
159 | ])->where([ |
|
160 | 'active' => 1 |
|
161 | ])->all(); |
|
162 | } |
|
163 | ||
164 | /** |
|
165 | * @return \yii\db\ActiveQuery |
@@ 238-245 (lines=8) @@ | ||
235 | /** |
|
236 | * @return array|\yii\db\ActiveRecord[] |
|
237 | */ |
|
238 | public static function getActiveMenu() |
|
239 | { |
|
240 | return static::find()->select([ |
|
241 | 'id', 'parentId', 'alias' |
|
242 | ])->where([ |
|
243 | 'active' => 1 |
|
244 | ])->all(); |
|
245 | } |
|
246 | ||
247 | /** |
|
248 | * @return \yii\db\ActiveQuery |