4 include_once
"Services/Cron/classes/class.ilCronJob.php";
28 $GLOBALS[
'DIC'][
'lng']->loadLanguageModule(
'sysc');
29 return $lng->txt(
'sysc_cron_empty_trash');
38 $GLOBALS[
'DIC'][
'lng']->loadLanguageModule(
'sysc');
39 return $lng->txt(
'sysc_cron_empty_trash_desc');
44 return self::SCHEDULE_TYPE_WEEKLY;
53 self::SCHEDULE_TYPE_DAILY,
54 self::SCHEDULE_TYPE_WEEKLY,
55 self::SCHEDULE_TYPE_MONTHLY,
56 self::SCHEDULE_TYPE_QUARTERLY,
57 self::SCHEDULE_TYPE_YEARLY
97 $lng->loadLanguageModule(
'sysc');
99 include_once
'./Services/Administration/classes/class.ilSetting.php';
104 $num->
setInfo(
$lng->txt(
'purge_count_limit_desc'));
106 $num->setMinValue(1);
107 $num->setValue($settings->get(
'num',
''));
113 $age->setMinValue(1);
114 $age->setMaxLength(4);
116 if ($settings->get(
'age',
'')) {
117 $age->setValue($settings->get(
'age',
''));
124 $sub_objects =
$GLOBALS[
'DIC'][
'tree']->lookupTrashedObjectTypes();
128 foreach ($sub_objects as $obj_type) {
129 if (!
$GLOBALS[
'DIC'][
'objDefinition']->isRBACObject($obj_type)
or !
$GLOBALS[
'DIC'][
'objDefinition']->isAllowedInRepository($obj_type)) {
136 $types->setValue($settings->get(
'types',
''));
150 include_once
'./Services/Administration/classes/class.ilSetting.php';
153 $settings->set(
'num', $a_form->
getInput(
'number'));
154 $settings->set(
'age', $a_form->
getInput(
'age'));
155 $settings->set(
'types', $a_form->
getInput(
'types'));
165 include_once
'./Services/SystemCheck/classes/class.ilSystemCheckTrash.php';
169 include_once
'./Services/Administration/classes/class.ilSetting.php';
172 $trash->setNumberLimit($settings->get(
'num', 0));
173 $trash->setTypesLimit((array) $settings->get(
'types'));
175 $age = $settings->get(
'age', 0);
178 $date->increment(
IL_CAL_DAY, (
int) $age * -1);
179 $trash->setAgeLimit($date);
183 include_once
'./Services/Cron/classes/class.ilCronJobResult.php';
Cron job application base class.
addCustomSettingsToForm(ilPropertyFormGUI $form)
Add custom settings to form.
saveCustomSettings(ilPropertyFormGUI $a_form)
Save custom settings.
getDefaultScheduleValue()
if(isset($_POST['submit'])) $form
Cron job result data container.
$GLOBALS['JPEG_Segment_Names']
Global Variable: XMP_tag_captions.