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)]); + } }