Introduce edit menu for admins #49

Merged
Aaron merged 7 commits from edit-menu into master 2024-02-24 13:10:59 +01:00
Showing only changes of commit 0487ad16b9 - Show all commits

View File

@ -697,28 +697,6 @@ class Asset
get_object_vars($this)); 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) protected function getUrlForAdjacentInSet($prevNext, ?Tag $tag, $activeFilter)
{ {
$next = $prevNext === 'next'; $next = $prevNext === 'next';