You are here

protected function SimpleLdapUserMap::getAttributeSchema in Simple LDAP 7

Get the schema for a LDAP attribute.

2 calls to SimpleLdapUserMap::getAttributeSchema()
SimpleLdapUserMap::getFormOptions in simple_ldap_user/SimpleLdapUserMap.class.php
Generate a list of attribute names from the attribute map for use in forms. This pulls from the schema to make the human-readable version have the right case.
SimpleLdapUserMap::processSettings in simple_ldap_user/SimpleLdapUserMap.class.php
Process the settings from variable_get(), looking up LDAP mappings in the schema to be sure the mappings are correct.

File

simple_ldap_user/SimpleLdapUserMap.class.php, line 66
Class defining the LDAP <-> Drupal user field mappings.

Class

SimpleLdapUserMap
@file Class defining the LDAP <-> Drupal user field mappings.

Code

protected function getAttributeSchema($attribute) {
  if (!isset($this->schema[$attribute])) {
    $this->schema[$attribute] = $this->server->schema
      ->get('attributeTypes', $attribute);
  }
  return $this->schema[$attribute];
}