ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
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 
14 if ($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 
$config
Definition: statmeta.php:3
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
date( 'd-M-Y', $objPHPExcel->getProperties() ->getCreated())
static getConfig($filename='config.php', $configSet='simplesaml')
Load a configuration file from a configuration set.
$aggr
Definition: statmeta.php:8
$metadata
Definition: statmeta.php:10
static getInstance($instancename='simplesaml')
Get a configuration file by its instance name.