function set_config($config) { parent::set_config($config); if ($this->config['common']['slave_except_table']) { $this->excepttables = explode(',', str_replace(' ', '', $this->config['common']['slave_except_table'])); } }
function set_config($config) { parent::set_config($config); if (!empty($this->config['slave'])) { $sid = array_rand($this->config['slave']); $this->slaveid = 1000 + $sid; $this->config[$this->slaveid] = $this->config['slave'][$sid]; if ($this->config['common']['slave_except_table']) { $this->excepttables = explode(',', str_replace(' ', '', $this->config['common']['slave_except_table'])); } unset($this->config['slave']); } }