ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.shibServerData.php
Go to the documentation of this file.
1<?php
2
25{
26 protected static ?shibServerData $server_cache = null;
27
32 protected function __construct(array $data)
33 {
34 $shib_config = shibConfig::getInstance();
35 foreach (array_keys(get_class_vars(shibConfig::class)) as $field) {
36 $str = $shib_config->getValueByKey($field);
37 if ($str !== null) {
38 $this->{$field} = $data[$str] ?? '';
39 }
40 }
41 }
42
43 #[\Override]
44 public static function getInstance(): shibServerData
45 {
46 if (!isset(self::$server_cache)) {
47 self::$server_cache = new self($_SERVER);
48 }
49
51 }
52}
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static getInstance()
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
static shibServerData $server_cache
__construct(array $data)
@noinspection MagicMethodsValidityInspection @noinspection PhpMissingParentConstructorInspection
$_SERVER['HTTP_HOST']
Definition: raiseError.php:26