From f82bd7b0651733988319ac1a9c68908e8bfffe58 Mon Sep 17 00:00:00 2001 From: Aaron van Geffen Date: Wed, 17 Jan 2024 17:54:18 +0100 Subject: [PATCH] Asset: remove old setKeyData method --- models/Asset.php | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/models/Asset.php b/models/Asset.php index 49e43bc..ce3be24 100644 --- a/models/Asset.php +++ b/models/Asset.php @@ -697,28 +697,6 @@ class Asset get_object_vars($this)); } - public function setKeyData($title, $slug, DateTime $date_captured = null, $priority) - { - $params = [ - 'id_asset' => $this->id_asset, - 'title' => $title, - 'slug' => $slug, - 'priority' => $priority, - ]; - - if (isset($date_captured)) - $params['date_captured'] = $date_captured->format('Y-m-d H:i:s'); - - return Registry::get('db')->query(' - UPDATE assets - SET title = {string:title}, - slug = {string:slug},' . (isset($date_captured) ? ' - date_captured = {datetime:date_captured},' : '') . ' - priority = {int:priority} - WHERE id_asset = {int:id_asset}', - $params); - } - protected function getUrlForAdjacentInSet($prevNext, ?Tag $tag, $activeFilter) { $next = $prevNext === 'next';