ILIAS  trunk Revision v11.0_alpha-1723-g8e69f309bab
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
class.UIFactory.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
21 namespace ILIAS\Survey\Settings;
22 
25 
29 class UIFactory
30 {
33  protected \ilObjectService $object_service;
35 
36  public function __construct(
37  InternalGUIService $ui_service,
38  \ilObjectService $object_service,
39  \ilObjSurvey $survey,
40  InternalDomainService $domain_service
41  ) {
42  $this->ui_service = $ui_service;
43  $this->object_service = $object_service;
44  $this->domain_service = $domain_service;
45  $mode_ui_modifier = $ui_service->modeUIModifier($survey->getMode());
46  $this->settings_form_gui = new SettingsFormGUI(
47  $ui_service,
48  $this->domain_service,
49  $object_service,
50  $survey,
51  $mode_ui_modifier
52  );
53  }
54 
55  public function form(string $target_class): \ilPropertyFormGUI
56  {
57  return $this->settings_form_gui->getForm($target_class);
58  }
59 
60  public function checkForm(\ilPropertyFormGUI $form): bool
61  {
62  return $this->settings_form_gui->checkForm($form);
63  }
64 
65  public function saveForm(\ilPropertyFormGUI $form): void
66  {
67  $this->settings_form_gui->saveForm($form);
68  }
69 }
InternalDomainService $domain_service
saveForm(\ilPropertyFormGUI $form)
__construct(InternalGUIService $ui_service, \ilObjectService $object_service, \ilObjSurvey $survey, InternalDomainService $domain_service)
checkForm(\ilPropertyFormGUI $form)