Ejemplo n.º 1
0
 protected function parseConfig(Config $config)
 {
     parent::parseConfig($config);
     $this->parseConfigOption($config, 'output');
     $this->parseConfigOption($config, 'mode', false);
     $this->validateOutput();
 }
Ejemplo n.º 2
0
 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};
 }