1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-07 15:16:30 +02:00

Added close() method to replace older db_Close() method.

This commit is contained in:
Cameron
2015-03-07 16:50:57 -08:00
parent 85f30c0292
commit 6af0a2901b

View File

@@ -1208,7 +1208,7 @@ class e_db_mysql
/**
* @return void
* @desc Closes the mySQL server connection.<br />
* <br />
* Only required if you open a second connection.<br />
@@ -1218,8 +1218,9 @@ class e_db_mysql
* <code>$sql->db_Close();</code>
*
* @access public
* @return void
*/
function db_Close()
function close()
{
if(!$this->mySQLaccess)
{
@@ -1232,6 +1233,15 @@ class e_db_mysql
}
/**
* BC Alias of close()
*/
function db_Close()
{
$this->close();
}
/**
* @return int number of affected rows, or false on error
* @param string $table