当前位置: 首页>>代码示例>>PHP>>正文


PHP moodle_database::dispose方法代码示例

本文整理汇总了PHP中moodle_database::dispose方法的典型用法代码示例。如果您正苦于以下问题:PHP moodle_database::dispose方法的具体用法?PHP moodle_database::dispose怎么用?PHP moodle_database::dispose使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在moodle_database的用法示例。


在下文中一共展示了moodle_database::dispose方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: dispose

 /**
  * 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;
 }
开发者ID:educakanchay,项目名称:campus,代码行数:11,代码来源:store.php

示例2: 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()
 {
     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;
     }
 }
开发者ID:rushi963,项目名称:moodle,代码行数:14,代码来源:mysqli_native_moodle_database.php

示例3: 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()
 {
     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;
     }
 }
开发者ID:mongo0se,项目名称:moodle,代码行数:14,代码来源:sqlsrv_native_moodle_database.php

示例4: 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()
 {
     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;
     }
 }
开发者ID:ajv,项目名称:Offline-Caching,代码行数:14,代码来源:pgsql_native_moodle_database.php

示例5: 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()
 {
     parent::dispose();
     // Call parent dispose to write/close session and other common stuff before clossing conn
     if ($this->adodb) {
         $this->adodb->Close();
     }
 }
开发者ID:ajv,项目名称:Offline-Caching,代码行数:13,代码来源:adodb_moodle_database.php

示例6: 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->oci) {
         oci_close($this->oci);
         $this->oci = null;
     }
     parent::dispose();
 }
开发者ID:nicolasconnault,项目名称:moodle2.0,代码行数:13,代码来源:oci_native_moodle_database.php

示例7: 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();
 }
开发者ID:nicolasconnault,项目名称:moodle2.0,代码行数:13,代码来源:mysqli_native_moodle_database.php

示例8: 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();
 }
开发者ID:nicolasconnault,项目名称:moodle2.0,代码行数:12,代码来源:adodb_moodle_database.php

示例9: 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();
 }
开发者ID:nicolasconnault,项目名称:moodle2.0,代码行数:13,代码来源:pgsql_native_moodle_database.php


注:本文中的moodle_database::dispose方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。