3declare(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');
76 $this->
lng->txt(
'meta_oer_target'),
82 $explorer = $target->getExplorerGUI();
83 $explorer->setSelectMode(
'target',
false);
85 $explorer->setTypeWhiteList([
'cat']);
88 $explorer->setPathOpen($this->
settings->getTarget());
89 $target->setValue($this->
settings->getTarget());
92 $target->setRequired(
true);
97 $this->
lng->txt(
'meta_oer_copyright_selection'),
100 $checkbox_group->setRequired(
true);
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')
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
const SCHEDULE_TYPE_DAILY
@depracated This will be replaced with an ENUM in ILIAS 9
Cron job for definition for oer harvesting.
getDefaultScheduleValue()
ilOerHarvesterSettings $settings
const CRON_JOB_IDENTIFIER
addCustomSettingsToForm(ilPropertyFormGUI $a_form)
const DEFAULT_SCHEDULE_VALUE
hasAutoActivation()
Is to be activated on "installation", does only work for ILIAS core cron jobs.
addToExternalSettingsForm(int $a_form_id, array &$a_fields, bool $a_is_active)
saveCustomSettings(ilPropertyFormGUI $a_form)
Component logger with individual log levels by component id.
Cron job for definition for oer harvesting.
Cron job for definition for oer harvesting.