ILIAS  trunk Revision v11.0_alpha-1761-g6dbbfa7b760
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
shibServerData Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. 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 (array $data)
 MagicMethodsValidityInspection PhpMissingParentConstructorInspection More...
 
- Protected Member Functions inherited from shibConfig
 __construct ()
 

Static Protected Attributes

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

Additional Inherited Members

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

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Class shibServerData

Deprecated:
Author
Fabian Schmid fs@st.nosp@m.uder.nosp@m.-raim.nosp@m.ann..nosp@m.ch

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

Constructor & Destructor Documentation

◆ __construct()

shibServerData::__construct ( array  $data)
protected

MagicMethodsValidityInspection PhpMissingParentConstructorInspection

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

References shibConfig\getInstance(), and null.

32  {
33  $shib_config = shibConfig::getInstance();
34  foreach (array_keys(get_class_vars(shibConfig::class)) as $field) {
35  $str = $shib_config->getValueByKey($field);
36  if ($str !== null) {
37  $this->{$field} = $data[$str] ?? '';
38  }
39  }
40  }
static getInstance()
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
+ Here is the call graph for this function:

Member Function Documentation

◆ getInstance()

static shibServerData::getInstance ( )
static

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

References $_SERVER.

Referenced by ilAuthProviderShibboleth\doAuthentication().

44  {
45  if (!isset(self::$server_cache)) {
46  self::$server_cache = new self($_SERVER);
47  }
48 
49  return self::$server_cache;
50  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
$_SERVER['HTTP_HOST']
Definition: raiseError.php:26
+ Here is the caller graph for this function:

Field Documentation

◆ $server_cache

shibServerData shibServerData::$server_cache = null
staticprotected

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


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