54 $outputCfgs =
$config->getConfigList(
'statistics.out',
array());
56 self::$outputs =
array();
57 foreach ($outputCfgs as
$cfg) {
58 self::$outputs[] = self::createOutput($cfg);
73 assert(
'is_string($event)');
74 assert(
'!isset($data["op"])');
75 assert(
'!isset($data["time"])');
76 assert(
'!isset($data["_id"])');
78 if (!self::$initialized) {
80 self::$initialized =
true;
83 if (empty(self::$outputs)) {
89 $data[
'time'] = microtime(
true);
92 $int_t = (int)
$data[
'time'];
93 $hd = openssl_random_pseudo_bytes(16);
94 $data[
'_id'] = sprintf(
'%016x%s', $int_t, bin2hex($hd));
96 foreach (self::$outputs as
$out) {
static initOutputs()
Initialize the outputs.
if(!is_dir( $entity_dir)) exit("Fatal Error ([A-Za-z0-9]+)\+" &#(? foreach( $entity_files as $file) $output
static createOutput(SimpleSAML_Configuration $config)
Create an output from a configuration object.
catch(Exception $e) if(isset($_POST['cancel'])) if(isset($_POST['continue'])) $cfg
Create styles array
The data for the language used.
getString($name, $default=self::REQUIRED_OPTION)
This function retrieves a string configuration option.
static resolveClass($id, $type, $subclass=null)
Resolve module class.
static getInstance($instancename='simplesaml')
Get a configuration file by its instance name.
static log($event, array $data=array())
Notify about an event.