2017-07-14 09:21:08 -04:00
|
|
|
<?php
|
|
|
|
|
|
2026-03-24 06:30:06 -04:00
|
|
|
// SPDX-FileCopyrightText: 2018 Icinga GmbH <https://icinga.com>
|
|
|
|
|
// SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
|
|
2017-07-14 09:21:08 -04:00
|
|
|
namespace Icinga\Module\Director\Controllers;
|
|
|
|
|
|
|
|
|
|
use Icinga\Module\Director\Objects\IcingaNotification;
|
2017-07-28 16:56:03 -04:00
|
|
|
use Icinga\Module\Director\Web\Controller\TemplateController;
|
2017-07-14 09:21:08 -04:00
|
|
|
|
2017-07-28 16:56:03 -04:00
|
|
|
class NotificationtemplateController extends TemplateController
|
2017-07-14 09:21:08 -04:00
|
|
|
{
|
|
|
|
|
protected function requireTemplate()
|
|
|
|
|
{
|
|
|
|
|
return IcingaNotification::load([
|
|
|
|
|
'object_name' => $this->params->get('name')
|
|
|
|
|
], $this->db());
|
|
|
|
|
}
|
|
|
|
|
}
|