ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.UIFactory.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21namespace ILIAS\Survey\Settings;
22
25
30{
33 protected \ilObjectService $object_service;
35
36 public function __construct(
39 \ilObjSurvey $survey,
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(
48 $this->domain_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}
checkForm(\ilPropertyFormGUI $form)
InternalDomainService $domain_service
__construct(InternalGUIService $ui_service, \ilObjectService $object_service, \ilObjSurvey $survey, InternalDomainService $domain_service)
saveForm(\ilPropertyFormGUI $form)
This class represents a property form user interface.