ILIAS
release_8 Revision v8.19
|
This class stores the settings that define the mapping between LDAP attribute and user profile fields. More...
Public Member Functions | |
setRule (string $a_field_name, string $a_ldap_attribute, bool $a_perform_update) | |
getRulesForUpdate () | |
Get all mapping rules with option 'update'. More... | |
getFieldsForUpdate () | |
Get field names of all mapping rules with option 'update'. More... | |
getFields () | |
Get all mapping fields. More... | |
getRules (bool $onlyApplicable=false) | |
Get all rules. More... | |
clearRules () | |
Clear rules => Does not perform an update. More... | |
save () | |
Save mapping rules to db. More... | |
delete () | |
Delete all entries. More... | |
enabledUpdate (string $a_field_name) | |
Check whether an update should be performed on a specific user attribute or not. More... | |
getValue (string $a_field_name) | |
Get LDAP attribute name by given ILIAS profile field. More... | |
Static Public Member Functions | |
static | _getInstanceByServerId (int $a_server_id) |
static | _delete (int $a_server_id) |
static | _lookupGlobalRole (int $a_server_id) |
static | hasRulesForUpdate (int $a_server_id) |
Check if there is ldap attribute -> user data mapping which which is updated on login. More... | |
Private Member Functions | |
__construct (int $a_server_id) | |
read () | |
Read mapping settings from db. More... | |
Static Private Member Functions | |
static | getMappedFields (array $rules) |
Private Attributes | |
int | $server_id |
ilDBInterface | $db |
array | $mapping_rules = [] |
array | $rules_for_update = [] |
Static Private Attributes | |
static array | $instances = [] |
This class stores the settings that define the mapping between LDAP attribute and user profile fields.
Definition at line 26 of file class.ilLDAPAttributeMapping.php.
|
private |
Definition at line 35 of file class.ilLDAPAttributeMapping.php.
|
static |
Definition at line 54 of file class.ilLDAPAttributeMapping.php.
References $DIC, $ilDB, and $query.
Referenced by ilLDAPServer\delete().
|
static |
Definition at line 45 of file class.ilLDAPAttributeMapping.php.
Referenced by ilLDAPQuery\__construct(), ilLDAPServer\getPearAtributeArray(), ilLDAPSettingsGUI\initAttributeMapping(), and ilLDAPAttributeToUser\initLDAPAttributeMapping().
|
static |
Definition at line 65 of file class.ilLDAPAttributeMapping.php.
References $DIC, $ilDB, $query, $res, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilLDAPRoleAssignmentRules\getDefaultRole(), and ilLDAPSettingsGUI\setServerFormValues().
ilLDAPAttributeMapping::clearRules | ( | ) |
Clear rules => Does not perform an update.
Definition at line 169 of file class.ilLDAPAttributeMapping.php.
ilLDAPAttributeMapping::delete | ( | ) |
Delete all entries.
Definition at line 196 of file class.ilLDAPAttributeMapping.php.
ilLDAPAttributeMapping::enabledUpdate | ( | string | $a_field_name | ) |
Check whether an update should be performed on a specific user attribute or not.
string | ILIAS user attribute |
Definition at line 206 of file class.ilLDAPAttributeMapping.php.
ilLDAPAttributeMapping::getFields | ( | ) |
Get all mapping fields.
Definition at line 127 of file class.ilLDAPAttributeMapping.php.
ilLDAPAttributeMapping::getFieldsForUpdate | ( | ) |
Get field names of all mapping rules with option 'update'.
Definition at line 119 of file class.ilLDAPAttributeMapping.php.
|
staticprivate |
Definition at line 132 of file class.ilLDAPAttributeMapping.php.
ilLDAPAttributeMapping::getRules | ( | bool | $onlyApplicable = false | ) |
Get all rules.
Definition at line 156 of file class.ilLDAPAttributeMapping.php.
References $mapping_rules.
ilLDAPAttributeMapping::getRulesForUpdate | ( | ) |
Get all mapping rules with option 'update'.
Definition at line 110 of file class.ilLDAPAttributeMapping.php.
References $rules_for_update.
ilLDAPAttributeMapping::getValue | ( | string | $a_field_name | ) |
Get LDAP attribute name by given ILIAS profile field.
string | ILIAS user attribute |
Definition at line 221 of file class.ilLDAPAttributeMapping.php.
|
static |
Check if there is ldap attribute -> user data mapping which which is updated on login.
Definition at line 87 of file class.ilLDAPAttributeMapping.php.
References $DIC, $ilDB, $query, and $res.
Referenced by ilLDAPUserSynchronisation\isUpdateRequired().
|
private |
Read mapping settings from db.
Definition at line 233 of file class.ilLDAPAttributeMapping.php.
References $query, $res, ilDBConstants\FETCHMODE_OBJECT, and if.
Referenced by __construct(), ilLDAPSettingsGUI\addRoleMapping(), ilLDAPSettingsGUI\confirmDeleteRoleMapping(), and ilLDAPSettingsGUI\editRoleMapping().
ilLDAPAttributeMapping::save | ( | ) |
Save mapping rules to db.
Definition at line 177 of file class.ilLDAPAttributeMapping.php.
References $query.
Referenced by ilLDAPSettingsGUI\createRoleMapping().
ilLDAPAttributeMapping::setRule | ( | string | $a_field_name, |
string | $a_ldap_attribute, | ||
bool | $a_perform_update | ||
) |
Definition at line 100 of file class.ilLDAPAttributeMapping.php.
|
private |
Definition at line 30 of file class.ilLDAPAttributeMapping.php.
|
staticprivate |
Definition at line 28 of file class.ilLDAPAttributeMapping.php.
|
private |
Definition at line 32 of file class.ilLDAPAttributeMapping.php.
Referenced by getRules().
|
private |
Definition at line 33 of file class.ilLDAPAttributeMapping.php.
Referenced by getRulesForUpdate().
|
private |
Definition at line 29 of file class.ilLDAPAttributeMapping.php.