1258. Class

1258.1. Zend\Ldap\Node\AbstractNode

This class provides a base implementation for LDAP nodes

1258.1.1. Methods

1258.1.1.1. __construct

__construct()

Constructor.

Constructor is protected to enforce the use of factory methods.

Parameters:
  • ZendLdapDn
  • array
  • bool

1258.1.1.2. loadData

loadData()

@param array $data

Parameters:bool

1258.1.1.3. reload

reload()

Reload node attributes from LDAP.

This is an online method.

Parameters:ZendLdapLdap
Return type:AbstractNode Provides a fluid interface

1258.1.1.4. _getDn

_getDn()

Gets the DN of the current node as a ZendLdapDn.

This is an offline method.

Return type:ZendLdapDn

1258.1.1.5. getDn

getDn()

Gets the DN of the current node as a ZendLdapDn. The method returns a clone of the node’s DN to prohibit modification.

This is an offline method.

Return type:ZendLdapDn

1258.1.1.6. getDnString

getDnString()

Gets the DN of the current node as a string.

This is an offline method.

Parameters:string
Return type:string

1258.1.1.7. getDnArray

getDnArray()

Gets the DN of the current node as an array.

This is an offline method.

Parameters:string
Return type:array

1258.1.1.8. getRdnString

getRdnString()

Gets the RDN of the current node as a string.

This is an offline method.

Parameters:string
Return type:string

1258.1.1.9. getRdnArray

getRdnArray()

Gets the RDN of the current node as an array.

This is an offline method.

Parameters:string
Return type:array

1258.1.1.10. getObjectClass

getObjectClass()

Gets the objectClass of the node

Return type:array

1258.1.1.11. getAttributes

getAttributes()

Gets all attributes of node.

The collection contains all attributes.

This is an offline method.

Parameters:bool
Return type:array

1258.1.1.12. toString

toString()

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

Return type:string

1258.1.1.13. __toString

__toString()

Cast to string representation {@see toString()}

Return type:string

1258.1.1.14. toArray

toArray()

Returns an array representation of the current node

Parameters:bool
Return type:array

1258.1.1.15. toJson

toJson()

Returns a JSON representation of the current node

Parameters:bool
Return type:string

1258.1.1.16. getData

getData()

Gets node attributes.

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

This is an offline method.

Parameters:bool
Return type:array

1258.1.1.17. existsAttribute

existsAttribute()

Checks whether a given attribute exists.

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:
  • string
  • bool
Return type:

bool

1258.1.1.18. attributeHasValue

attributeHasValue()

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

Parameters:
  • string
  • mixed|array
Return type:

bool

1258.1.1.19. getAttribute

getAttribute()

Gets a LDAP attribute.

This is an offline method.

Parameters:
  • string
  • integer
Return type:

mixed

Throws :

ZendLdapExceptionLdapException

1258.1.1.20. getDateTimeAttribute

getDateTimeAttribute()

Gets a LDAP date/time attribute.

This is an offline method.

Parameters:
  • string
  • integer
Return type:

array|integer

Throws :

ZendLdapExceptionLdapException

1258.1.1.21. __set

__set()

Sets a LDAP attribute.

This is an offline method.

Parameters:
  • string
  • mixed
Throws ZendLdapExceptionBadMethodCallException:
 

1258.1.1.22. __get

__get()

Gets a LDAP attribute.

This is an offline method.

Parameters:string
Return type:mixed
Throws :ZendLdapExceptionLdapException

1258.1.1.23. __unset

__unset()

Deletes a LDAP attribute.

This method deletes the attribute.

This is an offline method.

Parameters:$name
Throws ZendLdapExceptionBadMethodCallException:
 

1258.1.1.24. __isset

__isset()

Checks whether a given attribute exists.

Empty attributes will be treated as non-existent.

Parameters:string
Return type:bool

1258.1.1.25. offsetSet

offsetSet()

Sets a LDAP attribute. Implements ArrayAccess.

This is an offline method.

Parameters:
  • string
  • $value
  • mixed
Throws ZendLdapExceptionBadMethodCallException:
 
Throws ZendLdapExceptionBadMethodCallException:
 

1258.1.1.26. offsetGet

offsetGet()

Gets a LDAP attribute. Implements ArrayAccess.

This is an offline method.

Parameters:string
Return type:mixed
Throws :ZendLdapExceptionLdapException

1258.1.1.27. offsetUnset

offsetUnset()

Deletes a LDAP attribute. Implements ArrayAccess.

This method deletes the attribute.

This is an offline method.

Parameters:$name
Throws ZendLdapExceptionBadMethodCallException:
 

1258.1.1.28. offsetExists

offsetExists()

Checks whether a given attribute exists. Implements ArrayAccess.

Empty attributes will be treated as non-existent.

Parameters:string
Return type:bool

1258.1.1.29. count

count()

Returns the number of attributes in node. Implements Countable

Return type:int