Cron job for definition for oer harvesting.
More...
|
| checkSchedule ($a_ts_last_run, $a_schedule_type, $a_schedule_value) |
|
Cron job for definition for oer harvesting.
- Author
- Stefan Meyer smeye.nosp@m.r.il.nosp@m.ias@g.nosp@m.mx.d.nosp@m.e
Definition at line 11 of file class.ilCronOerHarvester.php.
◆ __construct()
ilCronOerHarvester::__construct |
( |
| ) |
|
◆ addCustomSettingsToForm()
- Parameters
-
Definition at line 122 of file class.ilCronOerHarvester.php.
References $target, ilMDCopyrightSelectionEntry\_getEntries(), ilPropertyFormGUI\addItem(), ilFormPropertyGUI\setRequired(), and settings().
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);
static _getEntries()
get entries
This class represents an option in a checkbox group.
◆ addToExternalSettingsForm()
ilCronOerHarvester::addToExternalSettingsForm |
( |
|
$a_form_id, |
|
|
array & |
$a_fields, |
|
|
|
$a_is_active |
|
) |
| |
◆ getDefaultScheduleType()
ilCronOerHarvester::getDefaultScheduleType |
( |
| ) |
|
◆ getDefaultScheduleValue()
ilCronOerHarvester::getDefaultScheduleValue |
( |
| ) |
|
◆ getDescription()
ilCronOerHarvester::getDescription |
( |
| ) |
|
◆ getId()
ilCronOerHarvester::getId |
( |
| ) |
|
◆ getTitle()
ilCronOerHarvester::getTitle |
( |
| ) |
|
◆ hasAutoActivation()
ilCronOerHarvester::hasAutoActivation |
( |
| ) |
|
◆ hasCustomSettings()
ilCronOerHarvester::hasCustomSettings |
( |
| ) |
|
◆ hasFlexibleSchedule()
ilCronOerHarvester::hasFlexibleSchedule |
( |
| ) |
|
◆ run()
ilCronOerHarvester::run |
( |
| ) |
|
Definition at line 185 of file class.ilCronOerHarvester.php.
References $res.
187 $this->logger->info(
'Started cron oer harvester.');
189 $res = $harvester->run();
190 $this->logger->info(
'cron oer harvester finished');
Cron job for definition for oer harvesting.
foreach($_POST as $key=> $value) $res
Cron job result data container.
◆ saveCustomSettings()
◆ $lng
ilCronOerHarvester::$lng = null |
|
private |
◆ $logger
ilCronOerHarvester::$logger = null |
|
private |
◆ $settings
ilCronOerHarvester::$settings = null |
|
private |
◆ CRON_JOB_IDENTIFIER
const ilCronOerHarvester::CRON_JOB_IDENTIFIER = 'meta_oer_harvester' |
◆ DEFAULT_SCHEDULE_VALUE
const ilCronOerHarvester::DEFAULT_SCHEDULE_VALUE = 1 |
The documentation for this class was generated from the following file: