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) {
31 $pref_key =
'systemcheck_mode_' . $possible_mode;
32 $modes[$possible_mode] = (bool) $ilUser->getPref($pref_key);
37 $validator->setMode(
"all",
false);
39 $used_modes =
array();
40 foreach ($modes as $mode => $value) {
41 $validator->setMode($mode, (
bool) $value);
42 $used_modes[] = $mode .
'=' . $value;
45 $scan_log = $validator->validate();
47 $mode = $lng->txt(
"scan_modes") .
": " . implode(
', ', $used_modes);
50 echo $lng->txt(
"scanning_system");
51 echo $scan_log .
"\n";
53 if ($logging ===
true) {
54 echo $lng->txt(
"view_log");
57 $validator->writeScanLogLine($mode);
59 $echo = ob_get_contents();
62 $echo = preg_replace(
"/<br\/>/",
"\n", $echo);
63 $echo = preg_replace(
"/<br \/>/",
"\n", $echo);
64 $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: