19declare(strict_types=1);
30use Psr\Http\Message\ServerRequestInterface;
38 private readonly UIFactory $ui_factory,
54 return $this->ui_factory->table()->action()->single(
55 $this->
lng->txt(
'personal_settings_export'),
57 ->withParameter($action_token, self::
ACTION_ID)
70 ServerRequestInterface $request,
71 array $selected_templates,
73 if (count($selected_templates) !== 1) {
74 throw new \InvalidArgumentException(
'Expected exactly one template to be selected');
77 $this->exporter->setTemplateId(reset($selected_templates)->
getId());
78 $this->exporter->deliver();
Builds a Color from either hex- or rgb values.
buildModal(URLBuilder $url_builder, array $selected_templates)
__construct(private readonly Language $lng, private readonly UIFactory $ui_factory, private readonly PersonalSettingsExporter $exporter,)
onSubmit(URLBuilder $url_builder, ServerRequestInterface $request, array $selected_templates,)
buildTableAction(URLBuilder $url_builder, URLBuilderToken $row_id_token, URLBuilderToken $action_token, URLBuilderToken $action_type_token)
return['delivery_method'=> 'php',]
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
This describes commonalities between the different modals.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
if(!file_exists('../ilias.ini.php'))