Definition at line 13 of file class.ilCronValidator.php.
◆ check()
ilCronValidator::check |
( |
| ) |
|
Definition at line 15 of file class.ilCronValidator.php.
References $ilUser, $lng, and array.
19 $count_limit = (bool)$ilUser->getPref(
'systemcheck_count_limit');
20 $age_limit = (bool)$ilUser->getPref(
'systemcheck_age_limit');
21 $type_limit = $ilUser->getPref(
'systemcheck_type_limit');
23 $lng->loadLanguageModule(
"administration");
25 include_once
"./Services/Repository/classes/class.ilValidator.php";
29 $possible_modes = $validator->getPossibleModes();
30 foreach($possible_modes as $possible_mode)
32 $pref_key =
'systemcheck_mode_'.$possible_mode;
33 $modes[$possible_mode] = (bool)$ilUser->getPref($pref_key);
38 $validator->setMode(
"all",
false);
40 $used_modes =
array();
41 foreach($modes as $mode => $value)
43 $validator->setMode($mode,(
bool) $value);
44 $used_modes[] = $mode.
'='.$value;
47 $scan_log = $validator->validate();
49 $mode = $lng->txt(
"scan_modes").
": ".implode(
', ',$used_modes);
52 echo $lng->txt(
"scanning_system");
55 if ($logging ===
true)
57 echo $lng->txt(
"view_log");
60 $validator->writeScanLogLine($mode);
62 $echo = ob_get_contents();
65 $echo = preg_replace(
"/<br\/>/",
"\n",$echo);
66 $echo = preg_replace(
"/<br \/>/",
"\n",$echo);
67 $echo = preg_replace(
"/<br>/",
"\n",$echo);
Create styles array
The data for the language used.
ILIAS Data Validator & Recovery Tool.
The documentation for this class was generated from the following file: