3declare(strict_types=1);
39 $this->storage =
new ilSetting(self::STORAGE_IDENTIFIER);
47 if (!self::$instance instanceof
self) {
48 self::$instance =
new self();
55 return in_array($a_type, self::COLLECTED_TYPES);
68 $this->target = $a_target;
81 $this->copyright_templates = $a_template_ids;
105 $lom_entries[] =
'il_copyright_entry__' . $this->
settings->get(
'inst_id',
'0') .
'__' . $copyright_id;
112 $this->storage->set(
'target', (
string) $this->
getTarget());
113 $this->storage->set(
'templates', serialize($this->copyright_templates));
118 $this->
setTarget((
int) $this->storage->get(
'target',
'0'));
119 $this->
setCopyrightTemplates(unserialize($this->storage->get(
'templates', serialize([])), [
'allowed_classes' =>
false]));
Cron job for definition for oer harvesting.
Cron job for definition for oer harvesting.
ilCronOerHarvester $cronjob
const CRON_JOB_IDENTIFIER
getCopyRightTemplatesInLomFormat()
Get copyright entries in LOM format: "il_copyright_entry_INST_ID_ID".
supportsHarvesting(string $a_type)
setCopyrightTemplates(array $a_template_ids)
static ilOerHarvesterSettings $instance
isActiveCopyrightTemplate(int $a_id)
array $copyright_templates
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...