ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
class.shibServerData.php
Go to the documentation of this file.
1<?php
2require_once('./Services/AuthShibboleth/classes/Config/class.shibConfig.php');
3
10
14 protected static $cache = NULL;
15
16
20 protected function __construct(array $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
36 public static function getInstance(array $data) {
37 if (! isset(self::$cache)) {
38 self::$cache = new self($data);
39 }
40
41 return self::$cache;
42 }
43}
44
45?>
Class shibConfig.
static getInstance()
Class shibServerData.
static getInstance(array $data)
__construct(array $data)
$data