Exemplo n.º 1
0
 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);
     }
 }
Exemplo n.º 2
0
 private function getServers()
 {
     if (!isset($this->_servers)) {
         $this->_servers = \ORC\DAO\Config::getInstance()->getServers();
     }
     return $this->_servers;
 }
Exemplo n.º 3
0
 public static function getEngine($server_name)
 {
     $server_info = Config::getInstance()->getServerInfo($server_name);
     return $server_info['engine'];
 }