30 private const DEFAULT_IDP_LIST =
"urn:mace:organization1:providerID, Example Organization 1\nurn:mace:organization2:providerID, Example Organization 2, /Shibboleth.sso/WAYF/SWITCHaai";
44 'institution' =>
false,
45 'department' =>
false,
50 'phone_office' =>
false,
51 'phone_home' =>
false,
52 'phone_mobile' =>
false,
54 'matriculation' =>
false,
73 public function read(): void
75 $filtered_data = array_filter(
77 static fn ($value,
string $key):
bool => strpos($key, self::PREFIX) === 0,
81 array_walk($filtered_data,
function ($v,
string $k):
void {
82 $this->data[str_replace(self::PREFIX,
'', $k)] = $v ===
'' ? null : $v;
86 public function get(
string $a_keyword, ?
string $a_default_value = null):
string 88 $a_keyword = str_replace(self::PREFIX,
'', $a_keyword);
90 return (
string) ($this->data[$a_keyword] ?? $a_default_value);
102 public function set(
string $a_key,
string $a_val):
void 104 $a_key = str_replace(self::PREFIX,
'', $a_key);
105 $this->data[$a_key] = $a_val;
110 foreach ($this->data as
$key => $value) {
111 $this->
settings->set(self::PREFIX .
$key, (
string) $value);
117 return $this->data[
'user_default_role'] ?? 4;
122 $this->data[
'user_default_role'] = $role_id;
127 return $this->data[
'idp_list'] ?? self::DEFAULT_IDP_LIST;
132 $this->data[
'idp_list'] = $list;
137 return $this->data[
'login_button'] ?? self::DEFAULT_LOGIN_BUTTON;
142 $this->data[
'login_button'] = $login_button;
147 return $this->data[
'hos_type'] ?? self::DEFAULT_ORGANISATION_SELECTION;
152 $this->data[
'hos_type'] =
$type;
157 return (
bool) ($this->data[
'active'] ??
false);
162 $this->data[
'active'] = $status ?
'1' :
'0';
167 return (
bool) ($this->data[
'auth_allow_local'] ??
false);
172 $this->data[
'auth_allow_local'] = $status ?
'1' :
'0';
177 return (
bool) ($this->data[
'activate_new'] ??
false);
182 $this->data[
'activate_new'] = $status ?
'1' :
'0';
187 return ($this->data[
'federation_name'] ??
'');
192 $this->data[
'federation_name'] = $federation;
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
setOrganisationSelectionType(string $type)
setAdminMustActivate(bool $status)
const DEFAULT_LOGIN_BUTTON
getOrganisationSelectionType()
const DEFAULT_ORGANISATION_SELECTION
setFederationName(string $federation)
setAllowLocalAuth(bool $status)
setLoginButton(string $login_button)
Class ilShibbolethSettings.
setDefaultRole(int $role_id)