protected function parseConfig(Config $config) { parent::parseConfig($config); $this->parseConfigOption($config, 'output'); $this->parseConfigOption($config, 'mode', false); $this->validateOutput(); }
protected function parseConfig(Config $config) { parent::parseConfig($config); $this->parseConfigOption($config, 'connector'); $this->parseConfigOption($config, 'table'); if (!preg_match('/^[a-zA-Z_][a-zA-Z0-9_]*$/', $this->table)) { throw new LoggerException(sprintf("Invalid table name for DbWriter: %s", $this->table)); } $this->activeConnector = Nutshell::getInstance()->plugin->Db->{$this->connector}; }