46 $this->logger = $DIC->logger()->meta();
47 $this->lng = $DIC->language();
48 $this->lng->loadLanguageModule(
'meta');
58 return $this->lng->txt(
'meta_oer_harvester');
66 return $this->lng->txt(
'meta_oer_harvester_desc');
74 return self::CRON_JOB_IDENTIFIER;
99 return self::SCHEDULE_TYPE_DAILY;
107 return self::DEFAULT_SCHEDULE_VALUE;
126 $this->lng->txt(
'meta_oer_target'),
131 $explorer =
$target->getExplorerGUI();
132 $explorer->setSelectMode(
'target',
false);
133 $explorer->setRootId(ROOT_FOLDER_ID);
134 $explorer->setTypeWhiteList([
'cat']);
137 $explorer->setPathOpen($this->
settings->getTarget());
147 $this->lng->txt(
'meta_oer_copyright_selection'),
151 $checkbox_group->setValue($this->
settings->getCopyrightTemplates());
152 $checkbox_group->setInfo(
153 $this->lng->txt(
'meta_oer_copyright_selection_info')
158 $copyright_entry->getTitle(),
159 $copyright_entry->getEntryId(),
160 $copyright_entry->getDescription()
162 $checkbox_group->addOption($copyright_checkox);
164 $a_form->
addItem($checkbox_group);
187 $this->logger->info(
'Started cron oer harvester.');
189 $res = $harvester->run();
190 $this->logger->info(
'cron oer harvester finished');
206 $lng = $DIC->language();
208 switch ($a_form_id) {
211 $a_fields[
'meta_oer_harvester'] =
214 $lng->txt(
'enabled') :
215 $lng->txt(
'disabled')
static _getEntries()
get entries
const CRON_JOB_IDENTIFIER
__construct()
ilOerHarvester constructor.
This class represents an option in a checkbox group.
addCustomSettingsToForm(ilPropertyFormGUI $a_form)
Cron job application base class.
Cron job for definition for oer harvesting.
Cron job for definition for oer harvesting.
foreach($_POST as $key=> $value) $res
saveCustomSettings(ilPropertyFormGUI $a_form)
const DEFAULT_SCHEDULE_VALUE
addToExternalSettingsForm($a_form_id, array &$a_fields, $a_is_active)
Provide external settings for presentation in MD settings.
Cron job result data container.
getDefaultScheduleValue()