public function setDbConnection($blnReInit = FALSE) { try { $objConnID = new PDO(self::$__dsn, self::$__dbUser, self::$__dbPassword, array(PDO::ATTR_PERSISTENT => true)); } catch (PDOException $e) { throw new Exception('Database connection failed: ' . $e->getMessage(), SQL_CONN_ERROR); } self::$__connId = $objConnID; }