From 5d5cd89a6ce41568d4a1be809390b7fcdb2cb6d6 Mon Sep 17 00:00:00 2001 From: Indieteq Date: Fri, 3 Jan 2014 15:46:10 +0100 Subject: Added close connection methode --- Db.class.php | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Db.class.php b/Db.class.php index 813de24..4780607 100644 --- a/Db.class.php +++ b/Db.class.php @@ -75,6 +75,17 @@ class DB die(); } } + /* + * You can use this little method if you want to close the PDO connection + * + */ + private function CloseConnection() + { + # Set the PDO object to null to close the connection + # http://www.php.net/manual/en/pdo.connections.php + $this->pdo = null; + } + /** * Every method which needs to execute a SQL query uses this method. * -- cgit v1.1