Zend\Ldap\Node\RootDse provides a simple data-container for the RootDse node.
Methods
Gets a LDAP attribute.
__get(string $name) : mixed
Inherited
This is an offline method.
inherited_from |
\Zend\Ldap\Node\AbstractNode::__get() |
Parameters
$name
string
Exceptions
Returns
mixed
Checks whether a given attribute exists.
__isset(string $name) : bool
Inherited
Empty attributes will be treated as non-existent.
inherited_from |
\Zend\Ldap\Node\AbstractNode::__isset() |
Parameters
$name
string
Returns
bool
Sets a LDAP attribute.
__set(string $name, mixed $value)
Inherited
This is an offline method.
inherited_from |
\Zend\Ldap\Node\AbstractNode::__set() |
Parameters
$name
string
$value
mixed
Exceptions
Cast to string representation {@see toString()}
__toString() : string
Inherited
inherited_from |
\Zend\Ldap\Node\AbstractNode::__toString() |
Returns
string
Deletes a LDAP attribute.
__unset($name)
Inherited
This method deletes the attribute.
This is an offline method.
inherited_from |
\Zend\Ldap\Node\AbstractNode::__unset() |
Parameters
$name
Exceptions
Checks if the given value(s) exist in the attribute
attributeHasValue(string $attribName, mixed | array $value) : bool
Inherited
inherited_from |
\Zend\Ldap\Node\AbstractNode::attributeHasValue() |
Parameters
$attribName
string
$value
mixedarray
Returns
bool
Returns the number of attributes in node.
count() : int
Inherited
Implements Countable
inherited_from |
\Zend\Ldap\Node\AbstractNode::count() |
Returns
int
Checks whether a given attribute exists.
existsAttribute(string $name, bool $emptyExists) : bool
Inherited
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() |
Parameters
$name
string
$emptyExists
bool
Returns
bool
Gets a LDAP attribute.
getAttribute(string $name, int $index) : mixed
Inherited
This is an offline method.
inherited_from |
\Zend\Ldap\Node\AbstractNode::getAttribute() |
Parameters
$name
string
$index
int
Exceptions
Returns
mixed
Gets all attributes of node.
getAttributes(bool $includeSystemAttributes) : array
Inherited
The collection contains all attributes.
This is an offline method.
inherited_from |
\Zend\Ldap\Node\AbstractNode::getAttributes() |
Parameters
$includeSystemAttributes
bool
Returns
array
Gets node attributes.
getData(bool $includeSystemAttributes) : array
Inherited
The array contains all attributes in its internal format (no conversion).
This is an offline method.
inherited_from |
\Zend\Ldap\Node\AbstractNode::getData() |
Parameters
$includeSystemAttributes
bool
Returns
array
Gets a LDAP date/time attribute.
getDateTimeAttribute(string $name, int $index) : array | int
Inherited
This is an offline method.
inherited_from |
\Zend\Ldap\Node\AbstractNode::getDateTimeAttribute() |
Parameters
$name
string
$index
int
Exceptions
Returns
array
int
Gets the DN of the current node as a Zend\Ldap\Dn.
getDn() : \Zend\Ldap\Dn
Inherited
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() |
Returns
Gets the DN of the current node as an array.
getDnArray(string $caseFold) : array
Inherited
This is an offline method.
inherited_from |
\Zend\Ldap\Node\AbstractNode::getDnArray() |
Parameters
$caseFold
string
Returns
array
Gets the DN of the current node as a string.
getDnString(string $caseFold) : string
Inherited
This is an offline method.
inherited_from |
\Zend\Ldap\Node\AbstractNode::getDnString() |
Parameters
$caseFold
string
Returns
string
Gets the namingContexts.
getNamingContexts() : array
Gets the objectClass of the node
getObjectClass() : array
Inherited
inherited_from |
\Zend\Ldap\Node\AbstractNode::getObjectClass() |
Returns
array
Gets the RDN of the current node as an array.
getRdnArray(string $caseFold) : array
Inherited
This is an offline method.
inherited_from |
\Zend\Ldap\Node\AbstractNode::getRdnArray() |
Parameters
$caseFold
string
Returns
array
Gets the RDN of the current node as a string.
getRdnString(string $caseFold) : string
Inherited
This is an offline method.
inherited_from |
\Zend\Ldap\Node\AbstractNode::getRdnString() |
Parameters
$caseFold
string
Returns
string
Gets the server type
getServerType() : int
Gets the subschemaSubentry.
getSubschemaSubentry() : string | null
Checks whether a given attribute exists.
offsetExists(string $name) : bool
Inherited
Implements ArrayAccess.
Empty attributes will be treated as non-existent.
inherited_from |
\Zend\Ldap\Node\AbstractNode::offsetExists() |
Parameters
$name
string
Returns
bool
Gets a LDAP attribute.
offsetGet(string $name) : mixed
Inherited
Implements ArrayAccess.
This is an offline method.
inherited_from |
\Zend\Ldap\Node\AbstractNode::offsetGet() |
Parameters
$name
string
Exceptions
Returns
mixed
Sets a LDAP attribute.
offsetSet(string $name, mixed $value)
Inherited
Implements ArrayAccess.
This is an offline method.
inherited_from |
\Zend\Ldap\Node\AbstractNode::offsetSet() |
Parameters
$name
string
$value
mixed
Exceptions
Deletes a LDAP attribute.
offsetUnset($name)
Inherited
Implements ArrayAccess.
This method deletes the attribute.
This is an offline method.
inherited_from |
\Zend\Ldap\Node\AbstractNode::offsetUnset() |
Parameters
$name
Exceptions
Reload node attributes from LDAP.
reload(\Zend\Ldap\Ldap $ldap) : \Zend\Ldap\Node\AbstractNode
Inherited
This is an online method.
inherited_from |
\Zend\Ldap\Node\AbstractNode::reload() |
Parameters
Returns
Determines if the sasl mechanism is supported
supportsSaslMechanism(string | array $mechlist) : bool
Parameters
$mechlist
stringarray
SASL mechanisms to check
Returns
bool
Determines if the version is supported
supportsVersion(string | int | array $versions) : bool
Parameters
$versions
stringintarray
version(s) to check
Returns
bool
Returns an array representation of the current node
toArray(bool $includeSystemAttributes) : array
Inherited
inherited_from |
\Zend\Ldap\Node\AbstractNode::toArray() |
Parameters
$includeSystemAttributes
bool
Returns
array
Returns a JSON representation of the current node
toJson(bool $includeSystemAttributes) : string
Inherited
inherited_from |
\Zend\Ldap\Node\AbstractNode::toJson() |
Parameters
$includeSystemAttributes
bool
Returns
string
Returns the DN of the current node.
toString() : string
Inherited
{@see getDnString()}
inherited_from |
\Zend\Ldap\Node\AbstractNode::toString() |
Returns
string
Constructor.
__construct(\Zend\Ldap\Dn $dn, array $data)
Constructor is protected to enforce the use of factory methods.
Parameters
$data
array
Gets the DN of the current node as a Zend\Ldap\Dn.
_getDn() : \Zend\Ldap\Dn
Inherited
This is an offline method.
inherited_from |
\Zend\Ldap\Node\AbstractNode::_getDn() |
Returns
loadData()
loadData(array $data, bool $fromDataSource)
Inherited
inherited_from |
\Zend\Ldap\Node\AbstractNode::loadData() |
Parameters
$data
array
$fromDataSource
bool
Properties
Holds the node's current data.
$currentData : array
Inherited
inherited_from |
\Zend\Ldap\Node\AbstractNode::$$currentData |
Holds the node's DN.
$dn : \Zend\Ldap\Dn
Inherited
inherited_from |
\Zend\Ldap\Node\AbstractNode::$$dn |
$systemAttributes
$systemAttributes
Inherited
inherited_from |
\Zend\Ldap\Node\AbstractNode::$$systemAttributes |
Constants
SERVER_TYPE_ACTIVEDIRECTORY
SERVER_TYPE_ACTIVEDIRECTORY
SERVER_TYPE_EDIRECTORY
SERVER_TYPE_EDIRECTORY
SERVER_TYPE_GENERIC
SERVER_TYPE_GENERIC
SERVER_TYPE_OPENLDAP
SERVER_TYPE_OPENLDAP