aboutsummaryrefslogtreecommitdiff
path: root/models
diff options
context:
space:
mode:
Diffstat (limited to 'models')
-rw-r--r--models/webpage.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/models/webpage.php b/models/webpage.php
index 742b977..3445f62 100644
--- a/models/webpage.php
+++ b/models/webpage.php
@@ -48,6 +48,14 @@ class Webpage extends Table {
);
}
+ static function allArchivesByUser(int $UID) : array {
+ return Table::_get_all(
+ 'Webpages',
+ 'Database\Webpage',
+ "WHERE RequesterUID = \"$UID\" ORDER BY Date DESC"
+ );
+ }
+
static function getArchivePathsByPattern(string $URLPattern) : array {
return Table::_get_all(
'Webpages',