icingaweb2-module-businessp.../application/controllers/NodeController.php
Thomas Gelf 0bcdb7f502 NodeController: remove obsolete actions...
...they are handled by various inline forms in the ProcessController
2016-12-16 19:29:53 +01:00

35 lines
830 B
PHP

<?php
namespace Icinga\Module\Businessprocess\Controllers;
use Icinga\Module\Businessprocess\Web\Controller;
use Icinga\Module\Businessprocess\Simulation;
use Icinga\Web\Url;
/*
config = <file>
process = <node>
*/
class NodeController extends Controller
{
// rename to config
public function editAction()
{
$bp = $this->loadModifiedBpConfig();
$node = $bp->getNode($this->getParam('node'));
$url = Url::fromPath(
'businessprocess/process/show?unlocked',
array('config' => $bp->getName())
);
$this->view->form = $this->loadForm('process')
->setProcess($bp)
->setSession($this->session())
->setNode($node)
->setSuccessUrl($url)
->handleRequest();
$this->view->node = $node;
}
}