{
"event": "PreToolUse",
"tool_name": "Read",
"tool_input": {
"file_path": "\/var\/www\/dev.campus.systemische-tools.de\/src\/Controller\/Api\/TaskController.php",
"limit": 50
}
}
{
"tool_response": {
"type": "text",
"file": {
"filePath": "\/var\/www\/dev.campus.systemische-tools.de\/src\/Controller\/BackupRestoreController.php",
"content": "<?php\n\ndeclare(strict_types=1);\n\nnamespace Controller;\n\nuse Framework\\Controller;\nuse Infrastructure\\Persistence\\FileBackupRepository;\n\n\/**\n * Controller for File Backup management.\n *\/\nclass BackupRestoreController extends Controller\n{\n private FileBackupRepository $repository;\n\n public function __construct()\n {\n $this->repository = new FileBackupRepository();\n }\n\n \/**\n * GET \/backup-restore\n * List all backups.\n *\/\n public function index(): void\n {\n $filters = [];\n\n if (isset($_GET['search']) && $_GET['search'] !== '') {\n $filters['search'] = $_GET['search'];\n }\n\n if (isset($_GET['change_type']) && $_GET['change_type'] !== '') {\n $filters['change_type'] = $_GET['change_type'];\n }\n\n $limit = 50;\n $offset = (int) ($_GET['offset'] ?? 0);\n\n $backups = $this->repository->findAll($filters, $limit, $offset);\n $total = $this->repository->count($filters);\n $stats = $this->repository->getStatistics();\n\n $this->view('backup-restore.index', [\n 'title' => 'File Backup',\n 'backups' => $backups,\n 'stats' => $stats,\n 'total' => $total,\n 'filters' => $filters,",
"numLines": 50,
"startLine": 1,
"totalLines": 124
}
}
}