From ce5b249a64ad390591f265ca2e3cea365746f04a Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Tue, 8 Jun 2021 13:01:48 +0200 Subject: [PATCH] Links: Add methods `users` and `event` --- library/Icingadb/Common/Links.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/library/Icingadb/Common/Links.php b/library/Icingadb/Common/Links.php index df284264..d1e9d720 100644 --- a/library/Icingadb/Common/Links.php +++ b/library/Icingadb/Common/Links.php @@ -6,7 +6,9 @@ namespace Icinga\Module\Icingadb\Common; use Icinga\Module\Icingadb\Model\Comment; use Icinga\Module\Icingadb\Model\Downtime; +use Icinga\Module\Icingadb\Model\History; use Icinga\Module\Icingadb\Model\Host; +use Icinga\Module\Icingadb\Model\NotificationHistory; use Icinga\Module\Icingadb\Model\Service; use Icinga\Module\Icingadb\Model\User; use Icinga\Module\Icingadb\Model\Usergroup; @@ -123,4 +125,14 @@ abstract class Links { return Url::fromPath('icingadb/usergroup', ['name' => $usergroup->name]); } + + public static function users() + { + return Url::fromPath('icingadb/users'); + } + + public static function event(History $event) + { + return Url::fromPath('icingadb/event', ['id' => bin2hex($event->id)]); + } }