{
"event": "PreToolUse",
"tool_name": "Read",
"tool_input": {
"file_path": "\/var\/www\/dev.campus.systemische-tools.de\/src\/Infrastructure\/SemanticExplorerRepository.php",
"offset": 680,
"limit": 30
}
}
{
"tool_response": {
"type": "text",
"file": {
"filePath": "\/var\/www\/dev.campus.systemische-tools.de\/src\/Infrastructure\/SemanticExplorerRepository.php",
"content": " return ['RELATED_TO', 'PART_OF', 'DEVELOPED_BY', 'INFLUENCED_BY', 'USED_IN', 'WORKS_WITH', 'TEACHES', 'CREATED'];\n }\n\n \/\/ =========================================================================\n \/\/ TAXONOMY - CRUD\n \/\/ =========================================================================\n\n public function getTaxonomyTerm(int $id): ?array\n {\n $stmt = $this->db->prepare('SELECT * FROM taxonomy_terms WHERE id = :id');\n $stmt->execute(['id' => $id]);\n $result = $stmt->fetch();\n\n return $result === false ? null : $result;\n }\n\n public function createTaxonomyTerm(string $name, ?int $parentId = null): int\n {\n \/\/ Calculate depth and path\n $depth = 0;\n $path = $name;\n\n if ($parentId !== null) {\n $parent = $this->getTaxonomyTerm($parentId);\n if ($parent !== null) {\n $depth = (int) $parent['depth'] + 1;\n $path = $parent['path'] . '\/' . $name;\n }\n }\n",
"numLines": 30,
"startLine": 680,
"totalLines": 918
}
}
}