2017-07-27 11:01:10 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Icinga\Module\Director\Controllers;
|
|
|
|
|
|
|
|
use Icinga\Module\Director\Objects\IcingaTimePeriod;
|
2017-07-27 11:34:12 +02:00
|
|
|
use Icinga\Module\Director\Web\Controller\TemplateController;
|
2017-07-27 11:01:10 +02:00
|
|
|
|
2017-07-27 11:34:12 +02:00
|
|
|
class TimeperiodtemplateController extends TemplateController
|
2017-07-27 11:01:10 +02:00
|
|
|
{
|
|
|
|
protected function requireTemplate()
|
|
|
|
{
|
|
|
|
return IcingaTimePeriod::load([
|
|
|
|
'object_name' => $this->params->get('name')
|
|
|
|
], $this->db());
|
|
|
|
}
|
|
|
|
}
|