ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
◀ ilDoc Overview
statmeta.php
Go to the documentation of this file.
1
<?
php
2
3
$config
=
SimpleSAML_Configuration::getInstance
();
4
$statconfig
=
SimpleSAML_Configuration::getConfig
(
'module_statistics.php'
);
5
6
sspmod_statistics_AccessCheck::checkAccess
(
$statconfig
);
7
8
$aggr
=
new
sspmod_statistics_Aggregator
();
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
$config
Definition:
statmeta.php:3
sspmod_statistics_AccessCheck\checkAccess
static checkAccess(SimpleSAML_Configuration $statconfig)
Check that the user has access to the statistics.
Definition:
AccessCheck.php:15
$t
$t
Definition:
statmeta.php:12
sspmod_statistics_Aggregator
Definition:
Aggregator.php:6
$statconfig
$statconfig
Definition:
statmeta.php:4
SimpleSAML_Configuration\getConfig
static getConfig($filename='config.php', $configSet='simplesaml')
Load a configuration file from a configuration set.
Definition:
Configuration.php:237
SimpleSAML_XHTML_Template
Definition:
Template.php:14
$aggr
$aggr
Definition:
statmeta.php:8
php
$metadata
$metadata
Definition:
statmeta.php:10
SimpleSAML_Configuration\getInstance
static getInstance($instancename='simplesaml')
Get a configuration file by its instance name.
Definition:
Configuration.php:325
libs
composer
vendor
simplesamlphp
simplesamlphp
modules
statistics
www
statmeta.php
Generated on Thu Feb 27 2025 19:01:33 for ILIAS by
1.8.13 (using
Doxyfile
)