mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-30 17:24:18 +02:00
CommandController: allow to add single Commands...
...to a configured basket
This commit is contained in:
parent
24165e6d2f
commit
f0cb05a82d
@ -12,7 +12,9 @@ use Icinga\Module\Director\Web\Table\IcingaCommandArgumentTable;
|
||||
class CommandController extends ObjectController
|
||||
{
|
||||
/**
|
||||
* @throws \Icinga\Exception\ProgrammingError
|
||||
* @throws \Icinga\Exception\AuthenticationException
|
||||
* @throws \Icinga\Exception\NotFoundError
|
||||
* @throws \Icinga\Security\SecurityException
|
||||
*/
|
||||
public function init()
|
||||
{
|
||||
@ -28,7 +30,8 @@ class CommandController extends ObjectController
|
||||
}
|
||||
|
||||
/**
|
||||
* @throws \Icinga\Exception\ProgrammingError
|
||||
* @throws \Icinga\Exception\NotFoundError
|
||||
* @throws \Zend_Db_Select_Exception
|
||||
*/
|
||||
public function indexAction()
|
||||
{
|
||||
@ -39,7 +42,9 @@ class CommandController extends ObjectController
|
||||
}
|
||||
|
||||
/**
|
||||
* @throws \Icinga\Exception\ProgrammingError
|
||||
* @throws \Icinga\Exception\NotFoundError
|
||||
* @throws \Icinga\Security\SecurityException
|
||||
* @throws \Zend_Db_Select_Exception
|
||||
*/
|
||||
public function renderAction()
|
||||
{
|
||||
@ -51,7 +56,7 @@ class CommandController extends ObjectController
|
||||
}
|
||||
|
||||
/**
|
||||
* @throws \Icinga\Exception\ProgrammingError
|
||||
* @throws \Zend_Db_Select_Exception
|
||||
*/
|
||||
protected function showUsage()
|
||||
{
|
||||
@ -75,10 +80,6 @@ class CommandController extends ObjectController
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @throws \Icinga\Exception\Http\HttpNotFoundException
|
||||
* @throws \Icinga\Exception\ProgrammingError
|
||||
*/
|
||||
public function argumentsAction()
|
||||
{
|
||||
$p = $this->params;
|
||||
@ -97,4 +98,9 @@ class CommandController extends ObjectController
|
||||
$this->content()->add([$form]);
|
||||
IcingaCommandArgumentTable::create($o)->renderTo($this);
|
||||
}
|
||||
|
||||
protected function hasBasketSupport()
|
||||
{
|
||||
return ! $this->object->isExternal();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user