◆ __construct()
| ilWOPISettingsForm::__construct |
( |
private Setting |
$settings | ) |
|
◆ getHTML()
| ilWOPISettingsForm::getHTML |
( |
| ) |
|
◆ getSection()
| ilWOPISettingsForm::getSection |
( |
| ) |
|
|
private |
Definition at line 63 of file class.ilWOPISettingsForm.php.
References ILIAS\Repository\lng(), ILIAS\Repository\refinery(), ILIAS\Repository\settings(), ILIAS\UI\Implementation\Component\Input\ViewControl\withAdditionalTransformation(), and ILIAS\UI\Implementation\Component\Input\withValue().
Referenced by initForm().
65 $wopi_activated = (bool) $this->
settings->get(
"wopi_activated",
'0');
66 $wopi_discovery_url = $this->
settings->get(
"wopi_discovery_url");
68 $wopi_url = $this->ui_factory->input()->field()->text(
69 $this->
lng->txt(
"wopi_url"),
70 $this->
lng->txt(
"wopi_url_byline")
77 $this->
refinery->custom()->transformation(
function ($v) {
78 return $v ===
'' ? null : $v;
80 )->withAdditionalTransformation(
81 $this->
refinery->custom()->constraint(
function ($v) {
86 }, $this->
lng->txt(
'msg_error_wopi_invalid_discorvery_url'))
87 )->withAdditionalTransformation(
88 $this->
refinery->custom()->transformation(
function ($v) {
89 $this->
settings->set(
"wopi_discovery_url", $v);
94 $wopi_discovery_url ??
'' 97 return $this->ui_factory->input()->field()->section(
99 $this->ui_factory->input()->field()->optionalGroup(
101 $this->
lng->txt(
"activate_wopi")
103 $wopi_discovery_url === null ? null : [$wopi_discovery_url]
104 )->withAdditionalTransformation(
105 $this->
refinery->custom()->transformation(
function ($v) {
106 if ($v === null || $v === [null]) {
107 $this->
settings->set(
"wopi_activated",
'0');
108 $this->
settings->delete(
"wopi_discovery_url");
110 $this->
settings->set(
"wopi_activated",
"1");
116 $this->
lng->txt(
"wopi_settings"),
The scope of this class is split ilias-conform URI's into components.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
◆ initForm()
| ilWOPISettingsForm::initForm |
( |
| ) |
|
|
private |
◆ proceed()
| ilWOPISettingsForm::proceed |
( |
RequestInterface |
$request | ) |
|
◆ renderLink()
| ilWOPISettingsForm::renderLink |
( |
string |
$translation, |
|
|
string |
$url, |
|
|
bool |
$new_tab = true |
|
) |
| |
|
private |
Definition at line 132 of file class.ilWOPISettingsForm.php.
134 $link = $this->ui_factory->link()->standard(
137 )->withOpenInNewViewport($new_tab);
138 return $this->ui_renderer->render($link);
◆ $ctrl
◆ $form
◆ $lng
◆ $refinery
| ILIAS Refinery Factory ilWOPISettingsForm::$refinery |
|
private |
◆ $ui_factory
| ILIAS UI Factory ilWOPISettingsForm::$ui_factory |
|
private |
◆ $ui_renderer
| ILIAS UI Renderer ilWOPISettingsForm::$ui_renderer |
|
private |
The documentation for this class was generated from the following file: