From 4bebfa04cf759d77c511541bdf30747c76a3b2e1 Mon Sep 17 00:00:00 2001 From: Syndamia Date: Sun, 2 Feb 2025 10:54:23 +0200 Subject: feat(views/list): Fully implement list updating --- models/archivelist.php | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'models') diff --git a/models/archivelist.php b/models/archivelist.php index 779365e..bf734e0 100644 --- a/models/archivelist.php +++ b/models/archivelist.php @@ -41,4 +41,12 @@ class ArchiveList extends Table { 'Webpages.*' ); } + + function update(string $newName, string $newDescription) { + Table::_update( + 'ArchiveLists', + "Name = \"$newName\", Description = \"$newDescription\"", + "LID = \"$this->LID\"" + ); + } } -- cgit v1.2.3