Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
Zend_Ldap_Node_Abstract provides a bas eimplementation for LDAP nodes
array $_currentData = ''Holds the node's current data.
DetailsZend_Ldap_Dn $_dn = ''Holds the node's DN.
Details $_systemAttributes = 'createtimestamp'
Details__construct(
Zend_Ldap_Dn $dn, array $data, boolean $fromDataSource
)
:
Constructor.
Constructor is protected to enforce the use of factory methods.
Details__get(
string $name
)
:
arrayGets a LDAP attribute.
This is an offline method.
Details__isset(
string $name
)
:
booleanChecks whether a given attribute exists.
Empty attributes will be treated as non-existent.
Details__set(
string $name, mixed $value
)
:
nullSets a LDAP attribute.
This is an offline method.
Details__toString(
)
:
stringCast to string representation {@see toString()}
Details__unset(
string $name
)
:
nullDeletes a LDAP attribute.
This method deletes the attribute.
This is an offline method.
Details_getDn(
)
:
Zend_Ldap_DnGets the DN of the current node as a Zend_Ldap_Dn.
This is an offline method.
Details_loadData(
array $data, boolean $fromDataSource
)
:
DetailsattributeHasValue(
string $attribName, mixed|array $value
)
:
booleanChecks if the given value(s) exist in the attribute
Detailscount(
)
:
intReturns the number of attributes in node.
Implements Countable
DetailsexistsAttribute(
string $name, boolean $emptyExists
=
false
)
:
booleanChecks 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.
DetailsgetAttribute(
string $name, integer $index
=
null
)
:
mixedGets a LDAP attribute.
This is an offline method.
DetailsgetAttributes(
boolean $includeSystemAttributes
=
true
)
:
arrayGets all attributes of node.
The collection contains all attributes.
This is an offline method.
DetailsgetData(
boolean $includeSystemAttributes
=
true
)
:
arrayGets node attributes.
The array contains all attributes in its internal format (no conversion).
This is an offline method.
DetailsgetDateTimeAttribute(
string $name, integer $index
=
null
)
:
array|integerGets a LDAP date/time attribute.
This is an offline method.
DetailsgetDn(
)
:
Zend_Ldap_DnGets 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.
DetailsgetDnArray(
string $caseFold
=
null
)
:
arrayGets the DN of the current node as an array.
This is an offline method.
DetailsgetDnString(
string $caseFold
=
null
)
:
stringGets the DN of the current node as a string.
This is an offline method.
DetailsgetObjectClass(
)
:
arrayGets the objectClass of the node
DetailsgetRdnArray(
string $caseFold
=
null
)
:
arrayGets the RDN of the current node as an array.
This is an offline method.
DetailsgetRdnString(
string $caseFold
=
null
)
:
stringGets the RDN of the current node as a string.
This is an offline method.
DetailsoffsetExists(
string $name
)
:
booleanChecks whether a given attribute exists.
Implements ArrayAccess.
Empty attributes will be treated as non-existent.
DetailsoffsetGet(
string $name
)
:
arrayGets a LDAP attribute.
Implements ArrayAccess.
This is an offline method.
DetailsoffsetSet(
string $name, mixed $value
)
:
nullSets a LDAP attribute.
Implements ArrayAccess.
This is an offline method.
DetailsoffsetUnset(
string $name
)
:
nullDeletes a LDAP attribute.
Implements ArrayAccess.
This method deletes the attribute.
This is an offline method.
Detailsreload(
Zend_Ldap $ldap
=
null
)
:
Zend_Ldap_Node_AbstractReload node attributes from LDAP.
This is an online method.
DetailstoArray(
boolean $includeSystemAttributes
=
true
)
:
arrayReturns an array representation of the current node
DetailstoJson(
boolean $includeSystemAttributes
=
true
)
:
stringReturns a JSON representation of the current node
DetailstoString(
)
:
stringReturns the DN of the current node. {@see getDnString()}
Details