コード例 #1
0
 protected function loadConfig($database, $type)
 {
     is_null($this->configs[$type]) && ($this->configs[$type] = DBConfig::instance()->loadConfig($database, $type));
     $conf = $this->configs[$type]->current();
     $this->configs[$type]->next();
     !$this->configs[$type]->valid() && $this->configs[$type]->rewind();
     return $conf;
 }