Zend\Ldap\Node\Schema\OpenLDAP provides a simple data-container for the Schema node of an OpenLDAP server.

package Default
inherited_from \Zend\Ldap\Node\Schema

 Methods

Gets a LDAP attribute.

__get(string $name) : mixed
Inherited

This is an offline method.

Parameters

$name

string

Exceptions

\Zend\Ldap\Exception\LdapException

Returns

mixed

Checks whether a given attribute exists.

__isset(string $name) : boolean
Inherited

Empty attributes will be treated as non-existent.

Parameters

$name

string

Returns

boolean

Sets a LDAP attribute.

__set(string $name, mixed $value) 
Inherited

This is an offline method.

Parameters

$name

string

$value

mixed

Exceptions

\Zend\Ldap\Exception\BadMethodCallException

Cast to string representation {@see toString()}

__toString() : string
Inherited

Returns

string

Deletes a LDAP attribute.

__unset($name) 
Inherited

This method deletes the attribute.

This is an offline method.

Parameters

$name

Exceptions

\Zend\Ldap\Exception\BadMethodCallException

Checks if the given value(s) exist in the attribute

attributeHasValue(string $attribName, mixed|array $value) : boolean
Inherited

Parameters

$attribName

string

$value

mixedarray

Returns

boolean

Returns the number of attributes in node.

count() : integer
Inherited

Implements Countable

Returns

integer

Factory method to create the Schema node.

create(\Zend\Ldap\Ldap $ldap) : \Zend\Ldap\Node\Schema
InheritedStatic

Parameters

$ldap

\Zend\Ldap\Ldap

Returns

\Zend\Ldap\Node\Schema

Checks whether a given attribute exists.

existsAttribute(string $name, boolean $emptyExists = false) : boolean
Inherited

If $emptyExists is false empty attributes (containing only array()) are treated as non-existent returning false. If $emptyExists is true empty attributes are treated as existent returning true. In this case method returns false only if the attribute name is missing in the key-collection.

Parameters

$name

string

$emptyExists

boolean

Returns

boolean

Gets a LDAP attribute.

getAttribute(string $name, integer $index = null) : mixed
Inherited

This is an offline method.

Parameters

$name

string

$index

integer

Exceptions

\Zend\Ldap\Exception\LdapException

Returns

mixed

Gets the attribute Types

getAttributeTypes() : array
inherited_from \Zend\Ldap\Node\Schema::getAttributeTypes()

Returns

array

Gets the attribute Types

getAttributeTypes() : array
Inherited

Returns

array

Gets all attributes of node.

getAttributes(boolean $includeSystemAttributes = true) : array
Inherited

The collection contains all attributes.

This is an offline method.

Parameters

$includeSystemAttributes

boolean

Returns

array

Gets node attributes.

getData(boolean $includeSystemAttributes = true) : array
Inherited

The array contains all attributes in its internal format (no conversion).

This is an offline method.

Parameters

$includeSystemAttributes

boolean

Returns

array

Gets a LDAP date/time attribute.

getDateTimeAttribute(string $name, integer $index = null) : array | integer
Inherited

This is an offline method.

Parameters

$name

string

$index

integer

Exceptions

\Zend\Ldap\Exception\LdapException

Returns

arrayinteger

Gets the DN of the current node as a Zend\Ldap\Dn.

getDn() : \Zend\Ldap\Dn
Inherited

The method returns a clone of the node's DN to prohibit modification.

This is an offline method.

Returns

\Zend\Ldap\Dn

Gets the DN of the current node as an array.

getDnArray(string $caseFold = null) : array
Inherited

This is an offline method.

Parameters

$caseFold

string

Returns

array

Gets the DN of the current node as a string.

getDnString(string $caseFold = null) : string
Inherited

This is an offline method.

Parameters

$caseFold

string

Returns

string

Gets the LDAP syntaxes

getLdapSyntaxes() : array

Returns

array

Gets the matching rule use

getMatchingRuleUse() : array

Returns

array

Gets the matching rules

getMatchingRules() : array

Returns

array

Gets the objectClass of the node

getObjectClass() : array
Inherited

Returns

array

Gets the object classes

getObjectClasses() : array
inherited_from \Zend\Ldap\Node\Schema::getObjectClasses()

Returns

array

Gets the object classes

getObjectClasses() : array
Inherited

Returns

array

Gets the RDN of the current node as an array.

getRdnArray(string $caseFold = null) : array
Inherited

This is an offline method.

Parameters

$caseFold

string

Returns

array

Gets the RDN of the current node as a string.

getRdnString(string $caseFold = null) : string
Inherited

This is an offline method.

Parameters

$caseFold

string

Returns

string

Checks whether a given attribute exists.

offsetExists(string $name) : boolean
Inherited

Implements ArrayAccess.

Empty attributes will be treated as non-existent.

Parameters

$name

string

Returns

boolean

Gets a LDAP attribute.

offsetGet(string $name) : mixed
Inherited

Implements ArrayAccess.

This is an offline method.

Parameters

$name

string

Exceptions

\Zend\Ldap\Exception\LdapException

Returns

mixed

Sets a LDAP attribute.

offsetSet(string $name, mixed $value) 
Inherited

Implements ArrayAccess.

This is an offline method.

Parameters

$name

string

$value

mixed

Exceptions

\Zend\Ldap\Exception\BadMethodCallException
\Zend\Ldap\Exception\BadMethodCallException

Deletes a LDAP attribute.

offsetUnset($name) 
Inherited

Implements ArrayAccess.

This method deletes the attribute.

This is an offline method.

Parameters

$name

Exceptions

\Zend\Ldap\Exception\BadMethodCallException

Reload node attributes from LDAP.

reload(\Zend\Ldap\Ldap $ldap = null) : \Zend\Ldap\Node\AbstractNode
Inherited

This is an online method.

Parameters

$ldap

\Zend\Ldap\Ldap

Returns

\Zend\Ldap\Node\AbstractNodeProvides a fluid interface

Returns an array representation of the current node

toArray(boolean $includeSystemAttributes = true) : array
Inherited

Parameters

$includeSystemAttributes

boolean

Returns

array

Returns a JSON representation of the current node

toJson(boolean $includeSystemAttributes = true) : string
Inherited

Parameters

$includeSystemAttributes

boolean

Returns

string

Returns the DN of the current node. {@see getDnString()}

toString() : string
Inherited

Returns

string

Constructor.

__construct(\Zend\Ldap\Dn $dn, array $data, boolean $fromDataSource) 
Inherited

Constructor is protected to enforce the use of factory methods.

Parameters

$dn

\Zend\Ldap\Dn

$data

array

$fromDataSource

boolean

Gets the DN of the current node as a Zend\Ldap\Dn.

_getDn() : \Zend\Ldap\Dn
Inherited

This is an offline method.

Returns

\Zend\Ldap\Dn

Ensures that a name element is present and that it is single-values.

ensureNameAttribute(array $data) 

Parameters

$data

array

Loads the attribute Types

loadAttributeTypes() : void

loadData()

loadData(array $data, boolean $fromDataSource) 
Inherited

Parameters

$data

array

$fromDataSource

boolean

Loads the LDAP syntaxes

loadLdapSyntaxes() : void

Loads the matching rule use

loadMatchingRuleUse() : void

Loads the matching rules

loadMatchingRules() : void

Loads the object classes

loadObjectClasses() : void

Parses an attributeType value

parseAttributeType(string $value) : array

Parameters

$value

string

Returns

array

Parse the given tokens into a data structure

parseLdapSchemaSyntax(array $data, array $tokens) : void

Parameters

$data

array

$tokens

array

Parses an ldapSyntaxes value

parseLdapSyntax(string $value) : array

Parameters

$value

string

Returns

array

Parses a matchingRules value

parseMatchingRule(string $value) : array

Parameters

$value

string

Returns

array

Parses a matchingRuleUse value

parseMatchingRuleUse(string $value) : array

Parameters

$value

string

Returns

array

Parses an objectClasses value

parseObjectClass(string $value) : array

Parameters

$value

string

Returns

array

Parses the schema

parseSchema(\Zend\Ldap\Dn $dn, \Zend\Ldap\Ldap $ldap) : \Zend\Ldap\Node\Schema\OpenLdap
inherited_from \Zend\Ldap\Node\Schema::parseSchema()

Parameters

$dn

\Zend\Ldap\Dn

$ldap

\Zend\Ldap\Ldap

Returns

\Zend\Ldap\Node\Schema\OpenLdapProvides a fluid interface

Parses the schema

parseSchema(\Zend\Ldap\Dn $dn, \Zend\Ldap\Ldap $ldap) : \Zend\Ldap\Node\Schema
Inherited

Parameters

$dn

\Zend\Ldap\Dn

$ldap

\Zend\Ldap\Ldap

Returns

\Zend\Ldap\Node\SchemaProvides a fluid interface

Resolves inheritance in objectClasses and attributes

resolveInheritance(\Zend\Ldap\Node\Schema\AbstractItem $node, array $repository) 

Parameters

$node

\Zend\Ldap\Node\Schema\AbstractItem

$repository

array

Tokenizes the given value into an array

tokenizeString(string $value) : array

Parameters

$value

string

Returns

arraytokens

 Properties

 

The attribute Types

$attributeTypes : array

Default

null
 

Holds the node's current data.

$currentData : array

Default

 

Holds the node's DN.

$dn : \Zend\Ldap\Dn

Default

 

The LDAP syntaxes

$ldapSyntaxes : array

Default

null
 

The matching rule use

$matchingRuleUse : array

Default

null
 

The matching rules

$matchingRules : array

Default

null
 

The object classes

$objectClasses : array

Default

null
 

$systemAttributes

$systemAttributes 

Default

array('createtimestamp', 'creatorsname', 'entrycsn', 'entrydn', 'entryuuid', 'hassubordinates', 'modifiersname', 'modifytimestamp', 'structuralobjectclass', 'subschemasubentry', 'distinguishedname', 'instancetype', 'name', 'objectcategory', 'objectguid', 'usnchanged', 'usncreated', 'whenchanged', 'whencreated')
Static

 Constants

 

OBJECTCLASS_TYPE_ABSTRACT

OBJECTCLASS_TYPE_ABSTRACT = 3 
 

OBJECTCLASS_TYPE_AUXILIARY

OBJECTCLASS_TYPE_AUXILIARY = 4 
 

OBJECTCLASS_TYPE_STRUCTURAL

OBJECTCLASS_TYPE_STRUCTURAL = 1 
 

OBJECTCLASS_TYPE_UNKNOWN

OBJECTCLASS_TYPE_UNKNOWN = 0