public function loadForm($name)
 {
     $form = FormLoader::load($name, $this->Module());
     if ($this->getRequest()->isApiRequest()) {
         // TODO: Ask form for API support?
         $form->setApiRequest();
     }
     return $form;
 }
Пример #2
0
 protected function loadForm($name, Module $module = null)
 {
     if ($module === null) {
         $module = $this->icingaModule;
     }
     return FormLoader::load($name, $module);
 }