{
"event": "PreToolUse",
"tool_name": "Read",
"tool_input": {
"file_path": "\/var\/www\/dev.campus.systemische-tools.de\/src\/Controller\/SystemExplorerController.php",
"offset": 327,
"limit": 50
}
}
{
"tool_response": {
"type": "text",
"file": {
"filePath": "\/var\/www\/dev.campus.systemische-tools.de\/src\/Controller\/SystemExplorerController.php",
"content": " $sql .= ' ORDER BY c.created_at DESC LIMIT :limit OFFSET :offset';\n\n $stmt = $this->db->prepare($sql);\n foreach ($params as $key => $value) {\n $stmt->bindValue(':' . $key, $value);\n }\n $stmt->bindValue(':limit', $limit, \\PDO::PARAM_INT);\n $stmt->bindValue(':offset', $offset, \\PDO::PARAM_INT);\n $stmt->execute();\n $chunks = $stmt->fetchAll();\n\n \/\/ Kategorien für Filter\n $categories = $this->db->query(\n 'SELECT DISTINCT taxonomy_category FROM dokumentation_chunks\n WHERE taxonomy_category IS NOT NULL ORDER BY taxonomy_category'\n )->fetchAll(\\PDO::FETCH_COLUMN);\n\n $this->view('system-explorer.chunks.index', [\n 'title' => 'Chunks',\n 'chunks' => $chunks,\n 'categories' => $categories,\n 'currentCategory' => $category,\n 'currentStatus' => $status,\n 'currentSearch' => $search,\n 'currentPage' => $page,\n 'totalCount' => $totalCount,\n 'totalPages' => ceil($totalCount \/ $limit),\n ]);\n }\n\n \/**\n * GET \/explorer\/chunks\/{id}\n * Chunk-Details\n *\/\n public function chunkShow(int $id): void\n {\n $stmt = $this->db->prepare(\n 'SELECT c.*, d.title as dokument_title, d.path as dokument_path, d.id as dokument_id\n FROM dokumentation_chunks c\n JOIN dokumentation d ON c.dokumentation_id = d.id\n WHERE c.id = :id'\n );\n $stmt->execute(['id' => $id]);\n $chunk = $stmt->fetch();\n\n if ($chunk === false) {\n $this->notFound('Chunk nicht gefunden');\n }\n\n \/\/ JSON-Felder dekodieren",
"numLines": 50,
"startLine": 327,
"totalLines": 536
}
}
}