ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
◀ ilDoc Overview
class.shibServerData.php
Go to the documentation of this file.
1
<?php
2
require_once(
'./Services/AuthShibboleth/classes/Config/class.shibConfig.php'
);
3
9
class
shibServerData
extends
shibConfig
10
{
11
15
protected
static
$cache
= null;
16
17
21
protected
function
__construct
(
$data
)
22
{
23
$shibConfig =
shibConfig::getInstance
();
24
foreach
(array_keys(get_class_vars(
'shibConfig'
)) as $field) {
25
$str = $shibConfig->getValueByKey($field);
26
if
($str !== null) {
27
$this->{$field} =
$data
[$str];
28
}
29
}
30
}
31
32
36
public
static
function
getInstance
()
37
{
38
if
(!isset(self::$cache)) {
39
self::$cache =
new
self
(
$_SERVER
);
40
}
41
42
return
self::$cache;
43
}
44
}
$_SERVER
if((!isset($_SERVER['DOCUMENT_ROOT'])) OR(empty($_SERVER['DOCUMENT_ROOT']))) $_SERVER['DOCUMENT_ROOT']
Definition:
tcpdf_autoconfig.php:54
shibServerData
Class shibServerData.
Definition:
class.shibServerData.php:9
shibServerData\__construct
__construct($data)
Definition:
class.shibServerData.php:21
shibServerData\getInstance
static getInstance()
Definition:
class.shibServerData.php:36
shibServerData\$cache
static $cache
Definition:
class.shibServerData.php:15
shibConfig\getInstance
static getInstance()
Definition:
class.shibConfig.php:208
$data
$data
Definition:
test-settings.sample.php:14
shibConfig
Class shibConfig.
Definition:
class.shibConfig.php:8
Services
AuthShibboleth
classes
ServerData
class.shibServerData.php
Generated on Sat Jan 18 2025 19:01:26 for ILIAS by
1.8.13 (using
Doxyfile
)