public function initialize($config) { parent::initialize($config); if (array_key_exists('dbtablespace', $config)) { $this->dbtablespace = $config['dbtablespace']; } else { $this->dbtablespace = 'USERS'; } \OC_Config::setValue('dbtablespace', $this->dbtablespace); }
public function initialize($config) { parent::initialize($config); if (array_key_exists('dbtablespace', $config)) { $this->dbtablespace = $config['dbtablespace']; } else { $this->dbtablespace = 'USERS'; } // allow empty hostname for oracle $this->dbhost = $config['dbhost']; \OC_Config::setValues(['dbhost' => $this->dbhost, 'dbtablespace' => $this->dbtablespace]); }
/** * Destroys the database connection. */ public function close() { if (empty($this->conn)) { return false; } parent::close(); return oci_close($this->conn); }
public function __destruct() { parent::__destruct(); }