ILIAS  release_8 Revision v8.24
class.UIFactory.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
21namespace ILIAS\Survey\Settings;
22
25
30{
33 protected \ilObjectServiceInterface $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
46 $mode_ui_modifier = $ui_service->modeUIModifier($survey->getMode());
47 $this->settings_form_gui = new SettingsFormGUI(
49 $this->domain_service,
51 $survey,
52 $mode_ui_modifier
53 );
54 }
55
56 public function form(string $target_class): \ilPropertyFormGUI
57 {
58 return $this->settings_form_gui->getForm($target_class);
59 }
60
61 public function checkForm(\ilPropertyFormGUI $form): bool
62 {
63 return $this->settings_form_gui->checkForm($form);
64 }
65
66 public function saveForm(\ilPropertyFormGUI $form): void
67 {
68 $this->settings_form_gui->saveForm($form);
69 }
70}
checkForm(\ilPropertyFormGUI $form)
__construct(InternalGUIService $ui_service, \ilObjectServiceInterface $object_service, \ilObjSurvey $survey, InternalDomainService $domain_service)
InternalDomainService $domain_service
saveForm(\ilPropertyFormGUI $form)
ilObjectServiceInterface $object_service
This class represents a property form user interface.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...