| @@ 34-43 (lines=10) @@ | ||
| 31 | ]; |
|
| 32 | } |
|
| 33 | ||
| 34 | public function actions() |
|
| 35 | { |
|
| 36 | return [ |
|
| 37 | 'getTree' => [ |
|
| 38 | 'class' => AdjacencyFullTreeDataAction::className(), |
|
| 39 | 'class_name' => BackendMenu::className(), |
|
| 40 | 'model_label_attribute' => 'name', |
|
| 41 | ], |
|
| 42 | ]; |
|
| 43 | } |
|
| 44 | ||
| 45 | public function actionIndex($parent_id = 1) |
|
| 46 | { |
|
| @@ 45-54 (lines=10) @@ | ||
| 42 | /** |
|
| 43 | * @inheritdoc |
|
| 44 | */ |
|
| 45 | public function actions() |
|
| 46 | { |
|
| 47 | return [ |
|
| 48 | 'getTree' => [ |
|
| 49 | 'class' => AdjacencyFullTreeDataAction::className(), |
|
| 50 | 'class_name' => Category::className(), |
|
| 51 | 'model_label_attribute' => 'name', |
|
| 52 | ], |
|
| 53 | ]; |
|
| 54 | } |
|
| 55 | ||
| 56 | public function actionIndex($category_id=null) |
|
| 57 | { |
|