ILIAS  release_5-1 Revision 5.0.0-5477-g43f3e3fab5
ilLDAPAttributeMappingUtils Class Reference

A collection of static utility functions for LDAP attribute mapping. More...

+ Collaboration diagram for ilLDAPAttributeMappingUtils:

Static Public Member Functions

static _getMappingRulesByClass ($a_class)
 Get mapping rule by objectClass. More...
 

Detailed Description

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.

Member Function Documentation

◆ _getMappingRulesByClass()

static ilLDAPAttributeMappingUtils::_getMappingRulesByClass (   $a_class)
static

Get mapping rule by objectClass.

public

Parameters
string

Definition at line 41 of file class.ilLDAPAttributeMappingUtils.php.

Referenced by ilLDAPSettingsGUI\chooseMapping().

42  {
43  $mapping_rule = array();
44 
45  switch($a_class)
46  {
47  case 'inetOrgPerson':
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';
55  // No break since it inherits from organizationalPerson and person
56 
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';
64  // No break since it inherits from person
65 
66  case 'person':
67  $mapping_rule['lastname'] = 'sn';
68  $mapping_rule['phone_office'] = 'telephoneNumber';
69  break;
70 
71  case 'ad_2003':
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';
85  break;
86  }
87  return $mapping_rule ? $mapping_rule : array();
88  }
+ Here is the caller graph for this function:

The documentation for this class was generated from the following file: