Go to the source code of this file.
◆ sanitycheck_hook_cron()
sanitycheck_hook_cron |
( |
& |
$croninfo | ) |
|
Hook to run a cron job.
- Parameters
-
Definition at line 7 of file hook_cron.php.
References $croninfo, $errors, $hookinfo, $info, array, SimpleSAML\Module\callHooks(), SimpleSAML_Configuration\getOptionalConfig(), and SimpleSAML\Logger\info().
9 assert(
'is_array($croninfo)');
10 assert(
'array_key_exists("summary", $croninfo)');
11 assert(
'array_key_exists("tag", $croninfo)');
18 $cronTag = $sconfig->getString(
'cron_tag', null);
19 if ($cronTag === null || $cronTag !==
$croninfo[
'tag']) {
34 $croninfo[
'summary'][] =
'Sanitycheck error: ' . $err;
39 $croninfo[
'summary'][] =
'Error executing sanity check: ' . $e->getMessage();
static callHooks($hook, &$data=null)
Call a hook in all enabled modules.
Create styles array
The data for the language used.
static getOptionalConfig($filename='config.php', $configSet='simplesaml')
Load a configuration file from a configuration set.