aboutsummaryrefslogtreecommitdiff
path: root/models
diff options
context:
space:
mode:
authorSyndamia <kamen@syndamia.com>2025-01-26 17:17:10 +0200
committerSyndamia <kamen@syndamia.com>2025-01-26 17:17:10 +0200
commit5b61a18f1bab2cf17f849b64129efa9726848262 (patch)
tree6e2f596d1078f070b683577e006080b888d62c17 /models
parent229266ebc87133e3f81d19d5e1750fa8419b5b0f (diff)
downloadnowayforward_human-5b61a18f1bab2cf17f849b64129efa9726848262.tar
nowayforward_human-5b61a18f1bab2cf17f849b64129efa9726848262.tar.gz
nowayforward_human-5b61a18f1bab2cf17f849b64129efa9726848262.zip
feat(profile): Show archives made by user in their profile page
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',