mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +02:00
ObjectController: remove obsolete actions
This commit is contained in:
parent
decfcfd67b
commit
195a30773c
@ -36,26 +36,6 @@ class Director_ObjectController extends ActionController
|
|||||||
$this->render('form');
|
$this->render('form');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function hostvarAction()
|
|
||||||
{
|
|
||||||
$this->view->form = $this->loadForm('icingaHostVar')
|
|
||||||
->setDb($this->db())
|
|
||||||
->setSuccessUrl('director/list/hostvars');
|
|
||||||
|
|
||||||
if (($host_id = $this->params->get('host_id'))
|
|
||||||
&& ($varname = $this->params->get('varname'))) {
|
|
||||||
$this->view->form->loadObject(array(
|
|
||||||
'host_id' => $host_id,
|
|
||||||
'varname' => $varname,
|
|
||||||
));
|
|
||||||
$this->view->title = $this->translate('Modify Icinga Host Variable');
|
|
||||||
} else {
|
|
||||||
$this->view->title = $this->translate('Add new Icinga Host Variable');
|
|
||||||
}
|
|
||||||
$this->view->form->handleRequest();
|
|
||||||
$this->render('form');
|
|
||||||
}
|
|
||||||
|
|
||||||
public function serviceAction()
|
public function serviceAction()
|
||||||
{
|
{
|
||||||
$this->view->form = $this->loadForm('icingaService')
|
$this->view->form = $this->loadForm('icingaService')
|
||||||
@ -88,26 +68,6 @@ class Director_ObjectController extends ActionController
|
|||||||
$this->render('form');
|
$this->render('form');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function servicevarAction()
|
|
||||||
{
|
|
||||||
$this->view->form = $this->loadForm('icingaServiceVar')
|
|
||||||
->setDb($this->db())
|
|
||||||
->setSuccessUrl('director/list/servicevars');
|
|
||||||
|
|
||||||
if (($host_id = $this->params->get('service_id'))
|
|
||||||
&& ($varname = $this->params->get('varname'))) {
|
|
||||||
$this->view->form->loadObject(array(
|
|
||||||
'service_id' => $host_id,
|
|
||||||
'varname' => $varname,
|
|
||||||
));
|
|
||||||
$this->view->title = $this->translate('Modify Icinga Service Variable');
|
|
||||||
} else {
|
|
||||||
$this->view->title = $this->translate('Add new Icinga Service Variable');
|
|
||||||
}
|
|
||||||
$this->view->form->handleRequest();
|
|
||||||
$this->render('form');
|
|
||||||
}
|
|
||||||
|
|
||||||
public function commandAction()
|
public function commandAction()
|
||||||
{
|
{
|
||||||
$this->view->form = $this->loadForm('icingaCommand')
|
$this->view->form = $this->loadForm('icingaCommand')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user