aboutsummaryrefslogtreecommitdiff
path: root/ratatoeskr/sys/Database.php
diff options
context:
space:
mode:
authorLaria Carolin Chabowski <laria@laria.me>2020-10-05 22:33:46 +0200
committerLaria Carolin Chabowski <laria@laria.me>2020-10-05 22:33:46 +0200
commit969223ee7f72e047944ad3affcf36bdaa3655ddf (patch)
tree4e468b42c8db2472ed15151fe6614ceed5ed6310 /ratatoeskr/sys/Database.php
parent1355c0479fc6ac64d01ff4d2fd9c1236fd1ca8a0 (diff)
downloadratatoeskr-cms-969223ee7f72e047944ad3affcf36bdaa3655ddf.tar.gz
ratatoeskr-cms-969223ee7f72e047944ad3affcf36bdaa3655ddf.tar.bz2
ratatoeskr-cms-969223ee7f72e047944ad3affcf36bdaa3655ddf.zip
User: Update documentation and remove global db usages
Diffstat (limited to 'ratatoeskr/sys/Database.php')
-rw-r--r--ratatoeskr/sys/Database.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/ratatoeskr/sys/Database.php b/ratatoeskr/sys/Database.php
index 7654e46..4f9014a 100644
--- a/ratatoeskr/sys/Database.php
+++ b/ratatoeskr/sys/Database.php
@@ -102,4 +102,12 @@ class Database
return $stmt;
}
+
+ /**
+ * @return int
+ */
+ public function lastInsertId(): int
+ {
+ return (int)$this->pdo->lastInsertId();
+ }
}