19 declare(strict_types=1);
44 $this->
language->loadLanguageModule(
'wopi');
54 return 'wopi_crawler';
59 return $this->
language->txt(
'wopi_crawler_cronjob_title');
64 return $this->
language->txt(
'wopi_crawler_cronjob_description');
79 return CronJobScheduleType::SCHEDULE_TYPE_WEEKLY;
90 if (!(
bool) $this->
settings->get(
'wopi_activated',
'0')) {
91 $result->setMessage($this->
language->txt(
'wopi_crawler_cronjob_not_activated'));
94 $discovery_url = $this->
settings->get(
'wopi_discovery_url');
96 if (!$this->crawler->validate(
new URI($discovery_url))) {
98 $result->setMessage($this->
language->txt(
'msg_error_wopi_invalid_discorvery_url'));
102 $apps = $this->crawler->crawl(
new URI($discovery_url));
103 if ($apps === null) {
105 $result->setMessage($this->
language->txt(
'wopi_crawler_cronjob_no_apps'));
108 $result->setMessage($this->
language->txt(
'wopi_crawler_cronjob_success'));
109 $this->app_repository->storeCollection($apps, $this->action_repository);
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getDefaultScheduleValue()
AppRepository $app_repository
ActionRepository $action_repository
The scope of this class is split ilias-conform URI's into components.
language()
description: > Example for rendring a language glyph.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...