{
"event": "PreToolUse",
"tool_name": "Read",
"tool_input": {
"file_path": "\/var\/www\/dev.campus.systemische-tools.de\/src\/Infrastructure\/Persistence\/ContentRepository.php",
"limit": 30
}
}
{
"tool_response": {
"type": "text",
"file": {
"filePath": "\/var\/www\/dev.campus.systemische-tools.de\/src\/Infrastructure\/Persistence\/ContentRepository.php",
"content": "<?php\n\nnamespace Infrastructure\\Persistence;\n\nuse Domain\\Repository\\ContentRepositoryInterface;\nuse Infrastructure\\Config\\DatabaseFactory;\nuse Infrastructure\\Traits\\JsonDecodeTrait;\n\nclass ContentRepository implements ContentRepositoryInterface\n{\n use JsonDecodeTrait;\n\n private \\PDO $pdo;\n\n public function __construct()\n {\n $this->pdo = DatabaseFactory::content();\n }\n\n \/\/ ==================== Orders ====================\n\n public function findAllOrders(array $filters = [], int $limit = 50, int $offset = 0): array\n {\n $sql = 'SELECT co.*,\n ap.name as profile_name,\n cc.name as contract_name,\n cs.name as structure_name,\n (SELECT COUNT(*) FROM content_versions WHERE order_id = co.id) as version_count\n FROM content_orders co\n LEFT JOIN content_config ap ON co.author_profile_id = ap.id AND ap.type = \"author_profile\"",
"numLines": 30,
"startLine": 1,
"totalLines": 324
}
}
}