3 declare(strict_types=1);
25 $this->
logger = $DIC->logger()->meta();
26 $this->
lng = $DIC->language();
27 $this->
lng->loadLanguageModule(
'meta');
34 return $this->
lng->txt(
'meta_oer_harvester');
39 return $this->
lng->txt(
'meta_oer_harvester_desc');
44 return self::CRON_JOB_IDENTIFIER;
59 return self::SCHEDULE_TYPE_DAILY;
64 return self::DEFAULT_SCHEDULE_VALUE;
76 $this->
lng->txt(
'meta_oer_target'),
83 $explorer->setSelectMode(
'target',
false);
85 $explorer->setTypeWhiteList([
'cat']);
88 $explorer->setPathOpen($this->
settings->getTarget());
92 $target->setRequired(
true);
97 $this->
lng->txt(
'meta_oer_copyright_selection'),
101 $checkbox_group->setValue($this->
settings->getCopyrightTemplates());
102 $checkbox_group->setInfo(
103 $this->
lng->txt(
'meta_oer_copyright_selection_info')
108 $copyright_entry->getTitle(),
109 (string) $copyright_entry->getEntryId(),
110 $copyright_entry->getDescription()
112 $checkbox_group->addOption($copyright_checkox);
114 $a_form->
addItem($checkbox_group);
128 $this->
logger->info(
'Started cron oer harvester.');
130 $res = $harvester->run();
131 $this->
logger->info(
'cron oer harvester finished');
138 switch ($a_form_id) {
141 $a_fields[
'meta_oer_harvester'] =
144 $this->
lng->txt(
'enabled') :
145 $this->
lng->txt(
'disabled')
ilOerHarvesterSettings $settings
const CRON_JOB_IDENTIFIER
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
addCustomSettingsToForm(ilPropertyFormGUI $a_form)
Cron job for definition for oer harvesting.
Cron job for definition for oer harvesting.
addToExternalSettingsForm(int $a_form_id, array &$a_fields, bool $a_is_active)
saveCustomSettings(ilPropertyFormGUI $a_form)
Cron job for definition for oer harvesting.
const DEFAULT_SCHEDULE_VALUE
getDefaultScheduleValue()