Esempio n. 1
0
 /**
  * Dispose off database connection after pushing any buffered events to the database.
  */
 public function dispose()
 {
     $this->helper_dispose();
     if ($this->extdb) {
         $this->extdb->dispose();
     }
     $this->extdb = null;
 }
 /**
  * Close database connection and release all resources
  * and memory (especially circular memory references).
  * Do NOT use connect() again, create a new instance if needed.
  */
 public function dispose()
 {
     parent::dispose();
     // Call parent dispose to write/close session and other common stuff before closing connection
     if ($this->mysqli) {
         $this->mysqli->close();
         $this->mysqli = null;
     }
 }
 /**
  * Close database connection and release all resources
  * and memory (especially circular memory references).
  * Do NOT use connect() again, create a new instance if needed.
  */
 public function dispose()
 {
     parent::dispose();
     // Call parent dispose to write/close session and other common stuff before closing connection
     if ($this->sqlsrv) {
         sqlsrv_close($this->sqlsrv);
         $this->sqlsrv = null;
     }
 }
 /**
  * Close database connection and release all resources
  * and memory (especially circular memory references).
  * Do NOT use connect() again, create a new instance if needed.
  */
 public function dispose()
 {
     parent::dispose();
     // Call parent dispose to write/close session and other common stuff before clossing conn
     if ($this->pgsql) {
         pg_close($this->pgsql);
         $this->pgsql = null;
     }
 }
 /**
  * Close database connection and release all resources
  * and memory (especially circular memory references).
  * Do NOT use connect() again, create a new instance if needed.
  */
 public function dispose()
 {
     parent::dispose();
     // Call parent dispose to write/close session and other common stuff before clossing conn
     if ($this->adodb) {
         $this->adodb->Close();
     }
 }
 /**
  * Close database connection and release all resources
  * and memory (especially circular memory references).
  * Do NOT use connect() again, create a new instance if needed.
  */
 public function dispose()
 {
     if ($this->oci) {
         oci_close($this->oci);
         $this->oci = null;
     }
     parent::dispose();
 }
 /**
  * Close database connection and release all resources
  * and memory (especially circular memory references).
  * Do NOT use connect() again, create a new instance if needed.
  */
 public function dispose()
 {
     if ($this->mysqli) {
         $this->mysqli->close();
         $this->mysqli = null;
     }
     parent::dispose();
 }
 /**
  * Close database connection and release all resources
  * and memory (especially circular memory references).
  * Do NOT use connect() again, create a new instance if needed.
  */
 public function dispose()
 {
     if ($this->adodb) {
         $this->adodb->Close();
     }
     parent::dispose();
 }
 /**
  * Close database connection and release all resources
  * and memory (especially circular memory references).
  * Do NOT use connect() again, create a new instance if needed.
  */
 public function dispose()
 {
     if ($this->pgsql) {
         pg_close($this->pgsql);
         $this->pgsql = null;
     }
     parent::dispose();
 }