From bee0a7012f1555c38e9f5c750b5a5c8b4437a879 Mon Sep 17 00:00:00 2001 From: Stephan Kasdorf Date: Fri, 30 Oct 2020 12:37:14 +0100 Subject: [PATCH] Version 0.9.5 beta - Core update added autocomplete through the IDb interface, the DB factory now also supports autocomplete. --- core/a/mysql.db.php | 9 +++++++++ core/f/db.php | 7 ++++--- core/i/db.php | 20 ++++++++++++++++++++ 3 files changed, 33 insertions(+), 3 deletions(-) diff --git a/core/a/mysql.db.php b/core/a/mysql.db.php index b6e3b44..ccca137 100644 --- a/core/a/mysql.db.php +++ b/core/a/mysql.db.php @@ -43,6 +43,15 @@ abstract class Db implements IDb } } + /** + * will return the last inserted id of the given table + * @return int + */ + public function lastInsertId() + { + return Pdo::getLastInsertedID(); + } + /** * @param bool $user_name * @return mixed diff --git a/core/f/db.php b/core/f/db.php index 3a88c56..eacf6ce 100644 --- a/core/f/db.php +++ b/core/f/db.php @@ -1,12 +1,13 @@