diff options
Diffstat (limited to 'application/controllers/TimeperiodtemplateController.php')
-rw-r--r-- | application/controllers/TimeperiodtemplateController.php | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/application/controllers/TimeperiodtemplateController.php b/application/controllers/TimeperiodtemplateController.php new file mode 100644 index 0000000..a7b26a8 --- /dev/null +++ b/application/controllers/TimeperiodtemplateController.php @@ -0,0 +1,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()); + } +} |