3require_once(
"Services/Cron/classes/class.ilCronJob.php");
4require_once(
"Services/Logging/classes/error/class.ilLoggingErrorSettings.php");
5require_once(
"Services/Administration/classes/class.ilSetting.php");
6require_once(
"Services/Form/classes/class.ilSubEnabledFormPropertyGUI.php");
7require_once(
"Services/Form/classes/class.ilTextInputGUI.php");
8require_once(
"Services/Calendar/classes/class.ilDateTime.php");
9require_once(
"Services/Cron/classes/class.ilCronJobResult.php");
10require_once(
"Services/Form/classes/class.ilPropertyFormGUI.php");
19 $this->lng->loadLanguageModule(
"logging");
28 return "log_error_file_cleanup";
35 return $this->lng->txt(
"log_error_file_cleanup_title");
42 return $this->lng->txt(
"log_error_file_cleanup_info");
83 public function run() {
90 $file_date =
date(
"Y-m-d", filemtime($this->error_settings->folder().
"/".
$file));
104 $folder = dir(
$path);
105 while ($file_name = $folder->read()) {
106 if (filetype(
$path.
"/".$file_name) !=
"dir") {
123 $clear_older_then =
new ilTextInputGUI($this->lng->txt(
'frm_clear_older_then'),
'clear_older_then');
124 $clear_older_then->setValue($this->
settings->get(
'clear_older_then'));
125 $clear_older_then->setInfo($this->lng->txt(
'frm_clear_older_then_info'));
127 $a_form->
addItem($clear_older_then);
136 $this->
settings->set(
'clear_older_then', $a_form->
getInput(
'clear_older_then'));
date( 'd-M-Y', $objPHPExcel->getProperties() ->getCreated())
An exception for terminatinating execution or to throw for unit testing.
Cron job result data container.
Cron job application base class.
const SCHEDULE_TYPE_IN_DAYS
@classDescription Date and time handling
hasFlexibleSchedule()
Can the schedule be configured?boolean
addCustomSettingsToForm(ilPropertyFormGUI $a_form)
Add custom settings to form.
saveCustomSettings(ilPropertyFormGUI $a_form)
run()
Run job.ilCronJobResult
getDefaultScheduleValue()
Get schedule value.int|array
hasCustomSettings()
Has cron job any custom setting which can be edited?boolean
hasAutoActivation()
Is to be activated on "installation".boolean
getTitle()
Get title.string
getDefaultScheduleType()
Get schedule type.int
getDescription()
Get description.string
This class represents a text property in a property form.
if(!file_exists("$old.txt")) if( $old===$new) if(file_exists("$new.txt")) $file