This class provides a base implementation for LDAP nodes
Constructor.
Constructor is protected to enforce the use of factory methods.
| Parameters: |
|
|---|
Reload node attributes from LDAP.
This is an online method.
| Parameters: | ZendLdapLdap – |
|---|---|
| Return type: | AbstractNode Provides a fluid interface |
Gets the DN of the current node as a ZendLdapDn.
This is an offline method.
| Return type: | ZendLdapDn |
|---|
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 |
|---|
Gets the DN of the current node as a string.
This is an offline method.
| Parameters: | string – |
|---|---|
| Return type: | string |
Gets the DN of the current node as an array.
This is an offline method.
| Parameters: | string – |
|---|---|
| Return type: | array |
Gets the RDN of the current node as a string.
This is an offline method.
| Parameters: | string – |
|---|---|
| Return type: | string |
Gets the RDN of the current node as an array.
This is an offline method.
| Parameters: | string – |
|---|---|
| Return type: | array |
Gets all attributes of node.
The collection contains all attributes.
This is an offline method.
| Parameters: | bool – |
|---|---|
| Return type: | array |
Returns an array representation of the current node
| Parameters: | bool – |
|---|---|
| Return type: | array |
Returns a JSON representation of the current node
| Parameters: | bool – |
|---|---|
| Return type: | string |
Gets node attributes.
The array contains all attributes in its internal format (no conversion).
This is an offline method.
| Parameters: | bool – |
|---|---|
| Return type: | array |
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: |
|
|---|---|
| Return type: | bool |
Checks if the given value(s) exist in the attribute
| Parameters: |
|
|---|---|
| Return type: | bool |
Gets a LDAP attribute.
This is an offline method.
| Parameters: |
|
|---|---|
| Return type: | mixed |
| Throws : | ZendLdapExceptionLdapException |
Gets a LDAP date/time attribute.
This is an offline method.
| Parameters: |
|
|---|---|
| Return type: | array|integer |
| Throws : | ZendLdapExceptionLdapException |
Sets a LDAP attribute.
This is an offline method.
| Parameters: |
|
|---|---|
| Throws ZendLdapExceptionBadMethodCallException: | |
Gets a LDAP attribute.
This is an offline method.
| Parameters: | string – |
|---|---|
| Return type: | mixed |
| Throws : | ZendLdapExceptionLdapException |
Deletes a LDAP attribute.
This method deletes the attribute.
This is an offline method.
| Parameters: | $name – |
|---|---|
| Throws ZendLdapExceptionBadMethodCallException: | |
Checks whether a given attribute exists.
Empty attributes will be treated as non-existent.
| Parameters: | string – |
|---|---|
| Return type: | bool |
Sets a LDAP attribute. Implements ArrayAccess.
This is an offline method.
| Parameters: |
|
|---|---|
| Throws ZendLdapExceptionBadMethodCallException: | |
| Throws ZendLdapExceptionBadMethodCallException: | |
Gets a LDAP attribute. Implements ArrayAccess.
This is an offline method.
| Parameters: | string – |
|---|---|
| Return type: | mixed |
| Throws : | ZendLdapExceptionLdapException |
Deletes a LDAP attribute. Implements ArrayAccess.
This method deletes the attribute.
This is an offline method.
| Parameters: | $name – |
|---|---|
| Throws ZendLdapExceptionBadMethodCallException: | |
Checks whether a given attribute exists. Implements ArrayAccess.
Empty attributes will be treated as non-existent.
| Parameters: | string – |
|---|---|
| Return type: | bool |
Returns the number of attributes in node. Implements Countable
| Return type: | int |
|---|