ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
|
Cron job for definition for oer harvesting. More...
Public Member Functions | |
__construct () | |
ilOerHarvester constructor. More... | |
getTitle () | |
getDescription () | |
getId () | |
hasAutoActivation () | |
hasFlexibleSchedule () | |
getDefaultScheduleType () | |
getDefaultScheduleValue () | |
hasCustomSettings () | |
addCustomSettingsToForm (ilPropertyFormGUI $a_form) | |
saveCustomSettings (ilPropertyFormGUI $a_form) | |
run () | |
addToExternalSettingsForm ($a_form_id, array &$a_fields, $a_is_active) | |
Provide external settings for presentation in MD settings. More... | |
![]() | |
isActive ($a_ts_last_run, $a_schedule_type, $a_schedule_value, $a_manual=false) | |
Is job currently active? More... | |
getScheduleType () | |
Get current schedule type (if flexible) More... | |
getScheduleValue () | |
Get current schedule value (if flexible) More... | |
setSchedule ($a_type, $a_value) | |
Update current schedule (if flexible) More... | |
getAllScheduleTypes () | |
Get all available schedule types. More... | |
getScheduleTypesWithValues () | |
getValidScheduleTypes () | |
Returns a collection of all valid schedule types for a specific job. More... | |
getTitle () | |
Get title. More... | |
getDescription () | |
Get description. More... | |
isManuallyExecutable () | |
Defines whether or not a cron job can be started manually. More... | |
hasCustomSettings () | |
Has cron job any custom setting which can be edited? More... | |
addCustomSettingsToForm (ilPropertyFormGUI $a_form) | |
Add custom settings to form. More... | |
saveCustomSettings (ilPropertyFormGUI $a_form) | |
Save custom settings. More... | |
addToExternalSettingsForm ($a_form_id, array &$a_fields, $a_is_active) | |
Add external settings to form. More... | |
activationWasToggled ($a_currently_active) | |
Cron job status was changed. More... | |
getId () | |
Get id. More... | |
hasAutoActivation () | |
Is to be activated on "installation". More... | |
hasFlexibleSchedule () | |
Can the schedule be configured? More... | |
getDefaultScheduleType () | |
Get schedule type. More... | |
getDefaultScheduleValue () | |
Get schedule value. More... | |
run () | |
Run job. More... | |
Data Fields | |
const | CRON_JOB_IDENTIFIER = 'meta_oer_harvester' |
const | DEFAULT_SCHEDULE_VALUE = 1 |
![]() | |
const | SCHEDULE_TYPE_DAILY = 1 |
const | SCHEDULE_TYPE_IN_MINUTES = 2 |
const | SCHEDULE_TYPE_IN_HOURS = 3 |
const | SCHEDULE_TYPE_IN_DAYS = 4 |
const | SCHEDULE_TYPE_WEEKLY = 5 |
const | SCHEDULE_TYPE_MONTHLY = 6 |
const | SCHEDULE_TYPE_QUARTERLY = 7 |
const | SCHEDULE_TYPE_YEARLY = 8 |
Private Attributes | |
$logger = null | |
$lng = null | |
$settings = null | |
Additional Inherited Members | |
![]() | |
checkSchedule ($a_ts_last_run, $a_schedule_type, $a_schedule_value) | |
Cron job for definition for oer harvesting.
Definition at line 11 of file class.ilCronOerHarvester.php.
ilCronOerHarvester::__construct | ( | ) |
ilOerHarvester constructor.
Definition at line 42 of file class.ilCronOerHarvester.php.
References $DIC, ilOerHarvesterSettings\getInstance(), and settings().
ilCronOerHarvester::addCustomSettingsToForm | ( | ilPropertyFormGUI | $a_form | ) |
ilPropertyFormGUI | $a_form |
Definition at line 122 of file class.ilCronOerHarvester.php.
References ilMDCopyrightSelectionEntry\_getEntries(), ilPropertyFormGUI\addItem(), ilRepositorySelector2InputGUI\getExplorerGUI(), ilFormPropertyGUI\setRequired(), settings(), and ilExplorerSelectInputGUI\setValue().
ilCronOerHarvester::addToExternalSettingsForm | ( | $a_form_id, | |
array & | $a_fields, | ||
$a_is_active | |||
) |
Provide external settings for presentation in MD settings.
int | $a_form_id | |
array | $a_fields | |
bool | $a_is_active |
Definition at line 202 of file class.ilCronOerHarvester.php.
References $DIC, $lng, and ilAdministrationSettingsFormHandler\FORM_META_COPYRIGHT.
ilCronOerHarvester::getDefaultScheduleType | ( | ) |
Definition at line 97 of file class.ilCronOerHarvester.php.
ilCronOerHarvester::getDefaultScheduleValue | ( | ) |
Definition at line 105 of file class.ilCronOerHarvester.php.
ilCronOerHarvester::getDescription | ( | ) |
Definition at line 64 of file class.ilCronOerHarvester.php.
ilCronOerHarvester::getId | ( | ) |
Definition at line 72 of file class.ilCronOerHarvester.php.
ilCronOerHarvester::getTitle | ( | ) |
Definition at line 56 of file class.ilCronOerHarvester.php.
ilCronOerHarvester::hasAutoActivation | ( | ) |
Definition at line 81 of file class.ilCronOerHarvester.php.
ilCronOerHarvester::hasCustomSettings | ( | ) |
Definition at line 114 of file class.ilCronOerHarvester.php.
ilCronOerHarvester::hasFlexibleSchedule | ( | ) |
Definition at line 89 of file class.ilCronOerHarvester.php.
ilCronOerHarvester::run | ( | ) |
ilCronOerHarvester::saveCustomSettings | ( | ilPropertyFormGUI | $a_form | ) |
\ilPropertyFormGUI | $a_form |
Definition at line 173 of file class.ilCronOerHarvester.php.
References ilPropertyFormGUI\getInput(), and settings().
|
private |
Definition at line 31 of file class.ilCronOerHarvester.php.
Referenced by addToExternalSettingsForm().
|
private |
Definition at line 26 of file class.ilCronOerHarvester.php.
|
private |
Definition at line 36 of file class.ilCronOerHarvester.php.
const ilCronOerHarvester::CRON_JOB_IDENTIFIER = 'meta_oer_harvester' |
string |
Definition at line 16 of file class.ilCronOerHarvester.php.
const ilCronOerHarvester::DEFAULT_SCHEDULE_VALUE = 1 |
int |
Definition at line 21 of file class.ilCronOerHarvester.php.