__get()
__isset()
__set()
__sleep()
__toString()
__unset()
__wakeup()
appendObjectClass()
appendToAttribute()
appendToDateTimeAttribute()
attachLdap()
attributeHasValue()
count()
countChildren()
countSubtree()
create()
current()
delete()
deleteAttribute()
detachLdap()
exists()
existsAttribute()
fromArray()
fromLdap()
getAttribute()
getAttributes()
getChangedData()
getChanges()
getChildren()
getCurrentDn()
getData()
getDateTimeAttribute()
getDn()
getDnArray()
getDnString()
getLdap()
getObjectClass()
getParent()
getRdnArray()
getRdnString()
hasChildren()
isAttached()
isNew()
key()
move()
next()
offsetExists()
offsetGet()
offsetSet()
offsetUnset()
reload()
removeDuplicatesFromAttribute()
removeFromAttribute()
rename()
rewind()
searchChildren()
searchSubtree()
setAttribute()
setDateTimeAttribute()
setDn()
setObjectClass()
setPasswordAttribute()
toArray()
toJson()
toLdif()
toString()
update()
valid()
willBeDeleted()
willBeMoved()
__construct()
_getDn()
_setAttribute()
_setDateTimeAttribute()
assertChangeableAttribute()
ensureRdnAttributeValues()
loadData()
markAsNew()
markAsToBeDeleted()
triggerEvent()
$children
$currentData
$delete
$dn
$events
$ldap
$new
$newDn
$originalData
$systemAttributes
$iteratorRewind
Zend\Ldap\Node provides an object oriented view into a LDAP node.
__get(string $name) : mixed
This is an offline method.
| inherited_from | \Zend\Ldap\Node\AbstractNode::__get() |
|---|
string
\Zend\Ldap\Exception\LdapException |
|---|
mixed__isset(string $name) : bool
Empty attributes will be treated as non-existent.
| inherited_from | \Zend\Ldap\Node\AbstractNode::__isset() |
|---|
string
bool__set(string $name, $value)
This is an offline method.
string
\Zend\Ldap\Exception\BadMethodCallException |
|---|
__sleep() : array
Only Dn and attributes will be serialized.
array__toString() : string
| inherited_from | \Zend\Ldap\Node\AbstractNode::__toString() |
|---|
string__unset(string $name)
This method deletes the attribute.
This is an offline method.
string
\Zend\Ldap\Exception\LdapException |
|---|
__wakeup()
Enforces a detached node.
appendObjectClass(array | string $value) : \Zend\Ldap\Node
This is an offline method.
arraystring
\Zend\Ldap\Exception\LdapException |
|---|
\Zend\Ldap\NodeProvides a fluid interfaceappendToAttribute(string $name, mixed $value) : \Zend\Ldap\Node
This is an offline method.
string
mixed
\Zend\Ldap\Exception\LdapException |
|---|
\Zend\Ldap\NodeProvides a fluid interfaceappendToDateTimeAttribute(string $name, int | array $value, bool $utc) : \Zend\Ldap\Node
This is an offline method.
string
intarray
bool
\Zend\Ldap\Exception\LdapException |
|---|
\Zend\Ldap\NodeProvides a fluid interfaceattachLdap(\Zend\Ldap\Ldap $ldap) : \Zend\Ldap\Node
This is an offline method.
\Zend\Ldap\Ldap
\Zend\Ldap\Exception\LdapException |
|---|
\Zend\Ldap\NodeProvides a fluid interfaceattributeHasValue(string $attribName, mixed | array $value) : bool
| inherited_from | \Zend\Ldap\Node\AbstractNode::attributeHasValue() |
|---|
string
mixedarray
boolcount() : int
Implements Countable
| inherited_from | \Zend\Ldap\Node\AbstractNode::count() |
|---|
intcountChildren() : int
countSubtree(string | \Zend\Ldap\Filter\AbstractFilter $filter, int $scope) : int
This is an online method.
string\Zend\Ldap\Filter\AbstractFilter
int
\Zend\Ldap\Exception\LdapException |
|---|
intcreate(string | array | \Zend\Ldap\Dn $dn, array $objectClass) : \Zend\Ldap\Node
stringarray\Zend\Ldap\Dn
array
\Zend\Ldap\Exception\LdapException |
|---|
current() : array
Implements Iterator
arraydelete() : \Zend\Ldap\Node
Node will be deleted on calling update() if $delete is true.
\Zend\Ldap\NodeProvides a fluid interfacedeleteAttribute(string $name) : \Zend\Ldap\Node
This method deletes the attribute.
This is an offline method.
string
\Zend\Ldap\Exception\LdapException |
|---|
\Zend\Ldap\NodeProvides a fluid interfaceexists(\Zend\Ldap\Ldap $ldap) : bool
This is an online method.
\Zend\Ldap\Ldap
\Zend\Ldap\Exception\LdapException |
|---|
boolexistsAttribute(string $name, bool $emptyExists) : bool
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.
| inherited_from | \Zend\Ldap\Node\AbstractNode::existsAttribute() |
|---|
string
bool
boolfromArray(array $data, bool $fromDataSource) : \Zend\Ldap\Node
fromLdap(string | array | \Zend\Ldap\Dn $dn, \Zend\Ldap\Ldap $ldap) : \Zend\Ldap\Node | null
stringarray\Zend\Ldap\Dn
\Zend\Ldap\Ldap
\Zend\Ldap\Exception\LdapException |
|---|
\Zend\Ldap\Nodenull
getAttribute(string $name, int $index) : mixed
This is an offline method.
| inherited_from | \Zend\Ldap\Node\AbstractNode::getAttribute() |
|---|
string
int
\Zend\Ldap\Exception\LdapException |
|---|
mixedgetAttributes(bool $includeSystemAttributes) : array
The collection contains all attributes.
This is an offline method.
| inherited_from | \Zend\Ldap\Node\AbstractNode::getAttributes() |
|---|
bool
arraygetChangedData() : array
The array contains all changed attributes. This format can be used in Zend\Ldap\Ldap::add() and Zend\Ldap\Ldap::update().
This is an offline method.
arraygetChanges() : array
This is an offline method.
arraygetChildren() : \Zend\Ldap\Node\ChildrenIterator
Can be used offline but returns an empty array if children have not been retrieved yet.
\Zend\Ldap\Exception\LdapException |
|---|
getCurrentDn() : \Zend\Ldap\Dn
The method returns a clone of the node's DN to prohibit modification.
This is an offline method.
getData(bool $includeSystemAttributes) : array
The array contains all attributes in its internal format (no conversion).
This is an offline method.
| inherited_from | \Zend\Ldap\Node\AbstractNode::getData() |
|---|
bool
arraygetDateTimeAttribute(string $name, int $index) : array | int
This is an offline method.
| inherited_from | \Zend\Ldap\Node\AbstractNode::getDateTimeAttribute() |
|---|
string
int
\Zend\Ldap\Exception\LdapException |
|---|
arrayint
getDn() : \Zend\Ldap\Dn
The method returns a clone of the node's DN to prohibit modification.
This is an offline method.
| inherited_from | \Zend\Ldap\Node\AbstractNode::getDn() |
|---|
getDnArray(string $caseFold) : array
This is an offline method.
| inherited_from | \Zend\Ldap\Node\AbstractNode::getDnArray() |
|---|
string
arraygetDnString(string $caseFold) : string
This is an offline method.
| inherited_from | \Zend\Ldap\Node\AbstractNode::getDnString() |
|---|
string
stringgetObjectClass() : array
| inherited_from | \Zend\Ldap\Node\AbstractNode::getObjectClass() |
|---|
arraygetParent(\Zend\Ldap\Ldap $ldap) : \Zend\Ldap\Node
getRdnArray(string $caseFold) : array
This is an offline method.
| inherited_from | \Zend\Ldap\Node\AbstractNode::getRdnArray() |
|---|
string
arraygetRdnString(string $caseFold) : string
This is an offline method.
| inherited_from | \Zend\Ldap\Node\AbstractNode::getRdnString() |
|---|
string
stringhasChildren() : bool
Returns whether the current element has children.
Can be used offline but returns false if children have not been retrieved yet.
\Zend\Ldap\Exception\LdapException |
|---|
boolisAttached() : bool
This is an offline method.
boolisNew() : bool
Please note, that this doesn't tell you if the node is present on the server. Use exists() to see if a node is already there.
boolkey() : string
Implements Iterator
stringmove(\Zend\Ldap\Dn | string | array $newDn) : \Zend\Ldap\Node
This is an offline method.
\Zend\Ldap\Dnstringarray
\Zend\Ldap\Exception\LdapException |
|---|
\Zend\Ldap\NodeProvides a fluid interfacenext()
Implements Iterator
offsetExists(string $name) : bool
Implements ArrayAccess.
Empty attributes will be treated as non-existent.
| inherited_from | \Zend\Ldap\Node\AbstractNode::offsetExists() |
|---|
string
booloffsetGet(string $name) : mixed
Implements ArrayAccess.
This is an offline method.
| inherited_from | \Zend\Ldap\Node\AbstractNode::offsetGet() |
|---|
string
\Zend\Ldap\Exception\LdapException |
|---|
mixedoffsetSet(string $name, mixed $value)
Implements ArrayAccess.
This is an offline method.
string
mixed
\Zend\Ldap\Exception\LdapException |
|---|
offsetUnset(string $name)
Implements ArrayAccess.
This method deletes the attribute.
This is an offline method.
string
\Zend\Ldap\Exception\LdapException |
|---|
reload(\Zend\Ldap\Ldap $ldap) : \Zend\Ldap\Node
This is an online method.
\Zend\Ldap\Ldap
\Zend\Ldap\Exception\LdapException |
|---|
\Zend\Ldap\NodeProvides a fluid interfaceremoveDuplicatesFromAttribute(string $attribName) : void
string
removeFromAttribute(string $attribName, mixed | array $value) : void
string
mixedarray
rename(\Zend\Ldap\Dn | string | array $newDn) : \Zend\Ldap\Node
This is an offline method.
\Zend\Ldap\Dnstringarray
\Zend\Ldap\Exception\LdapException |
|---|
\Zend\Ldap\NodeProvides a fluid interfacerewind()
Implements Iterator
searchChildren(string | \Zend\Ldap\Filter\AbstractFilter $filter, string $sort) : \Zend\Ldap\Node\Collection
This is an online method.
string\Zend\Ldap\Filter\AbstractFilter
string
\Zend\Ldap\Exception\LdapException |
|---|
searchSubtree(string | \Zend\Ldap\Filter\AbstractFilter $filter, int $scope, string $sort) : \Zend\Ldap\Node\Collection
This is an online method.
string\Zend\Ldap\Filter\AbstractFilter
int
string
\Zend\Ldap\Exception\LdapException |
|---|
setAttribute(string $name, mixed $value) : \Zend\Ldap\Node
This is an offline method.
string
mixed
\Zend\Ldap\Exception\LdapException |
|---|
\Zend\Ldap\NodeProvides a fluid interfacesetDateTimeAttribute(string $name, int | array $value, bool $utc) : \Zend\Ldap\Node
This is an offline method.
string
intarray
bool
\Zend\Ldap\Exception\LdapException |
|---|
\Zend\Ldap\NodeProvides a fluid interfacesetDn(\Zend\Ldap\Dn | string | array $newDn) : \Zend\Ldap\Node
This is an offline method.
\Zend\Ldap\Dnstringarray
\Zend\Ldap\Exception\LdapException |
|---|
\Zend\Ldap\NodeProvides a fluid interfacesetObjectClass(array | string $value) : \Zend\Ldap\Node
This is an offline method.
arraystring
\Zend\Ldap\Exception\LdapException |
|---|
\Zend\Ldap\NodeProvides a fluid interfacesetPasswordAttribute(string $password, string $hashType, string $attribName) : \Zend\Ldap\Node
string
string
string
\Zend\Ldap\Exception\LdapException |
|---|
\Zend\Ldap\NodeProvides a fluid interfacetoArray(bool $includeSystemAttributes) : array
| inherited_from | \Zend\Ldap\Node\AbstractNode::toArray() |
|---|
bool
arraytoJson(bool $includeSystemAttributes) : string
| inherited_from | \Zend\Ldap\Node\AbstractNode::toJson() |
|---|
bool
stringtoLdif(array $options) : string
arrayAdditional options used during encoding
stringtoString() : string
{@see getDnString()}
| inherited_from | \Zend\Ldap\Node\AbstractNode::toString() |
|---|
stringupdate(\Zend\Ldap\Ldap $ldap) : \Zend\Ldap\Node
| trigger | pre-delete |
|---|---|
| trigger | post-delete |
| trigger | pre-add |
| trigger | post-add |
| trigger | pre-rename |
| trigger | post-rename |
| trigger | pre-update |
| trigger | post-update |
\Zend\Ldap\Ldap
\Zend\Ldap\Exception\LdapException |
|---|
\Zend\Ldap\NodeProvides a fluid interfacevalid() : bool
Implements Iterator
boolwillBeDeleted() : bool
boolwillBeMoved() : bool
bool__construct(\Zend\Ldap\Dn $dn, array $data, bool $fromDataSource, \Zend\Ldap\Ldap $ldap)
Constructor is protected to enforce the use of factory methods.
\Zend\Ldap\Dn
array
bool
\Zend\Ldap\Ldap
\Zend\Ldap\Exception\LdapException |
|---|
_setAttribute(string $name, mixed $value, bool $append)
_setDateTimeAttribute(string $name, int | array $value, bool $utc, bool $append)
string
intarray
bool
bool
\Zend\Ldap\Exception\LdapException |
|---|
assertChangeableAttribute(string $name) : bool
ensureRdnAttributeValues(bool $overwrite) : void
boolTrue to overwrite the RDN attributes
loadData(array $data, bool $fromDataSource)
markAsNew(bool $new)
Node will be added (instead of updated) on calling update() if $new is true.
bool
markAsToBeDeleted(bool $delete)
Node will be deleted on calling update() if $delete is true.
bool
triggerEvent(string $event, array | \ArrayAccess $argv)
stringEvent name
array\ArrayAccessArray of arguments; typically, should be associative
$currentData : array
| inherited_from | \Zend\Ldap\Node\AbstractNode::$$currentData |
|---|
$delete : bool
$dn : \Zend\Ldap\Dn
| inherited_from | \Zend\Ldap\Node\AbstractNode::$$dn |
|---|
$new : bool
$originalData : array
$systemAttributes
| inherited_from | \Zend\Ldap\Node\AbstractNode::$$systemAttributes |
|---|
$iteratorRewind : bool