A collection of static utility functions for LDAP attribute mapping.
More...
A collection of static utility functions for LDAP attribute mapping.
- Author
- Stefan Meyer meyer.nosp@m.@lei.nosp@m.fos.c.nosp@m.om
- Version
- $Id$
Definition at line 32 of file class.ilLDAPAttributeMappingUtils.php.
◆ _getMappingRulesByClass()
static ilLDAPAttributeMappingUtils::_getMappingRulesByClass |
( |
|
$a_class | ) |
|
|
static |
Get mapping rule by objectClass.
public
- Parameters
-
Definition at line 41 of file class.ilLDAPAttributeMappingUtils.php.
References array.
Referenced by ilLDAPSettingsGUI\chooseMapping().
43 $mapping_rule =
array();
47 $mapping_rule[
'firstname'] =
'givenName';
48 $mapping_rule[
'institution'] =
'o';
49 $mapping_rule[
'department'] =
'departmentNumber';
50 $mapping_rule[
'phone_home'] =
'homePhone';
51 $mapping_rule[
'phone_mobile'] =
'mobile';
52 $mapping_rule[
'email'] =
'mail';
53 $mapping_rule[
'photo'] =
'jpegPhoto';
56 case 'organizationalPerson':
57 $mapping_rule[
'fax'] =
'facsimileTelephoneNumber';
58 $mapping_rule[
'title'] =
'title';
59 $mapping_rule[
'street'] =
'street';
60 $mapping_rule[
'zipcode'] =
'postalCode';
61 $mapping_rule[
'city'] =
'l';
62 $mapping_rule[
'country'] =
'st';
66 $mapping_rule[
'lastname'] =
'sn';
67 $mapping_rule[
'phone_office'] =
'telephoneNumber';
71 $mapping_rule[
'firstname'] =
'givenName';
72 $mapping_rule[
'lastname'] =
'sn';
73 $mapping_rule[
'title'] =
'title';
74 $mapping_rule[
'institution'] =
'company';
75 $mapping_rule[
'department'] =
'department';
76 $mapping_rule[
'phone_home'] =
'telephoneNumber';
77 $mapping_rule[
'phone_mobile'] =
'mobile';
78 $mapping_rule[
'email'] =
'mail';
79 $mapping_rule[
'street'] =
'streetAddress';
80 $mapping_rule[
'city'] =
'l,st';
81 $mapping_rule[
'country'] =
'co';
82 $mapping_rule[
'zipcode'] =
'postalCode';
83 $mapping_rule[
'fax'] =
'facsimileTelephoneNumber';
86 return $mapping_rule ? $mapping_rule :
array();
Create styles array
The data for the language used.
The documentation for this class was generated from the following file: