aboutsummaryrefslogtreecommitdiff
path: root/models/user.php
diff options
context:
space:
mode:
Diffstat (limited to 'models/user.php')
-rw-r--r--models/user.php16
1 files changed, 14 insertions, 2 deletions
diff --git a/models/user.php b/models/user.php
index eff2c3e..04f5a83 100644
--- a/models/user.php
+++ b/models/user.php
@@ -31,7 +31,19 @@ class User extends Table {
);
}
- static function get_all() : array {
- return Table::_get_all("Users", "Database\User");
+ function archives() : array {
+ return Table::_get_all(
+ 'Webpages',
+ 'Database\Webpage',
+ "WHERE RequesterUID = \"$this->UID\" ORDER BY Date DESC"
+ );
+ }
+
+ function archiveLists() : array {
+ return Table::_get_all(
+ 'ArchiveLists',
+ 'Database\ArchiveList',
+ "WHERE AuthorUID = \"$this->UID\""
+ );
}
}