Zend Framework
1.12
|
Public Member Functions | |
reload (Zend_Ldap $ldap=null) | |
Reload node attributes from LDAP. | |
getDn () | |
Gets the DN of the current node as a Zend_Ldap_Dn. | |
getDnString ($caseFold=null) | |
Gets the DN of the current node as a string. | |
getDnArray ($caseFold=null) | |
Gets the DN of the current node as an array. | |
getRdnString ($caseFold=null) | |
Gets the RDN of the current node as a string. | |
getRdnArray ($caseFold=null) | |
Gets the RDN of the current node as an array. | |
getObjectClass () | |
Gets the objectClass of the node. | |
getAttributes ($includeSystemAttributes=true) | |
Gets all attributes of node. | |
toString () | |
Returns the DN of the current node. | |
__toString () | |
Cast to string representation {. | |
toArray ($includeSystemAttributes=true) | |
Returns an array representation of the current node. | |
toJson ($includeSystemAttributes=true) | |
Returns a JSON representation of the current node. | |
getData ($includeSystemAttributes=true) | |
Gets node attributes. | |
existsAttribute ($name, $emptyExists=false) | |
Checks whether a given attribute exists. | |
attributeHasValue ($attribName, $value) | |
Checks if the given value(s) exist in the attribute. | |
getAttribute ($name, $index=null) | |
Gets a LDAP attribute. | |
getDateTimeAttribute ($name, $index=null) | |
Gets a LDAP date/time attribute. | |
__set ($name, $value) | |
Sets a LDAP attribute. | |
__get ($name) | |
Gets a LDAP attribute. | |
__unset ($name) | |
Deletes a LDAP attribute. | |
__isset ($name) | |
Checks whether a given attribute exists. | |
offsetSet ($name, $value) | |
Sets a LDAP attribute. | |
offsetGet ($name) | |
Gets a LDAP attribute. | |
offsetUnset ($name) | |
Deletes a LDAP attribute. | |
offsetExists ($name) | |
Checks whether a given attribute exists. | |
count () | |
Returns the number of attributes in node. | |
Protected Member Functions | |
__construct (Zend_Ldap_Dn $dn, array $data, $fromDataSource) | |
Constructor. | |
_loadData (array $data, $fromDataSource) | |
_getDn () | |
Gets the DN of the current node as a Zend_Ldap_Dn. | |
Protected Attributes | |
$_dn | |
$_currentData | |
Static Protected Attributes | |
static | $_systemAttributes |
|
protected |
Constructor.
Constructor is protected to enforce the use of factory methods.
Zend_Ldap_Dn | $dn | |
array | $data | |
boolean | $fromDataSource |
__get | ( | $name | ) |
Gets a LDAP attribute.
This is an offline method.
string | $name |
Zend_Ldap_Exception |
__isset | ( | $name | ) |
Checks whether a given attribute exists.
Empty attributes will be treated as non-existent.
string | $name |
__set | ( | $name, | |
$value | |||
) |
Sets a LDAP attribute.
This is an offline method.
string | $name | |
mixed | $value |
BadMethodCallException |
__toString | ( | ) |
__unset | ( | $name | ) |
Deletes a LDAP attribute.
This method deletes the attribute.
This is an offline method.
string | $name |
BadMethodCallException |
|
protected |
|
protected |
array | $data | |
boolean | $fromDataSource |
Zend_Ldap_Exception |
attributeHasValue | ( | $attribName, | |
$value | |||
) |
Checks if the given value(s) exist in the attribute.
string | $attribName | |
mixed | array | $value |
count | ( | ) |
Returns the number of attributes in node.
Implements Countable
existsAttribute | ( | $name, | |
$emptyExists = false |
|||
) |
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.
string | $name | |
boolean | $emptyExists |
getAttribute | ( | $name, | |
$index = null |
|||
) |
Gets a LDAP attribute.
This is an offline method.
string | $name | |
integer | $index |
Zend_Ldap_Exception |
getAttributes | ( | $includeSystemAttributes = true | ) |
Gets all attributes of node.
The collection contains all attributes.
This is an offline method.
boolean | $includeSystemAttributes |
getData | ( | $includeSystemAttributes = true | ) |
Gets node attributes.
The array contains all attributes in its internal format (no conversion).
This is an offline method.
boolean | $includeSystemAttributes |
getDateTimeAttribute | ( | $name, | |
$index = null |
|||
) |
Gets a LDAP date/time attribute.
This is an offline method.
string | $name | |
integer | $index |
Zend_Ldap_Exception |
getDn | ( | ) |
Gets the DN of the current node as a Zend_Ldap_Dn.
The method returns a clone of the node's DN to prohibit modification.
This is an offline method.
getDnArray | ( | $caseFold = null | ) |
Gets the DN of the current node as an array.
This is an offline method.
string | $caseFold |
getDnString | ( | $caseFold = null | ) |
Gets the DN of the current node as a string.
This is an offline method.
string | $caseFold |
getObjectClass | ( | ) |
Gets the objectClass of the node.
getRdnArray | ( | $caseFold = null | ) |
Gets the RDN of the current node as an array.
This is an offline method.
string | $caseFold |
getRdnString | ( | $caseFold = null | ) |
Gets the RDN of the current node as a string.
This is an offline method.
string | $caseFold |
offsetExists | ( | $name | ) |
Checks whether a given attribute exists.
Implements ArrayAccess.
Empty attributes will be treated as non-existent.
string | $name |
offsetGet | ( | $name | ) |
Gets a LDAP attribute.
Implements ArrayAccess.
This is an offline method.
string | $name |
Zend_Ldap_Exception |
offsetSet | ( | $name, | |
$value | |||
) |
Sets a LDAP attribute.
Implements ArrayAccess.
This is an offline method.
string | $name | |
mixed | $value |
BadMethodCallException |
offsetUnset | ( | $name | ) |
Deletes a LDAP attribute.
Implements ArrayAccess.
This method deletes the attribute.
This is an offline method.
string | $name |
BadMethodCallException |
reload | ( | Zend_Ldap | $ldap = null | ) |
Reload node attributes from LDAP.
This is an online method.
Zend_Ldap | $ldap |
Zend_Ldap_Exception |
toArray | ( | $includeSystemAttributes = true | ) |
Returns an array representation of the current node.
boolean | $includeSystemAttributes |
toJson | ( | $includeSystemAttributes = true | ) |
Returns a JSON representation of the current node.
boolean | $includeSystemAttributes |
toString | ( | ) |
|
protected |
|
protected |
|
staticprotected |