protected function retrieveSchema() { $config = Config::getInstance(); $servers = $config->getServers(); foreach ($servers as $server_name => $server_info) { $folder = DIR_APP_ROOT . DIRECTORY_SEPARATOR . 'schema' . DIRECTORY_SEPARATOR . $server_name . DIRECTORY_SEPARATOR; $this->_parseYml($folder, $server_name); } }
private function getServers() { if (!isset($this->_servers)) { $this->_servers = \ORC\DAO\Config::getInstance()->getServers(); } return $this->_servers; }
public static function getEngine($server_name) { $server_info = Config::getInstance()->getServerInfo($server_name); return $server_info['engine']; }