From ca689bc9441170908ee464bc9b6213fe0cb3c26f Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Fri, 4 Nov 2016 09:57:56 +0100 Subject: [PATCH] IniRepository: Improve documentation of attribute $configs refs #13034 --- library/Icinga/Repository/IniRepository.php | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/library/Icinga/Repository/IniRepository.php b/library/Icinga/Repository/IniRepository.php index e17bbaa42..08d721326 100644 --- a/library/Icinga/Repository/IniRepository.php +++ b/library/Icinga/Repository/IniRepository.php @@ -20,27 +20,28 @@ use Icinga\Exception\StatementException; * */ abstract class IniRepository extends Repository implements Extensible, Updatable, Reducible { /** - * Per-table configs + * The configuration files used as table specific datasources * - * Example: + * This must be initialized by concrete repository implementations, in the following format * * array( - * 'event-type' => array( - * 'module' => 'elasticsearch', - * 'path' => 'event-types', - * 'keyColumn' => 'name' + * 'table_name' => array( + * 'config' => 'name_of_the_ini_file_without_extension', + * 'keyColumn' => 'the_name_of_the_column_to_use_as_key_column', + * ['module' => 'the_name_of_the_module_if_any'] * ) * ) * * * @var array */ - protected $configs = null; + protected $configs; /** * The tables for which triggers are available when inserting, updating or deleting rows