Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | |
0.00% |
0 / 10 |
|
0.00% |
0 / 4 |
CRAP | |
0.00% |
0 / 1 |
ManagementControlController | |
0.00% |
0 / 10 |
|
0.00% |
0 / 4 |
20 | |
0.00% |
0 / 1 |
__construct | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
user_list_get | |
0.00% |
0 / 3 |
|
0.00% |
0 / 1 |
2 | |||
backup_list_get | |
0.00% |
0 / 3 |
|
0.00% |
0 / 1 |
2 | |||
backup_detail_get | |
0.00% |
0 / 3 |
|
0.00% |
0 / 1 |
2 |
1 | <?php |
2 | |
3 | declare(strict_types=1); |
4 | |
5 | namespace PeServer\App\Controllers\Page; |
6 | |
7 | use PeServer\App\Controllers\Page\PageControllerBase; |
8 | use PeServer\App\Models\Domain\Page\ManagementControl\ManagementControlBackupDownloadLogic; |
9 | use PeServer\App\Models\Domain\Page\ManagementControl\ManagementControlBackupListLogic; |
10 | use PeServer\App\Models\Domain\Page\ManagementControl\ManagementControlUserListLogic; |
11 | use PeServer\Core\Http\HttpRequest; |
12 | use PeServer\Core\Http\HttpStatus; |
13 | use PeServer\Core\Mvc\ControllerArgument; |
14 | use PeServer\Core\Mvc\LogicCallMode; |
15 | use PeServer\Core\Mvc\Result\IActionResult; |
16 | use PeServer\Core\Mvc\Template\TemplateParameter; |
17 | use PeServer\Core\Throws\InvalidOperationException; |
18 | |
19 | /** |
20 | * [PAGE] 管理者用操作コントローラ。 |
21 | */ |
22 | final class ManagementControlController extends PageControllerBase |
23 | { |
24 | public function __construct(ControllerArgument $argument) |
25 | { |
26 | parent::__construct($argument); |
27 | } |
28 | |
29 | public function user_list_get(): IActionResult |
30 | { |
31 | $logic = $this->createLogic(ManagementControlUserListLogic::class); |
32 | $logic->run(LogicCallMode::Initialize); |
33 | |
34 | return $this->view('user_list', $logic->getViewData()); |
35 | } |
36 | |
37 | public function backup_list_get(): IActionResult |
38 | { |
39 | $logic = $this->createLogic(ManagementControlBackupListLogic::class); |
40 | $logic->run(LogicCallMode::Initialize); |
41 | |
42 | return $this->view('backup_list', $logic->getViewData()); |
43 | } |
44 | |
45 | public function backup_detail_get(): IActionResult |
46 | { |
47 | $logic = $this->createLogic(ManagementControlBackupDownloadLogic::class); |
48 | $logic->run(LogicCallMode::Submit); |
49 | |
50 | return $this->data($logic->getContent()); |
51 | } |
52 | } |