Example #1
0
 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);
 }
Example #2
0
 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]);
 }
Example #3
0
 /**
  * Destroys the database connection.
  */
 public function close()
 {
     if (empty($this->conn)) {
         return false;
     }
     parent::close();
     return oci_close($this->conn);
 }
Example #4
0
 public function __destruct()
 {
     parent::__destruct();
 }