icingaweb2-module-director/application/controllers/TimeperiodtemplateControlle...

17 lines
410 B
PHP

<?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());
}
}