Conditions | 1 |
Paths | 1 |
Total Lines | 38 |
Code Lines | 27 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
18 | public function actions() |
||
19 | { |
||
20 | return array_merge(parent::actions(), [ |
||
21 | 'index' => [ |
||
22 | 'class' => IndexAction::class, |
||
23 | ], |
||
24 | 'view' => [ |
||
25 | 'class' => ViewAction::class, |
||
26 | ], |
||
27 | 'create' => [ |
||
28 | 'class' => SmartCreateAction::class, |
||
29 | 'scenario' => 'create', |
||
30 | 'success' => Yii::t( |
||
31 | 'hipanel:server:config', |
||
32 | 'The configuration was successfully created' |
||
33 | ), |
||
34 | ], |
||
35 | 'update' => [ |
||
36 | 'class' => SmartUpdateAction::class, |
||
37 | 'scenario' => 'update', |
||
38 | 'success' => Yii::t( |
||
39 | 'hipanel:server:config', |
||
40 | 'The configuration was successfully updated' |
||
41 | ), |
||
42 | ], |
||
43 | 'delete' => [ |
||
44 | 'class' => SmartDeleteAction::class, |
||
45 | 'success' => Yii::t( |
||
46 | 'hipanel:server:config', |
||
47 | 'The configuration has been deleted' |
||
48 | ), |
||
49 | 'error' => Yii::t( |
||
50 | 'hipanel:server:config', |
||
51 | 'Failed to delete the configuration' |
||
52 | ), |
||
53 | ], |
||
54 | 'validate-form' => [ |
||
55 | 'class' => ValidateFormAction::class, |
||
56 | ], |
||
60 |