function SimpleLdapSchema::structural in Simple LDAP 7.2
Return a list of structural object classes.
Parameters
string $attribute: If specified, return just the named attribute instead of the whole objectClass definition.
Return value
array A list of structural classes keyed by the classname.
File
- ./
SimpleLdapSchema.class.php, line 185 - Class to represent an LDAP server schema.
Class
- SimpleLdapSchema
- Simple LDAP Schema class.
Code
function structural($attribute = NULL) {
$object_classes = $this
->get('objectclasses');
$structural = array();
foreach ($object_classes as $key => $objectclass) {
if (!empty($objectclass['structural'])) {
$structural[$key] = $attribute ? $objectclass[$attribute] : $objectclass;
}
}
return $structural;
}