3 require_once(
"Services/Cron/classes/class.ilCronJob.php");
4 require_once(
"Services/Logging/classes/error/class.ilLoggingErrorSettings.php");
5 require_once(
"Services/Administration/classes/class.ilSetting.php");
6 require_once(
"Services/Form/classes/class.ilSubEnabledFormPropertyGUI.php");
7 require_once(
"Services/Form/classes/class.ilTextInputGUI.php");
8 require_once(
"Services/Calendar/classes/class.ilDateTime.php");
9 require_once(
"Services/Cron/classes/class.ilCronJobResult.php");
10 require_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");
49 return self::SCHEDULE_TYPE_IN_DAYS;
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');
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'));
addCustomSettingsToForm(ilPropertyFormGUI $a_form)
Cron job application base class.
saveCustomSettings(ilPropertyFormGUI $a_form)
date( 'd-M-Y', $objPHPExcel->getProperties() ->getCreated())
This class represents a text property in a property form.
Create styles array
The data for the language used.
getDefaultScheduleValue()
if(!file_exists("$old.txt")) if($old===$new) if(file_exists("$new.txt")) $file
Cron job result data container.
setValue($a_value)
Set Value.