Commit 8e2976da authored by Armando Lüscher's avatar Armando Lüscher Committed by GitHub

Merge pull request #377 from noplanman/get_pdo

Make access to the database easier
parents 9d855c35 84c50f17
...@@ -158,6 +158,16 @@ class DB ...@@ -158,6 +158,16 @@ class DB
return self::$pdo !== null; return self::$pdo !== null;
} }
/**
* Get the PDO object of the connected database
*
* @return \PDO
*/
public static function getPdo()
{
return self::$pdo;
}
/** /**
* Fetch update(s) from DB * Fetch update(s) from DB
* *
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment