__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\Node
Provides a fluid interfaceappendToAttribute(string $name, mixed $value) : \Zend\Ldap\Node
This is an offline method.
string
mixed
\Zend\Ldap\Exception\LdapException |
---|
\Zend\Ldap\Node
Provides 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\Node
Provides a fluid interfaceattachLdap(\Zend\Ldap\Ldap $ldap) : \Zend\Ldap\Node
This is an offline method.
\Zend\Ldap\Ldap
\Zend\Ldap\Exception\LdapException |
---|
\Zend\Ldap\Node
Provides a fluid interfaceattributeHasValue(string $attribName, mixed | array $value) : bool
inherited_from | \Zend\Ldap\Node\AbstractNode::attributeHasValue() |
---|
string
mixedarray
bool
count() : int
Implements Countable
inherited_from | \Zend\Ldap\Node\AbstractNode::count() |
---|
int
countChildren() : 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 |
---|
int
create(string | array | \Zend\Ldap\Dn $dn, array $objectClass) : \Zend\Ldap\Node
stringarray\Zend\Ldap\Dn
array
\Zend\Ldap\Exception\LdapException |
---|
current() : array
Implements Iterator
array
delete() : \Zend\Ldap\Node
Node will be deleted on calling update() if $delete is true.
\Zend\Ldap\Node
Provides 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\Node
Provides a fluid interfaceexists(\Zend\Ldap\Ldap $ldap) : bool
This is an online method.
\Zend\Ldap\Ldap
\Zend\Ldap\Exception\LdapException |
---|
bool
existsAttribute(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
bool
fromArray(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\Node
null
getAttribute(string $name, int $index) : mixed
This is an offline method.
inherited_from | \Zend\Ldap\Node\AbstractNode::getAttribute() |
---|
string
int
\Zend\Ldap\Exception\LdapException |
---|
mixed
getAttributes(bool $includeSystemAttributes) : array
The collection contains all attributes.
This is an offline method.
inherited_from | \Zend\Ldap\Node\AbstractNode::getAttributes() |
---|
bool
array
getChangedData() : 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.
array
getChanges() : array
This is an offline method.
array
getChildren() : \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
array
getDateTimeAttribute(string $name, int $index) : array | int
This is an offline method.
inherited_from | \Zend\Ldap\Node\AbstractNode::getDateTimeAttribute() |
---|
string
int
\Zend\Ldap\Exception\LdapException |
---|
array
int
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
array
getDnString(string $caseFold) : string
This is an offline method.
inherited_from | \Zend\Ldap\Node\AbstractNode::getDnString() |
---|
string
string
getObjectClass() : array
inherited_from | \Zend\Ldap\Node\AbstractNode::getObjectClass() |
---|
array
getParent(\Zend\Ldap\Ldap $ldap) : \Zend\Ldap\Node
getRdnArray(string $caseFold) : array
This is an offline method.
inherited_from | \Zend\Ldap\Node\AbstractNode::getRdnArray() |
---|
string
array
getRdnString(string $caseFold) : string
This is an offline method.
inherited_from | \Zend\Ldap\Node\AbstractNode::getRdnString() |
---|
string
string
hasChildren() : 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 |
---|
bool
isAttached() : bool
This is an offline method.
bool
isNew() : 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.
bool
key() : string
Implements Iterator
string
move(\Zend\Ldap\Dn | string | array $newDn) : \Zend\Ldap\Node
This is an offline method.
\Zend\Ldap\Dnstringarray
\Zend\Ldap\Exception\LdapException |
---|
\Zend\Ldap\Node
Provides 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
bool
offsetGet(string $name) : mixed
Implements ArrayAccess.
This is an offline method.
inherited_from | \Zend\Ldap\Node\AbstractNode::offsetGet() |
---|
string
\Zend\Ldap\Exception\LdapException |
---|
mixed
offsetSet(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\Node
Provides 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\Node
Provides 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\Node
Provides 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\Node
Provides 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\Node
Provides a fluid interfacesetObjectClass(array | string $value) : \Zend\Ldap\Node
This is an offline method.
arraystring
\Zend\Ldap\Exception\LdapException |
---|
\Zend\Ldap\Node
Provides a fluid interfacesetPasswordAttribute(string $password, string $hashType, string $attribName) : \Zend\Ldap\Node
string
string
string
\Zend\Ldap\Exception\LdapException |
---|
\Zend\Ldap\Node
Provides a fluid interfacetoArray(bool $includeSystemAttributes) : array
inherited_from | \Zend\Ldap\Node\AbstractNode::toArray() |
---|
bool
array
toJson(bool $includeSystemAttributes) : string
inherited_from | \Zend\Ldap\Node\AbstractNode::toJson() |
---|
bool
string
toLdif(array $options) : string
array
Additional options used during encoding
string
toString() : string
{@see getDnString()}
inherited_from | \Zend\Ldap\Node\AbstractNode::toString() |
---|
string
update(\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\Node
Provides a fluid interfacevalid() : bool
Implements Iterator
bool
willBeDeleted() : bool
bool
willBeMoved() : 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
bool
True 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)
string
Event name
array\ArrayAccess
Array 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