1 | <?php |
||
15 | class CategoryController extends CommonAdminController |
||
16 | { |
||
17 | use AdminBeforeActionTrait, AccessTrait; |
||
18 | |||
19 | /** |
||
20 | * @var bool |
||
21 | */ |
||
22 | protected $setEditingScenarios = true; |
||
23 | |||
24 | /** |
||
25 | * @return mixed|string |
||
26 | */ |
||
27 | public function actionIndex() |
||
35 | |||
36 | /** |
||
37 | * @param int|string $id |
||
38 | * |
||
39 | * @return mixed |
||
40 | */ |
||
41 | public function actionView($id) |
||
49 | |||
50 | /** |
||
51 | * @return mixed|string|\yii\web\Response |
||
52 | */ |
||
53 | public function actionCreate() |
||
63 | |||
64 | /** |
||
65 | * @param int|string $id |
||
66 | * |
||
67 | * @return string|\yii\web\Response |
||
68 | */ |
||
69 | public function actionUpdate($id) |
||
79 | |||
80 | /** |
||
81 | * @param int|string $id |
||
82 | * |
||
83 | * @return mixed|\yii\web\Response |
||
84 | */ |
||
85 | public function actionDelete($id) |
||
93 | |||
94 | /** |
||
95 | * Returns Category model name. |
||
96 | * |
||
97 | * @return string |
||
98 | */ |
||
99 | protected function getModelName():string |
||
103 | |||
104 | /** |
||
105 | * Returns CategorySearch model name. |
||
106 | * |
||
107 | * @return string |
||
108 | */ |
||
109 | protected function getSearchModelName():string |
||
113 | } |
||
114 |