Go to the source code of this file.
◆ statistics_hook_cron()
statistics_hook_cron |
( |
& |
$croninfo | ) |
|
Hook to run a cron job.
- Parameters
-
Definition at line 7 of file hook_cron.php.
8{
9 assert('is_array($croninfo)');
10 assert('array_key_exists("summary", $croninfo)');
11 assert('array_key_exists("tag", $croninfo)');
12
14
15 if (is_null(
$statconfig->getValue(
'cron_tag',
null))) {
16 return;
17 }
19 return;
20 }
21
22 $maxtime =
$statconfig->getInteger(
'time_limit',
null);
23 if ($maxtime) {
24 set_time_limit($maxtime);
25 }
26
27 try {
32 } else {
34 }
35 } catch (Exception $e) {
36 $message =
'Loganalyzer threw exception: ' . $e->getMessage();
39 }
40}
static getConfig($filename='config.php', $configSet='simplesaml')
Load a configuration file from a configuration set.
catch(Exception $e) $message
foreach($argv as $a) $aggregator
References $aggregator, $croninfo, $message, $results, $statconfig, SimpleSAML_Configuration\getConfig(), SimpleSAML\Logger\notice(), and SimpleSAML\Logger\warning().