ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
This class stores the settings that define the mapping between LDAP attribute and user profile fields. More...
Public Member Functions | |
setRule ($a_field_name, $a_ldap_attribute, $a_perform_update) | |
Set mapping rule. More... | |
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 () | |
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 ($a_field_name) | |
Check whether an update should be performed on a specific user attribute or not. More... | |
getValue ($a_field_name) | |
Get LDAP attribute name by given ILIAS profile field. More... | |
Static Public Member Functions | |
static | _getInstanceByServerId ($a_server_id) |
Get instance of class. More... | |
static | _delete ($a_server_id) |
Delete mapping rules by server id. More... | |
static | _lookupGlobalRole ($a_server_id) |
Lookup global role assignment. More... | |
static | hasRulesForUpdate ($a_server_id) |
Check if there is ldap attribute -> user data mapping which which is updated on login. More... | |
Private Member Functions | |
__construct ($a_server_id) | |
Private constructor (Singleton for each server_id) More... | |
read () | |
Read mapping setttings from db. More... | |
Private Attributes | |
$server_id = null | |
$db = null | |
$mapping_rules = array() | |
$rules_for_update = array() | |
$lng | |
Static Private Attributes | |
static | $instances = array() |
This class stores the settings that define the mapping between LDAP attribute and user profile fields.
Definition at line 33 of file class.ilLDAPAttributeMapping.php.
|
private |
Private constructor (Singleton for each server_id)
private
Definition at line 48 of file class.ilLDAPAttributeMapping.php.
References $DIC, $ilDB, $lng, and read().
|
static |
Delete mapping rules by server id.
public
int | server id |
Definition at line 84 of file class.ilLDAPAttributeMapping.php.
References $DIC, $ilDB, $query, and $res.
Referenced by ilLDAPServer\delete().
|
static |
Get instance of class.
public
int | server_id |
Definition at line 68 of file class.ilLDAPAttributeMapping.php.
Referenced by ilLDAPQuery\__construct(), ilLDAPServer\getPearAtributeArray(), ilLDAPSettingsGUI\initAttributeMapping(), and ilLDAPAttributeToUser\initLDAPAttributeMapping().
|
static |
Lookup global role assignment.
public
Definition at line 102 of file class.ilLDAPAttributeMapping.php.
References $DIC, $ilDB, $query, $res, $row, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilLDAPRoleAssignmentRules\getDefaultRole(), ilLDAPSettingsGUI\prepareRoleSelect(), and ilLDAPSettingsGUI\setServerFormValues().
ilLDAPAttributeMapping::clearRules | ( | ) |
Clear rules => Does not perform an update.
public
Definition at line 235 of file class.ilLDAPAttributeMapping.php.
ilLDAPAttributeMapping::delete | ( | ) |
ilLDAPAttributeMapping::enabledUpdate | ( | $a_field_name | ) |
Check whether an update should be performed on a specific user attribute or not.
public
string | ILIAS user attribute |
Definition at line 285 of file class.ilLDAPAttributeMapping.php.
ilLDAPAttributeMapping::getFields | ( | ) |
Get all mapping fields.
public
Definition at line 198 of file class.ilLDAPAttributeMapping.php.
References $rule.
ilLDAPAttributeMapping::getFieldsForUpdate | ( | ) |
Get field names of all mapping rules with option 'update'.
public
Definition at line 172 of file class.ilLDAPAttributeMapping.php.
References $rule.
ilLDAPAttributeMapping::getRules | ( | ) |
Get all rules.
public
Definition at line 224 of file class.ilLDAPAttributeMapping.php.
References $mapping_rules.
ilLDAPAttributeMapping::getRulesForUpdate | ( | ) |
Get all mapping rules with option 'update'.
public
Definition at line 160 of file class.ilLDAPAttributeMapping.php.
ilLDAPAttributeMapping::getValue | ( | $a_field_name | ) |
Get LDAP attribute name by given ILIAS profile field.
public
string | ILIAS user attribute |
Definition at line 300 of file class.ilLDAPAttributeMapping.php.
|
static |
Check if there is ldap attribute -> user data mapping which which is updated on login.
int | $a_server_id |
Definition at line 125 of file class.ilLDAPAttributeMapping.php.
References $DIC, $ilDB, $query, and $res.
Referenced by ilLDAPUserSynchronisation\isUpdateRequired().
|
private |
Read mapping setttings from db.
private
Definition at line 315 of file class.ilLDAPAttributeMapping.php.
References $DIC, $ilDB, $query, $res, $row, ilDBConstants\FETCHMODE_OBJECT, and if.
Referenced by __construct().
ilLDAPAttributeMapping::save | ( | ) |
Save mapping rules to db.
public
Definition at line 246 of file class.ilLDAPAttributeMapping.php.
References $DIC, $ilDB, PHPMailer\PHPMailer\$options, $query, and $res.
ilLDAPAttributeMapping::setRule | ( | $a_field_name, | |
$a_ldap_attribute, | |||
$a_perform_update | |||
) |
Set mapping rule.
public
string | ILIAS user attribute |
string | ldap attribute |
bool | perform update |
Definition at line 147 of file class.ilLDAPAttributeMapping.php.
|
private |
Definition at line 37 of file class.ilLDAPAttributeMapping.php.
|
staticprivate |
Definition at line 35 of file class.ilLDAPAttributeMapping.php.
|
private |
Definition at line 40 of file class.ilLDAPAttributeMapping.php.
Referenced by __construct().
|
private |
Definition at line 38 of file class.ilLDAPAttributeMapping.php.
Referenced by getRules().
|
private |
Definition at line 39 of file class.ilLDAPAttributeMapping.php.
|
private |
Definition at line 36 of file class.ilLDAPAttributeMapping.php.