]> git.mxchange.org Git - friendica.git/blobdiff - include/dba.php
Add API tests
[friendica.git] / include / dba.php
index 1d3b432141d525e015539b5b3a6864f5153749ca..53d7041a5aee13dc2fea245ce0f01b5df218bed5 100644 (file)
@@ -102,6 +102,15 @@ class dba {
                return self::$connected;
        }
 
+       /**
+        * Return the database object.
+        * @return PDO|mysqli
+        */
+       public static function get_db()
+       {
+               return self::$db;
+       }
+
        /**
         * @brief Returns the MySQL server version string
         *