CommandController: allow to add single Commands...

...to a configured basket
This commit is contained in:
Thomas Gelf 2018-10-30 16:35:09 +01:00
parent 24165e6d2f
commit f0cb05a82d

View File

@ -12,7 +12,9 @@ use Icinga\Module\Director\Web\Table\IcingaCommandArgumentTable;
class CommandController extends ObjectController class CommandController extends ObjectController
{ {
/** /**
* @throws \Icinga\Exception\ProgrammingError * @throws \Icinga\Exception\AuthenticationException
* @throws \Icinga\Exception\NotFoundError
* @throws \Icinga\Security\SecurityException
*/ */
public function init() 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() 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() public function renderAction()
{ {
@ -51,7 +56,7 @@ class CommandController extends ObjectController
} }
/** /**
* @throws \Icinga\Exception\ProgrammingError * @throws \Zend_Db_Select_Exception
*/ */
protected function showUsage() protected function showUsage()
{ {
@ -75,10 +80,6 @@ class CommandController extends ObjectController
} }
} }
/**
* @throws \Icinga\Exception\Http\HttpNotFoundException
* @throws \Icinga\Exception\ProgrammingError
*/
public function argumentsAction() public function argumentsAction()
{ {
$p = $this->params; $p = $this->params;
@ -97,4 +98,9 @@ class CommandController extends ObjectController
$this->content()->add([$form]); $this->content()->add([$form]);
IcingaCommandArgumentTable::create($o)->renderTo($this); IcingaCommandArgumentTable::create($o)->renderTo($this);
} }
protected function hasBasketSupport()
{
return ! $this->object->isExternal();
}
} }