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