summaryrefslogtreecommitdiffstats
path: root/application/controllers/TimeperiodtemplateController.php
blob: a7b26a8bea284e57f8ca71dac387a7800f28fc29 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?php

namespace Icinga\Module\Director\Controllers;

use Icinga\Module\Director\Objects\IcingaTimePeriod;
use Icinga\Module\Director\Web\Controller\TemplateController;

class TimeperiodtemplateController extends TemplateController
{
    protected function requireTemplate()
    {
        return IcingaTimePeriod::load([
            'object_name' => $this->params->get('name')
        ], $this->db());
    }
}