|
| __construct () |
|
| getId () |
|
| getTitle () |
|
| getDescription () |
|
| hasAutoActivation () |
|
| hasFlexibleSchedule () |
|
| getDefaultScheduleType () |
|
| getDefaultScheduleValue () |
|
| run () |
|
| setDateTimeProvider (?\Closure $date_time_provider) |
|
| isDue (?\DateTimeImmutable $last_run, ?JobScheduleType $schedule_type, ?int $schedule_value, bool $is_manually_executed=false) |
|
| getScheduleType () |
| Get current schedule type (if flexible) More...
|
|
| getScheduleValue () |
| Get current schedule value (if flexible) More...
|
|
| setSchedule (?JobScheduleType $a_type, ?int $a_value) |
| Update current schedule (if flexible) More...
|
|
| getAllScheduleTypes () |
| Get all available schedule types. More...
|
|
| getScheduleTypesWithValues () |
|
| getValidScheduleTypes () |
| Returns a collection of all valid schedule types for a specific job. More...
|
|
| isManuallyExecutable () |
|
| hasCustomSettings () |
|
| usesLegacyForms () |
|
| getCustomConfigurationInput (\ILIAS\UI\Factory $ui_factory, \ILIAS\Refinery\Factory $factory, \ilLanguage $lng) |
|
| addCustomSettingsToForm (\ilPropertyFormGUI $a_form) |
|
| saveCustomConfiguration (mixed $form_data) |
|
| saveCustomSettings (\ilPropertyFormGUI $a_form) |
|
| addToExternalSettingsForm (int $a_form_id, array &$a_fields, bool $a_is_active) |
|
| activationWasToggled (\ilDBInterface $db, \ilSetting $setting, bool $a_currently_active) |
| Important: This method is (also) called from the setup process, where the constructor of an ilCronJob ist NOT executed. More...
|
|
| getId () |
|
| getTitle () |
|
| getDescription () |
|
| hasAutoActivation () |
| Is to be activated on "installation", does only work for ILIAS core cron jobs. More...
|
|
| hasFlexibleSchedule () |
|
| getDefaultScheduleType () |
|
| getDefaultScheduleValue () |
|
| run () |
|
◆ __construct()
ilWOPICrawler::__construct |
( |
| ) |
|
◆ getDefaultScheduleType()
ilWOPICrawler::getDefaultScheduleType |
( |
| ) |
|
◆ getDefaultScheduleValue()
ilWOPICrawler::getDefaultScheduleValue |
( |
| ) |
|
◆ getDescription()
ilWOPICrawler::getDescription |
( |
| ) |
|
◆ getId()
◆ getTitle()
ilWOPICrawler::getTitle |
( |
| ) |
|
◆ hasAutoActivation()
ilWOPICrawler::hasAutoActivation |
( |
| ) |
|
◆ hasFlexibleSchedule()
ilWOPICrawler::hasFlexibleSchedule |
( |
| ) |
|
◆ run()
Definition at line 89 of file class.ilWOPICrawler.php.
References ILIAS\UI\examples\Symbol\Glyph\Language\language(), null, and ILIAS\Repository\settings().
92 if (!(
bool) $this->
settings->get(
'wopi_activated',
'0')) {
93 $result->setMessage($this->
language->txt(
'wopi_crawler_cronjob_not_activated'));
96 $discovery_url = $this->
settings->get(
'wopi_discovery_url');
98 if (!$this->crawler->validate(
new URI($discovery_url))) {
99 $result->setStatus(JobResult::STATUS_FAIL);
100 $result->setMessage($this->
language->txt(
'msg_error_wopi_invalid_discorvery_url'));
104 $apps = $this->crawler->crawl(
new URI($discovery_url));
105 if ($apps ===
null) {
106 $result->setStatus(JobResult::STATUS_FAIL);
107 $result->setMessage($this->
language->txt(
'wopi_crawler_cronjob_no_apps'));
110 $result->setMessage($this->
language->txt(
'wopi_crawler_cronjob_success'));
111 $this->app_repository->storeCollection($apps, $this->action_repository);
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
language()
description: > Example for rendring a language glyph.
◆ $action_repository
◆ $app_repository
◆ $crawler
◆ $language
◆ $settings
The documentation for this class was generated from the following file: