ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
hook_cron.php File Reference

Go to the source code of this file.

Functions

 cron_hook_cron (&$croninfo)
 Hook to run a cron job. More...
 

Function Documentation

◆ cron_hook_cron()

cron_hook_cron ( $croninfo)

Hook to run a cron job.

Parameters
array&$croninfoOutput

Definition at line 7 of file hook_cron.php.

References $cronconfig, $croninfo, date, and SimpleSAML_Configuration\getConfig().

7  {
8  assert('is_array($croninfo)');
9  assert('array_key_exists("summary", $croninfo)');
10  assert('array_key_exists("tag", $croninfo)');
11 
13 
14  if ($cronconfig->getValue('debug_message', TRUE)) {
15 
16  $croninfo['summary'][] = 'Cron did run tag [' . $croninfo['tag'] . '] at ' . date(DATE_RFC822);
17  }
18 
19 }
$cronconfig
Definition: cron.php:4
$croninfo
Definition: cron.php:23
date( 'd-M-Y', $objPHPExcel->getProperties() ->getCreated())
static getConfig($filename='config.php', $configSet='simplesaml')
Load a configuration file from a configuration set.
+ Here is the call graph for this function: