ILIAS
eassessment Revision 61809
|
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. | |
getRulesForUpdate () | |
Get all mapping rules with option 'update'. | |
getFieldsForUpdate () | |
Get field names of all mapping rules with option 'update'. | |
getFields () | |
Get all mapping fields. | |
getRules () | |
Get all rules. | |
clearRules () | |
Clear rules => Does not perform an update. | |
save () | |
Save mapping rules to db. | |
delete () | |
Delete all entries. | |
enabledUpdate ($a_field_name) | |
Check whether an update should be performed on a specific user attribute or not. | |
getValue ($a_field_name) | |
Get LDAP attribute name by given ILIAS profile field. |
Static Public Member Functions | |
static | _getInstanceByServerId ($a_server_id) |
Get instance of class. | |
static | _delete ($a_server_id) |
Delete mapping rules by server id. | |
static | _lookupGlobalRole ($a_server_id) |
Lookup global role assignment. | |
static | hasRulesForUpdate ($a_server_id) |
Check if there is ldap attribute -> user data mapping which which is updated on login. |
Private Member Functions | |
__construct ($a_server_id) | |
Private constructor (Singleton for each server_id) | |
read () | |
Read mapping setttings from db. |
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 |
|
static |
Delete mapping rules by server id.
public
int | server id |
Definition at line 82 of file class.ilLDAPAttributeMapping.php.
References $ilDB, $query, and $res.
Referenced by delete().
|
static |
Get instance of class.
public
int | server_id |
Definition at line 65 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 98 of file class.ilLDAPAttributeMapping.php.
References $ilDB, $query, $res, $row, and DB_FETCHMODE_OBJECT.
Referenced by ilLDAPRoleAssignmentRules\getDefaultRole(), ilLDAPSettingsGUI\prepareRoleSelect(), and ilLDAPSettingsGUI\setServerFormValues().
ilLDAPAttributeMapping::clearRules | ( | ) |
Clear rules => Does not perform an update.
public
Definition at line 236 of file class.ilLDAPAttributeMapping.php.
ilLDAPAttributeMapping::delete | ( | ) |
Delete all entries.
public
Definition at line 272 of file class.ilLDAPAttributeMapping.php.
References _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 195 of file class.ilLDAPAttributeMapping.php.
ilLDAPAttributeMapping::getFieldsForUpdate | ( | ) |
Get field names of all mapping rules with option 'update'.
public
Definition at line 165 of file class.ilLDAPAttributeMapping.php.
ilLDAPAttributeMapping::getRules | ( | ) |
Get all rules.
public
Definition at line 225 of file class.ilLDAPAttributeMapping.php.
References $mapping_rules.
ilLDAPAttributeMapping::getRulesForUpdate | ( | ) |
Get all mapping rules with option 'update'.
public
Definition at line 153 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 301 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 120 of file class.ilLDAPAttributeMapping.php.
References $ilDB, $query, and $res.
Referenced by ilAuthContainerApache\updateRequired(), and ilAuthContainerLDAP\updateRequired().
|
private |
Read mapping setttings from db.
private
Definition at line 317 of file class.ilLDAPAttributeMapping.php.
References $ilDB, $query, $res, $row, and DB_FETCHMODE_OBJECT.
Referenced by __construct().
ilLDAPAttributeMapping::save | ( | ) |
Save mapping rules to db.
public
Definition at line 247 of file class.ilLDAPAttributeMapping.php.
References $ilDB, $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 140 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.