◆ __construct()
ilWOPIAdministrationGUI::__construct |
( |
| ) |
|
◆ executeCommand()
ilWOPIAdministrationGUI::executeCommand |
( |
| ) |
|
Definition at line 81 of file class.ilWOPIAdministrationGUI.php.
References ILIAS\Repository\access(), ILIAS\Repository\ctrl(), index(), ILIAS\Repository\lng(), show(), and store().
83 if (!$this->
access->checkAccess(
"read",
"", $this->ref_id)) {
84 $this->maint_tpl->setOnScreenMessage(
'failure', $this->
lng->txt(
"permission_denied"),
true);
85 $this->
ctrl->redirectByClass(ilObjExternalToolsSettingsGUI::class);
88 $cmd = $this->
ctrl->getCmd(self::CMD_DEFAULT);
90 self::CMD_DEFAULT => $this->
index(),
91 self::CMD_SHOW => $this->
show(),
92 self::CMD_STORE => $this->
store(),
93 default =>
throw new ilException(
"command not found: " . $cmd),
◆ getSupportedSuffixes()
ilWOPIAdministrationGUI::getSupportedSuffixes |
( |
| ) |
|
|
private |
Definition at line 125 of file class.ilWOPIAdministrationGUI.php.
References ILIAS\Repository\settings().
Referenced by index().
127 $wopi_activated = (bool) $this->
settings->get(
"wopi_activated",
'0');
128 if (!$wopi_activated) {
132 ActionTarget::EDIT->value => $this->action_repo->getSupportedSuffixes(ActionTarget::EDIT),
133 ActionTarget::VIEW->value => $this->action_repo->getSupportedSuffixes(ActionTarget::VIEW),
◆ index()
ilWOPIAdministrationGUI::index |
( |
| ) |
|
|
private |
Definition at line 97 of file class.ilWOPIAdministrationGUI.php.
References getSupportedSuffixes(), ILIAS\Repository\lng(), and ILIAS\Repository\settings().
Referenced by executeCommand().
101 if (!empty($supported_suffixes)) {
102 $listing = $this->ui_factory->panel()->secondary()->legacy(
103 $this->
lng->txt(
"currently_supported"),
104 $this->ui_factory->legacy(
105 $this->ui_renderer->render(
106 $this->ui_factory->listing()->descriptive([
107 $this->
lng->txt(
'action_edit') => implode(
", ", $supported_suffixes[ActionTarget::EDIT->value]),
108 $this->
lng->txt(
'action_view') => implode(
", ", $supported_suffixes[ActionTarget::VIEW->value]),
113 $info = $this->ui_renderer->render($listing);
118 $this->maint_tpl->setContent(
122 $this->maint_tpl->setRightContent($info);
◆ show()
ilWOPIAdministrationGUI::show |
( |
| ) |
|
|
private |
◆ store()
ilWOPIAdministrationGUI::store |
( |
| ) |
|
|
private |
Definition at line 157 of file class.ilWOPIAdministrationGUI.php.
References $DIC, ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), null, and ILIAS\Repository\settings().
Referenced by executeCommand().
161 if ($form->proceed($this->http->request())) {
164 $this->maint_tpl->setOnScreenMessage(
'success', $this->
lng->txt(
"msg_wopi_settings_modified"),
true);
167 $discovery_url = $this->
settings->get(
"wopi_discovery_url");
168 if ($discovery_url ===
null) {
169 $this->app_repo->clear($this->action_repo);
171 $apps = $this->crawler->crawl(
new URI($discovery_url));
172 if ($apps !==
null) {
173 $this->app_repo->storeCollection($apps, $this->action_repo);
177 $this->
ctrl->redirect($this, self::CMD_DEFAULT);
180 $this->maint_tpl->setContent($form->getHTML());
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
◆ $access
◆ $action_repo
◆ $app_repo
◆ $crawler
Crawler ilWOPIAdministrationGUI::$crawler |
|
private |
◆ $ctrl
◆ $http
◆ $lng
◆ $maint_tpl
◆ $ref_id
int ilWOPIAdministrationGUI::$ref_id = null |
|
private |
◆ $settings
◆ $ui_factory
Factory ilWOPIAdministrationGUI::$ui_factory |
|
private |
◆ $ui_renderer
Renderer ilWOPIAdministrationGUI::$ui_renderer |
|
private |
◆ CMD_DEFAULT
const ilWOPIAdministrationGUI::CMD_DEFAULT = "index" |
◆ CMD_SHOW
const ilWOPIAdministrationGUI::CMD_SHOW = 'show' |
◆ CMD_STORE
const ilWOPIAdministrationGUI::CMD_STORE = "store" |
The documentation for this class was generated from the following file: