Zend\Ldap\Node\Schema\OpenLdap
Zend\Ldap\Node\Schema\OpenLDAP provides a simple data-container for the Schema node of an OpenLDAP server.
Synopsis
class OpenLdap
extends Schema
{
- // Inherited constants from Schema
- const OBJECTCLASS_TYPE_UNKNOWN = 0;
- const OBJECTCLASS_TYPE_STRUCTURAL = 1;
- const OBJECTCLASS_TYPE_ABSTRACT = 3;
- const OBJECTCLASS_TYPE_AUXILIARY = 4;
- // members
- protected array $attributeTypes;
- protected array $objectClasses;
- protected array $ldapSyntaxes;
- protected array $matchingRules;
- protected array $matchingRuleUse;
- // Inherited members from AbstractNode
- protected array $systemAttributes;
- protected Dn $dn;
- protected array $currentData;
- // methods
- protected OpenLdap parseSchema()
- public array getAttributeTypes()
- public array getObjectClasses()
- public array getLdapSyntaxes()
- public array getMatchingRules()
- public array getMatchingRuleUse()
- protected void loadAttributeTypes()
- protected array parseAttributeType()
- protected void loadObjectClasses()
- protected array parseObjectClass()
- protected void resolveInheritance()
- protected void loadLdapSyntaxes()
- protected array parseLdapSyntax()
- protected void loadMatchingRules()
- protected array parseMatchingRule()
- protected void loadMatchingRuleUse()
- protected array parseMatchingRuleUse()
- protected void ensureNameAttribute()
- protected void parseLdapSchemaSyntax()
- protected array tokenizeString()
- // Inherited methods from Schema
- public static Schema create()
- protected void __construct()
- protected Schema parseSchema()
- public array getAttributeTypes()
- public array getObjectClasses()
- // Inherited methods from AbstractNode
- protected void __construct()
- protected void loadData()
- public AbstractNode reload()
- protected Dn _getDn()
- public Dn getDn()
- public string getDnString()
- public array getDnArray()
- public string getRdnString()
- public array getRdnArray()
- public array getObjectClass()
- public array getAttributes()
- public string toString()
- public string __toString()
- public array toArray()
- public string toJson()
- public array getData()
- public bool existsAttribute()
- public bool attributeHasValue()
- public mixed getAttribute()
- public array|int getDateTimeAttribute()
- public void __set()
- public mixed __get()
- public void __unset()
- public bool __isset()
- public void offsetSet()
- public mixed offsetGet()
- public void offsetUnset()
- public bool offsetExists()
- public int count()
Hierarchy
Extends
Constants
Name | Value |
---|---|
OBJECTCLASS_TYPE_UNKNOWN | 0 |
OBJECTCLASS_TYPE_STRUCTURAL | 1 |
OBJECTCLASS_TYPE_ABSTRACT | 3 |
OBJECTCLASS_TYPE_AUXILIARY | 4 |
Members
protected
- $attributeTypes
—
array
The attribute Types - $currentData
—
array
Holds the node's current data. - $dn
—
\Zend\Ldap\Dn
Holds the node's DN. - $ldapSyntaxes
—
array
The LDAP syntaxes - $matchingRuleUse
—
array
The matching rule use - $matchingRules
—
array
The matching rules - $objectClasses
—
array
The object classes - $systemAttributes
Methods
protected
- ensureNameAttribute() — Ensures that a name element is present and that it is single-values.
- loadAttributeTypes() — Loads the attribute Types
- loadLdapSyntaxes() — Loads the LDAP syntaxes
- loadMatchingRuleUse() — Loads the matching rule use
- loadMatchingRules() — Loads the matching rules
- loadObjectClasses() — Loads the object classes
- parseAttributeType() — Parses an attributeType value
- parseLdapSchemaSyntax() — Parse the given tokens into a data structure
- parseLdapSyntax() — Parses an ldapSyntaxes value
- parseMatchingRule() — Parses a matchingRules value
- parseMatchingRuleUse() — Parses a matchingRuleUse value
- parseObjectClass() — Parses an objectClasses value
- parseSchema() — Parses the schema
- resolveInheritance() — Resolves inheritance in objectClasses and attributes
- tokenizeString() — Tokenizes the given value into an array
public
- getAttributeTypes() — Gets the attribute Types
- getLdapSyntaxes() — Gets the LDAP syntaxes
- getMatchingRuleUse() — Gets the matching rule use
- getMatchingRules() — Gets the matching rules
- getObjectClasses() — Gets the object classes
Inherited from Zend\Ldap\Node\Schema
protected
- parseSchema() — Parses the schema
public
- create() — Factory method to create the Schema node.
- getAttributeTypes() — Gets the attribute Types
- getObjectClasses() — Gets the object classes
Inherited from Zend\Ldap\Node\AbstractNode
protected
- _getDn() — Gets the DN of the current node as a Zend\Ldap\Dn.
- loadData()
public
- __get() — Gets a LDAP attribute.
- __isset() — Checks whether a given attribute exists.
- __set() — Sets a LDAP attribute.
- __toString() — Cast to string representation {@see toString()}
- __unset() — Deletes a LDAP attribute.
- attributeHasValue() — Checks if the given value(s) exist in the attribute
- count() — Returns the number of attributes in node.
- existsAttribute() — Checks whether a given attribute exists.
- getAttribute() — Gets a LDAP attribute.
- getAttributes() — Gets all attributes of node.
- getData() — Gets node attributes.
- getDateTimeAttribute() — Gets a LDAP date/time attribute.
- getDn() — Gets the DN of the current node as a Zend\Ldap\Dn.
- getDnArray() — Gets the DN of the current node as an array.
- getDnString() — Gets the DN of the current node as a string.
- getObjectClass() — Gets the objectClass of the node
- getRdnArray() — Gets the RDN of the current node as an array.
- getRdnString() — Gets the RDN of the current node as a string.
- offsetExists() — Checks whether a given attribute exists.
- offsetGet() — Gets a LDAP attribute.
- offsetSet() — Sets a LDAP attribute.
- offsetUnset() — Deletes a LDAP attribute.
- reload() — Reload node attributes from LDAP.
- toArray() — Returns an array representation of the current node
- toJson() — Returns a JSON representation of the current node
- toString() — Returns the DN of the current node. {@see getDnString()}