ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
statmeta.php
Go to the documentation of this file.
1<?php
2
5
7
9$aggr->loadMetadata();
10$metadata = $aggr->getMetadata();
11
12$t = new SimpleSAML_XHTML_Template($config, 'statistics:statmeta.tpl.php');
13
14if ($metadata !== null) {
15 if (in_array('lastrun', $metadata, true)) {
16 $metadata['lastrun'] = date('l jS \of F Y H:i:s', $metadata['lastrun']);
17 }
18 if (in_array('notBefore', $metadata, true)) {
19 $metadata['notBefore'] = date('l jS \of F Y H:i:s', $metadata['notBefore']);
20 }
21 if (in_array('memory', $metadata, true)) {
22 $metadata['memory'] = number_format($metadata['memory'] / (1024 * 1024), 2);
23 }
24 $t->data['metadata'] = $metadata;
25}
26
27$t->show();
28
An exception for terminatinating execution or to throw for unit testing.
static getInstance($instancename='simplesaml')
Get a configuration file by its instance name.
static getConfig($filename='config.php', $configSet='simplesaml')
Load a configuration file from a configuration set.
static checkAccess(SimpleSAML_Configuration $statconfig)
Check that the user has access to the statistics.
Definition: AccessCheck.php:15
$t
Definition: statmeta.php:12
$statconfig
Definition: statmeta.php:4
$config
Definition: statmeta.php:3
$aggr
Definition: statmeta.php:8
$metadata
Definition: statmeta.php:10