ObjectController: remove obsolete actions

This commit is contained in:
Thomas Gelf 2015-06-29 16:09:51 +02:00
parent decfcfd67b
commit 195a30773c
1 changed files with 0 additions and 40 deletions

View File

@ -36,26 +36,6 @@ class Director_ObjectController extends ActionController
$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()
{
$this->view->form = $this->loadForm('icingaService')
@ -88,26 +68,6 @@ class Director_ObjectController extends ActionController
$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()
{
$this->view->form = $this->loadForm('icingaCommand')