SYNTAX_BOOLEAN
SYNTAX_BOOLEAN
Syntax definitions.
Please don't forget to add binary attributes to isBinary() below to support proper value fetching from Horde_Ldap_Entry.
Load an LDAP Schema and provide information
This class takes a Subschema entry, parses this information and makes it available in an array. Most of the code has been inspired by perl-ldap( http://perl-ldap.sourceforge.net). You will find portions of their implementation in here.
Copyright 2009 Jan Wagner, Benedikt Hallinger Copyright 2010-2017 Horde LLC (http://www.horde.org/)
__construct(\Horde_Ldap $ldap, string $dn = null)
Constructor.
Fetches the Schema from an LDAP connection.
\Horde_Ldap | $ldap | LDAP connection. |
string | $dn | Subschema entry DN. |
parse(\Horde_Ldap_Entry $entry)
Parses the schema of the given subschema entry.
\Horde_Ldap_Entry | $entry | Subschema entry. |
isBinary(string $attribute) : boolean
Returns wether a attribute syntax is binary or not.
This method is used by Horde_Ldap_Entry to decide which PHP function needs to be used to fetch the value in the proper format (e.g. binary or string).
string | $attribute | The name of the attribute (eg.: 'sn'). |
True if the attribute is a binary type.