| @@ 186-193 (lines=8) @@ | ||
| 183 | /** |
|
| 184 | * @return array|\yii\db\ActiveRecord[] |
|
| 185 | */ |
|
| 186 | public static function getActiveMenu() |
|
| 187 | { |
|
| 188 | return static::find()->select([ |
|
| 189 | 'id', 'parentId', 'title', 'alias' |
|
| 190 | ])->where([ |
|
| 191 | 'active' => 1 |
|
| 192 | ])->all(); |
|
| 193 | } |
|
| 194 | } |
|
| 195 | ||
| @@ 276-283 (lines=8) @@ | ||
| 273 | /** |
|
| 274 | * @return array|\yii\db\ActiveRecord[] |
|
| 275 | */ |
|
| 276 | public static function getActiveMenu() |
|
| 277 | { |
|
| 278 | return static::find()->select([ |
|
| 279 | 'id', 'parentId', 'title', 'alias' |
|
| 280 | ])->where([ |
|
| 281 | 'active' => 1 |
|
| 282 | ])->all(); |
|
| 283 | } |
|
| 284 | ||
| 285 | /** |
|
| 286 | * Get albums, that catalog has. |
|