19declare(strict_types=1);
37 private readonly \
ilCtrl $ctrl,
42 private readonly UIFactory $ui_factory,
50 $cmd = $this->
ctrl->getCmd(self::CMD_DEFAULT) .
'Cmd';
55 ?StandardForm $form =
null
57 $this->tpl->setContent(
58 $this->ui_renderer->render(
66 $form = $this->buildSettingsForm()->withRequest($this->
http->request());
67 $data = $form->getData();
69 $this->viewCmd($form);
73 $data[
'default_user_settings'][
'create_mode']
76 $this->
ctrl->redirectByClass(
78 \ilAdministrationGUI::class,
79 \ilObjQuestionsGUI::class,
87 return $this->ui_factory->input()->container()->form()->standard(
88 $this->
ctrl->getLinkTargetByClass(
90 \ilAdministrationGUI::class,
91 \ilObjQuestionsGUI::class,
97 'default_user_settings' => $this->ui_factory->input()->field()->section(
99 'create_mode' => $this->repository->getInputForCreateMode(
100 $this->ui_factory->input()->field(),
103 )->withAdditionalTransformation(
104 $this->refinery->custom()->transformation(
105 static fn(
string $v):
CreateModes => CreateModes::tryFrom($v)
106 ?? CreateModes::getDefaultMode()
110 $this->
lng->txt(
'default_user_settings')
Builds a Color from either hex- or rgb values.
viewCmd(?StandardForm $form=null)
__construct(private readonly \ilCtrl $ctrl, private readonly HTTP $http, private readonly Language $lng, private readonly Refinery $refinery, private readonly \ilGlobalTemplateInterface $tpl, private readonly UIFactory $ui_factory, private readonly UIRenderer $ui_renderer, private readonly ConfigurationRepository $repository)
Class ilCtrl provides processing control methods.
An entity that renders components to a string output.
readonly HttpService $http
readonly UIRenderer $ui_renderer
static http()
Fetches the global http state from ILIAS.
readonly ilGlobalTemplateInterface $tpl