public function __construct($config) { $this->name = 'default'; $this->user = '******'; $this->pass = '******'; $this->host = 'localhost'; $this->port = '3306'; parent::__construct($config); }
public function __construct($config) { $this->name = 'postgres'; $this->user = '******'; $this->pass = '******'; $this->host = 'localhost'; $this->port = '5432'; parent::__construct($config); }
/** * Close the target connection * * @return bool * Returns true on success or false on failure. */ public function close() { return $this->dbObj->close(); }
public function setting($key = false, $value = false) { parent::setting($key, $value); $file = $this->path . $this->name . '.db'; $this->path = ($this->path != ':memory:' and file_exists($file)) ? $file : ':memory:'; }