private function __construct($dbhost, $dbport, $username, $password, $dbname, $dbcharset, $cachesys, $cachetype, $cachehost, $cacheport) { try { $this->_dbh = new PDO('mysql:host=' . $dbhost . ';port=' . $dbport . ';dbname=' . $dbname, $username, $password); $this->_dbh->query('SET NAMES ' . $dbcharset); } catch (PDOException $e) { exit('<pre><b>Connection failed:</b> ' . $e->getMessage()); } $this->_cache = DB_Cache::instance($cachehost, $cacheport, $cachetype, $cachesys); if (!$this->_cache) { } }
protected function __construct() { $this->cache = DB_Cache::instance(); $this->rest = REST_Server::instance(); }
protected function __construct() { $this->cache = DB_Cache::instance(); }