|
ILIAS
release_7 Revision v7.30-3-g800a261c036
|
This class stores the settings that define the mapping between LDAP attribute and user profile fields. More...
Collaboration diagram for ilLDAPAttributeMapping: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)
@access private
Definition at line 48 of file class.ilLDAPAttributeMapping.php.
References $DIC, $ilDB, $lng, and read().
Here is the call graph for this function:
|
static |
Delete mapping rules by server id.
@access public
| int | server id |
Definition at line 84 of file class.ilLDAPAttributeMapping.php.
References $DIC, $ilDB, $query, and $res.
Referenced by delete(), and ilLDAPServer\delete().
Here is the caller graph for this function:
|
static |
Get instance of class.
@access public
| int | server_id |
Definition at line 68 of file class.ilLDAPAttributeMapping.php.
Referenced by ilLDAPQuery\__construct(), ilLDAPServer\getPearAtributeArray(), ilLDAPSettingsGUI\initAttributeMapping(), and ilLDAPAttributeToUser\initLDAPAttributeMapping().
Here is the caller graph for this function:
|
static |
Lookup global role assignment.
@access public
Definition at line 102 of file class.ilLDAPAttributeMapping.php.
References $DIC, $ilDB, $query, $res, and ilDBConstants\FETCHMODE_OBJECT.
Referenced by ilLDAPRoleAssignmentRules\getDefaultRole(), ilLDAPSettingsGUI\prepareRoleSelect(), and ilLDAPSettingsGUI\setServerFormValues().
Here is the caller graph for this function:| ilLDAPAttributeMapping::clearRules | ( | ) |
Clear rules => Does not perform an update.
@access public
Definition at line 235 of file class.ilLDAPAttributeMapping.php.
| ilLDAPAttributeMapping::delete | ( | ) |
Delete all entries.
@access public
Definition at line 272 of file class.ilLDAPAttributeMapping.php.
References _delete().
Here is the call graph for this function:| ilLDAPAttributeMapping::enabledUpdate | ( | $a_field_name | ) |
Check whether an update should be performed on a specific user attribute or not.
@access public
| string | ILIAS user attribute |
Definition at line 285 of file class.ilLDAPAttributeMapping.php.
| ilLDAPAttributeMapping::getFields | ( | ) |
Get all mapping fields.
@access public
Definition at line 198 of file class.ilLDAPAttributeMapping.php.
| ilLDAPAttributeMapping::getFieldsForUpdate | ( | ) |
Get field names of all mapping rules with option 'update'.
@access public
Definition at line 172 of file class.ilLDAPAttributeMapping.php.
| ilLDAPAttributeMapping::getRules | ( | ) |
Get all rules.
@access public
Definition at line 224 of file class.ilLDAPAttributeMapping.php.
References $mapping_rules.
| ilLDAPAttributeMapping::getRulesForUpdate | ( | ) |
Get all mapping rules with option 'update'.
@access public
Definition at line 160 of file class.ilLDAPAttributeMapping.php.
| ilLDAPAttributeMapping::getValue | ( | $a_field_name | ) |
Get LDAP attribute name by given ILIAS profile field.
@access 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, $res, and true.
Referenced by ilLDAPUserSynchronisation\isUpdateRequired().
Here is the caller graph for this function:
|
private |
Read mapping setttings from db.
@access private
Definition at line 315 of file class.ilLDAPAttributeMapping.php.
References $DIC, $ilDB, $query, $res, ilDBConstants\FETCHMODE_OBJECT, and if.
Referenced by __construct().
Here is the caller graph for this function:| ilLDAPAttributeMapping::save | ( | ) |
Save mapping rules to db.
@access public
Definition at line 246 of file class.ilLDAPAttributeMapping.php.
| ilLDAPAttributeMapping::setRule | ( | $a_field_name, | |
| $a_ldap_attribute, | |||
| $a_perform_update | |||
| ) |
Set mapping rule.
@access 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.