mirror of
https://github.com/Icinga/icingaweb2-module-businessprocess.git
synced 2025-12-20 23:00:16 -05:00
BpConfigForm: remove legacy code
This commit is contained in:
parent
c9a0cda577
commit
37150c1f2e
1 changed files with 0 additions and 25 deletions
|
|
@ -23,8 +23,6 @@ class BpConfigForm extends Form
|
||||||
|
|
||||||
protected $processList = array();
|
protected $processList = array();
|
||||||
|
|
||||||
protected $session;
|
|
||||||
|
|
||||||
public function setup()
|
public function setup()
|
||||||
{
|
{
|
||||||
$this->addElement('text', 'name', array(
|
$this->addElement('text', 'name', array(
|
||||||
|
|
@ -74,12 +72,6 @@ class BpConfigForm extends Form
|
||||||
return array_combine($keys, $keys);
|
return array_combine($keys, $keys);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function XXsetBackend($backend)
|
|
||||||
{
|
|
||||||
$this->backend = $backend;
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function setStorage($storage)
|
public function setStorage($storage)
|
||||||
{
|
{
|
||||||
$this->storage = $storage;
|
$this->storage = $storage;
|
||||||
|
|
@ -110,12 +102,6 @@ class BpConfigForm extends Form
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setSession($session)
|
|
||||||
{
|
|
||||||
$this->session = $session;
|
|
||||||
return $this;
|
|
||||||
}
|
|
||||||
|
|
||||||
public function onSuccess()
|
public function onSuccess()
|
||||||
{
|
{
|
||||||
$name = $this->getValue('name');
|
$name = $this->getValue('name');
|
||||||
|
|
@ -149,16 +135,5 @@ class BpConfigForm extends Form
|
||||||
} else {
|
} else {
|
||||||
Notification::success(sprintf('Process %s has NOT YET been modified', $name));
|
Notification::success(sprintf('Process %s has NOT YET been modified', $name));
|
||||||
}
|
}
|
||||||
/*
|
|
||||||
$storage->storeProcess($bp);
|
|
||||||
$modifications = $this->session->get('modifications', array());
|
|
||||||
$node = $this->config->getNode($this->getValue('name'));
|
|
||||||
$node->setChildNames($this->getValue('children'));
|
|
||||||
$node->setOperator($this->getValue('operator'));
|
|
||||||
$modifications[$this->config->getName()] = $this->config->toLegacyConfigString();
|
|
||||||
$this->session->set('modifications', $modifications);
|
|
||||||
$message = 'Process %s has been modified';
|
|
||||||
Notification::success(sprintf($message, $this->config->getName()));
|
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue