You are here

public function SimpleLdapServerSchema::getAttributesByObjectClass in Simple LDAP 8

Return a list of attributes defined for the objectclass.

Parameters

string $objectclass: The objectclass to query for attributes.

boolean $recursive: If TRUE, the attributes of the parent objectclasses will also be retrieved.

Return value

array A list of MAY/MUST attributes

File

src/SimpleLdapServerSchema.php, line 386
Contains \Drupal\simple_ldap\SimpleLdapServerSchema

Class

SimpleLdapServerSchema

Namespace

Drupal\simple_ldap

Code

public function getAttributesByObjectClass($objectclass, $recursive = FALSE) {
  $may_attributes = $this
    ->getMayAttributes($objectclass, $recursive);
  $must_attributes = $this
    ->getMustAttributes($objectclass, $recursive);
  return array_merge($may_attributes, $must_attributes);
}