ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
shibServerData Class Reference

Class shibServerData. More...

+ Inheritance diagram for shibServerData:
+ Collaboration diagram for shibServerData:

Static Public Member Functions

static getInstance ()
 
- Static Public Member Functions inherited from shibConfig
static getInstance ()
 

Protected Member Functions

 __construct ($data)
 

Static Protected Attributes

static $cache = null
 
- Static Protected Attributes inherited from shibConfig
static $cache = null
 

Additional Inherited Members

- Public Member Functions inherited from shibConfig
 getValueByKey ($key)
 
 setCity ($city)
 
 getCity ()
 
 setCountry ($country)
 
 getCountry ()
 
 setDataConv ($data_conv)
 
 getDataConv ()
 
 setDepartment ($department)
 
 getDepartment ()
 
 setEmail ($email)
 
 getEmail ()
 
 setFax ($fax)
 
 getFax ()
 
 setFirstname ($firstname)
 
 getFirstname ()
 
 setGender ($gender)
 
 getGender ()
 
 setHobby ($hobby)
 
 getHobby ()
 
 setInstitution ($institution)
 
 getInstitution ()
 
 setLanguage ($language)
 
 getLanguage ()
 
 setLastname ($lastname)
 
 getLastname ()
 
 setLogin ($login)
 
 getLogin ()
 
 setMatriculation ($matriculation)
 
 getMatriculation ()
 
 setPhoneHome ($phone_home)
 
 getPhoneHome ()
 
 setPhoneMobile ($phone_mobile)
 
 getPhoneMobile ()
 
 setPhoneOffice ($phone_office)
 
 getPhoneOffice ()
 
 setStreet ($street)
 
 getStreet ()
 
 setTitle ($title)
 
 getTitle ()
 
 setUpdateCity ($update_city)
 
 getUpdateCity ()
 
 setUpdateCountry ($update_country)
 
 getUpdateCountry ()
 
 setUpdateDataConv ($update_data_conv)
 
 getUpdateDataConv ()
 
 setUpdateDepartment ($update_department)
 
 getUpdateDepartment ()
 
 setUpdateEmail ($update_email)
 
 getUpdateEmail ()
 
 setUpdateFax ($update_fax)
 
 getUpdateFax ()
 
 setUpdateGender ($update_gender)
 
 getUpdateGender ()
 
 setUpdateHobby ($update_hobby)
 
 getUpdateHobby ()
 
 setUpdateInstitution ($update_institution)
 
 getUpdateInstitution ()
 
 setUpdateLanguage ($update_language)
 
 getUpdateLanguage ()
 
 setUpdateLogin ($update_login)
 
 getUpdateLogin ()
 
 setUpdateMatriculation ($update_matriculation)
 
 getUpdateMatriculation ()
 
 setUpdatePhoneHome ($update_phone_home)
 
 getUpdatePhoneHome ()
 
 setUpdatePhoneMobile ($update_phone_mobile)
 
 getUpdatePhoneMobile ()
 
 setUpdatePhoneOffice ($update_phone_office)
 
 getUpdatePhoneOffice ()
 
 setUpdateStreet ($update_street)
 
 getUpdateStreet ()
 
 setUpdateTitle ($update_title)
 
 getUpdateTitle ()
 
 setUpdateZipcode ($update_zipcode)
 
 getUpdateZipcode ()
 
 setZipcode ($zipcode)
 
 getZipcode ()
 
 setUserDefaultRole ($user_default_role)
 
 getUserDefaultRole ()
 
 setUpdateFirstname ($update_firstname)
 
 getUpdateFirstname ()
 
 setUpdateLastname ($update_lastname)
 
 getUpdateLastname ()
 
 isActivateNew ()
 
 setActivateNew ($activate_new)
 
- Protected Attributes inherited from shibConfig
 $firstname = ''
 
 $update_firstname = false
 
 $lastname = ''
 
 $update_lastname = false
 
 $gender = ''
 
 $update_gender = false
 
 $login = ''
 
 $update_login = false
 
 $title = ''
 
 $update_title
 
 $institution = ''
 
 $update_institution = false
 
 $department = ''
 
 $update_department = false
 
 $street = ''
 
 $update_street = false
 
 $city = ''
 
 $update_city = false
 
 $zipcode = 0
 
 $update_zipcode = false
 
 $country = ''
 
 $update_country = false
 
 $phone_office = ''
 
 $update_phone_office = false
 
 $phone_home = ''
 
 $update_phone_home = false
 
 $phone_mobile = ''
 
 $update_phone_mobile = false
 
 $fax = ''
 
 $update_fax = false
 
 $matriculation = ''
 
 $update_matriculation = false
 
 $email = ''
 
 $update_email = false
 
 $hobby = ''
 
 $update_hobby = false
 
 $language = ''
 
 $update_language = false
 
 $data_conv = ''
 
 $update_data_conv = false
 
 $user_default_role = 4
 
 $activate_new = false
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

shibServerData::__construct (   $data)
protected
Parameters
array$data

Definition at line 21 of file class.shibServerData.php.

References $data, and shibConfig\getInstance().

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  }
static getInstance()
+ Here is the call graph for this function:

Member Function Documentation

◆ getInstance()

static shibServerData::getInstance ( )
static
Returns
bool|

Definition at line 36 of file class.shibServerData.php.

References $_SERVER.

Referenced by ilAuthProviderShibboleth\doAuthentication().

37  {
38  if (!isset(self::$cache)) {
39  self::$cache = new self($_SERVER);
40  }
41 
42  return self::$cache;
43  }
if((!isset($_SERVER['DOCUMENT_ROOT'])) OR(empty($_SERVER['DOCUMENT_ROOT']))) $_SERVER['DOCUMENT_ROOT']
+ Here is the caller graph for this function:

Field Documentation

◆ $cache

shibServerData::$cache = null
staticprotected

Definition at line 15 of file class.shibServerData.php.


The documentation for this class was generated from the following file: