Make access to the database easier by providing the PDO object for direct querying.

parent b12b2e99
......@@ -158,6 +158,16 @@ class DB
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
*
......
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