2016-10-13 10:33:10 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Icinga\Module\Director\Controllers;
|
|
|
|
|
|
|
|
use Icinga\Module\Director\Web\Controller\ObjectsController;
|
|
|
|
|
|
|
|
class ScheduledDowntimesController extends ObjectsController
|
|
|
|
{
|
2018-06-15 02:08:06 +02:00
|
|
|
protected function addObjectsTabs()
|
|
|
|
{
|
|
|
|
$res = parent::addObjectsTabs();
|
|
|
|
$this->tabs()->remove('index');
|
2019-04-11 11:17:58 +02:00
|
|
|
$this->tabs()->remove('templates');
|
2018-06-15 02:08:06 +02:00
|
|
|
return $res;
|
|
|
|
}
|
|
|
|
|
2019-04-10 17:19:46 +02:00
|
|
|
protected function getTable()
|
|
|
|
{
|
|
|
|
return parent::getTable()
|
|
|
|
->setBaseObjectUrl('director/scheduled-downtime');
|
|
|
|
}
|
|
|
|
|
|
|
|
protected function getApplyRulesTable()
|
|
|
|
{
|
|
|
|
return parent::getApplyRulesTable()->createLinksWithNames();
|
|
|
|
}
|
|
|
|
|
2018-06-14 17:51:48 +02:00
|
|
|
public function getType()
|
|
|
|
{
|
|
|
|
return 'scheduledDowntime';
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getBaseObjectUrl()
|
|
|
|
{
|
|
|
|
return 'scheduled-downtime';
|
|
|
|
}
|
2016-10-13 10:33:10 +02:00
|
|
|
}
|