ILIAS
release_5-2 Revision v5.2.25-18-g3f80b828510
◀ 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
14
protected
static
$cache
= null;
15
16
20
protected
function
__construct
(
$data
) {
21
$shibConfig =
shibConfig::getInstance
();
22
foreach
(array_keys(get_class_vars(
'shibConfig'
)) as $field) {
23
$str = $shibConfig->getValueByKey($field);
24
if
($str !== null) {
25
$this->{$field} =
$data
[$str];
26
}
27
}
28
}
29
30
34
public
static
function
getInstance
() {
35
if
(!isset(self::$cache)) {
36
self::$cache =
new
self
(
$_SERVER
);
37
}
38
39
return
self::$cache;
40
}
41
}
$_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:20
shibServerData\getInstance
static getInstance()
Definition:
class.shibServerData.php:34
shibServerData\$cache
static $cache
Definition:
class.shibServerData.php:14
shibConfig\getInstance
static getInstance()
Definition:
class.shibConfig.php:202
$data
$data
Definition:
test-settings.sample.php:14
shibConfig
Class shibConfig.
Definition:
class.shibConfig.php:8
php
Services
AuthShibboleth
classes
ServerData
class.shibServerData.php
Generated on Fri Jan 24 2025 19:01:05 for ILIAS by
1.8.13 (using
Doxyfile
)