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();
48 $mapping_rule[
'firstname'] =
'givenName';
49 $mapping_rule[
'institution'] =
'o';
50 $mapping_rule[
'department'] =
'departmentNumber';
51 $mapping_rule[
'phone_home'] =
'homePhone';
52 $mapping_rule[
'phone_mobile'] =
'mobile';
53 $mapping_rule[
'email'] =
'mail';
54 $mapping_rule[
'photo'] =
'jpegPhoto';
57 case 'organizationalPerson':
58 $mapping_rule[
'fax'] =
'facsimileTelephoneNumber';
59 $mapping_rule[
'title'] =
'title';
60 $mapping_rule[
'street'] =
'street';
61 $mapping_rule[
'zipcode'] =
'postalCode';
62 $mapping_rule[
'city'] =
'l';
63 $mapping_rule[
'country'] =
'st';
67 $mapping_rule[
'lastname'] =
'sn';
68 $mapping_rule[
'phone_office'] =
'telephoneNumber';
72 $mapping_rule[
'firstname'] =
'givenName';
73 $mapping_rule[
'lastname'] =
'sn';
74 $mapping_rule[
'title'] =
'title';
75 $mapping_rule[
'institution'] =
'company';
76 $mapping_rule[
'department'] =
'department';
77 $mapping_rule[
'phone_home'] =
'telephoneNumber';
78 $mapping_rule[
'phone_mobile'] =
'mobile';
79 $mapping_rule[
'email'] =
'mail';
80 $mapping_rule[
'street'] =
'streetAddress';
81 $mapping_rule[
'city'] =
'l,st';
82 $mapping_rule[
'country'] =
'co';
83 $mapping_rule[
'zipcode'] =
'postalCode';
84 $mapping_rule[
'fax'] =
'facsimileTelephoneNumber';
87 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: