/** * Free database. * * @param object \PDOStatement $rStmt Close cursor of PDOStatement class. Default NULL * @param boolean $bCloseConnection Close connection of PDO. Default FALSE * @return void */ public static function free(\PDOStatement &$rStmt = NULL, $bCloseConnection = FALSE) { // Close Cursor if (NULL !== $rStmt) { $rStmt->closeCursor(); unset($rStmt); } // Free instance of the PDO object if (TRUE === $bCloseConnection) { self::$_oDb = NULL; } }