mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-31 01:34:12 +02:00
parent
5fe976e059
commit
df4c3b925c
@ -14,6 +14,7 @@ use Icinga\Module\Director\Objects\IcingaObject;
|
|||||||
use Icinga\Module\Director\RestApi\IcingaObjectsHandler;
|
use Icinga\Module\Director\RestApi\IcingaObjectsHandler;
|
||||||
use Icinga\Module\Director\Web\ActionBar\ObjectsActionBar;
|
use Icinga\Module\Director\Web\ActionBar\ObjectsActionBar;
|
||||||
use Icinga\Module\Director\Web\ActionBar\TemplateActionBar;
|
use Icinga\Module\Director\Web\ActionBar\TemplateActionBar;
|
||||||
|
use Icinga\Module\Director\Web\Form\FormLoader;
|
||||||
use Icinga\Module\Director\Web\Table\ApplyRulesTable;
|
use Icinga\Module\Director\Web\Table\ApplyRulesTable;
|
||||||
use Icinga\Module\Director\Web\Table\ObjectSetTable;
|
use Icinga\Module\Director\Web\Table\ObjectSetTable;
|
||||||
use Icinga\Module\Director\Web\Table\ObjectsTable;
|
use Icinga\Module\Director\Web\Table\ObjectsTable;
|
||||||
@ -319,6 +320,23 @@ abstract class ObjectsController extends ActionController
|
|||||||
return $objects;
|
return $objects;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param string $name
|
||||||
|
*
|
||||||
|
* @return \Icinga\Module\Director\Web\Form\QuickForm
|
||||||
|
* @throws \Icinga\Exception\ProgrammingError
|
||||||
|
*/
|
||||||
|
public function loadForm($name)
|
||||||
|
{
|
||||||
|
$form = FormLoader::load($name, $this->Module());
|
||||||
|
if ($this->getRequest()->isApiRequest()) {
|
||||||
|
// TODO: Ask form for API support?
|
||||||
|
$form->setApiRequest();
|
||||||
|
}
|
||||||
|
|
||||||
|
return $form;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param ZfQueryBasedTable $table
|
* @param ZfQueryBasedTable $table
|
||||||
* @return ZfQueryBasedTable
|
* @return ZfQueryBasedTable
|
||||||
|
Loading…
x
Reference in New Issue
Block a user