Ldap/Node/RootDse/eDirectory.php
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 [email protected] so we can send you a copy immediately.
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Ldap
- Subpackage
- RootDSE
- Version
- $Id: eDirectory.php 24593 2012-01-05 20:35:02Z matthew $
\Zend_Ldap_Node_RootDse_eDirectory
Zend_Ldap_Node_RootDse provides a simple data-container for the RootDSE node of a Novell eDirectory server.
- Parent(s)
- \Zend_Ldap_Node_RootDse < \Zend_Ldap_Node_Abstract
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Constants
SERVER_TYPE_GENERIC
= 1- Inherited_from
- \Zend_Ldap_Node_RootDse::SERVER_TYPE_GENERIC
SERVER_TYPE_OPENLDAP
= 2- Inherited_from
- \Zend_Ldap_Node_RootDse::SERVER_TYPE_OPENLDAP
SERVER_TYPE_ACTIVEDIRECTORY
= 3- Inherited_from
- \Zend_Ldap_Node_RootDse::SERVER_TYPE_ACTIVEDIRECTORY
SERVER_TYPE_EDIRECTORY
= 4- Inherited_from
- \Zend_Ldap_Node_RootDse::SERVER_TYPE_EDIRECTORY
Properties

array $_currentData = Holds the node's current data.
Inherited from: \Zend_Ldap_Node_Abstract::$$_currentData\Zend_Ldap_Node_RootDse::$$_currentData- Type
- array
- Inherited_from
- \Zend_Ldap_Node_Abstract::$$_currentData
- Inherited_from
- \Zend_Ldap_Node_RootDse::$$_currentData

\Zend_Ldap_Dn $_dn = Holds the node's DN.
Inherited from: \Zend_Ldap_Node_Abstract::$$_dn\Zend_Ldap_Node_RootDse::$$_dn- Type
- \Zend_Ldap_Dn
- Inherited_from
- \Zend_Ldap_Node_Abstract::$$_dn
- Inherited_from
- \Zend_Ldap_Node_RootDse::$$_dn

$_systemAttributes = array('createtimestamp', 'creatorsname', 'entrycsn', 'entrydn', 'entryuuid', 'hassubordinates', 'modifiersname', 'modifytimestamp', 'structuralobjectclass', 'subschemasubentry', 'distinguishedname', 'instancetype', 'name', 'objectcategory', 'objectguid', 'usnchanged', 'usncreated', 'whenchanged', 'whencreated')array('createtimestamp', 'creatorsname', 'entrycsn', 'entrydn', 'entryuuid', 'hassubordinates', 'modifiersname', 'modifytimestamp', 'structuralobjectclass', 'subschemasubentry', 'distinguishedname', 'instancetype', 'name', 'objectcategory', 'objectguid', 'usnchanged', 'usncreated', 'whenchanged', 'whencreated')Details- Type
- n/a
- Inherited_from
- \Zend_Ldap_Node_Abstract::$$_systemAttributes
- Inherited_from
- \Zend_Ldap_Node_RootDse::$$_systemAttributes
Methods

__construct(\Zend_Ldap_Dn $dn, array $data) : void
Constructor is protected to enforce the use of factory methods.
| Name | Type | Description |
|---|---|---|
| $dn | \Zend_Ldap_Dn | |
| $data | array |

__get(string $name) : arrayGets a LDAP attribute.
Inherited from: \Zend_Ldap_Node_Abstract::__get()\Zend_Ldap_Node_RootDse::__get()This is an offline method.
| Name | Type | Description |
|---|---|---|
| $name | string |
| Type | Description |
|---|---|
| array |
| Exception | Description |
|---|---|
| \Zend_Ldap_Exception |

__isset(string $name) : booleanChecks whether a given attribute exists.
Inherited from: \Zend_Ldap_Node_Abstract::__isset()\Zend_Ldap_Node_RootDse::__isset()Empty attributes will be treated as non-existent.
| Name | Type | Description |
|---|---|---|
| $name | string |
| Type | Description |
|---|---|
| boolean |

__set(string $name, mixed $value) : nullSets a LDAP attribute.
Inherited from: \Zend_Ldap_Node_Abstract::__set()\Zend_Ldap_Node_RootDse::__set()This is an offline method.
| Name | Type | Description |
|---|---|---|
| $name | string | |
| $value | mixed |
| Type | Description |
|---|---|
| null |
| Exception | Description |
|---|---|
| \BadMethodCallException |

__toString() : stringCast to string representation {@see toString()}
Inherited from: \Zend_Ldap_Node_Abstract::__toString()\Zend_Ldap_Node_RootDse::__toString()| Type | Description |
|---|---|
| string |

__unset(string $name) : nullDeletes a LDAP attribute.
Inherited from: \Zend_Ldap_Node_Abstract::__unset()\Zend_Ldap_Node_RootDse::__unset()This method deletes the attribute.
This is an offline method.
| Name | Type | Description |
|---|---|---|
| $name | string |
| Type | Description |
|---|---|
| null |
| Exception | Description |
|---|---|
| \BadMethodCallException |

_getDn() : \Zend_Ldap_DnGets the DN of the current node as a Zend_Ldap_Dn.
Inherited from: \Zend_Ldap_Node_Abstract::_getDn()\Zend_Ldap_Node_RootDse::_getDn()This is an offline method.
| Type | Description |
|---|---|
| \Zend_Ldap_Dn |

_loadData(array $data, boolean $fromDataSource) : void
| Name | Type | Description |
|---|---|---|
| $data | array | |
| $fromDataSource | boolean |
| Exception | Description |
|---|---|
| \Zend_Ldap_Exception |

attributeHasValue(string $attribName, mixed | array $value) : booleanChecks if the given value(s) exist in the attribute
Inherited from: \Zend_Ldap_Node_Abstract::attributeHasValue()\Zend_Ldap_Node_RootDse::attributeHasValue()| Name | Type | Description |
|---|---|---|
| $attribName | string | |
| $value | mixed | array |
| Type | Description |
|---|---|
| boolean |

count() : intReturns the number of attributes in node.
Inherited from: \Zend_Ldap_Node_Abstract::count()\Zend_Ldap_Node_RootDse::count()Implements Countable
| Type | Description |
|---|---|
| int |

create(\Zend_Ldap $ldap) : \Zend_Ldap_Node_RootDseFactory method to create the RootDSE.
Inherited from: \Zend_Ldap_Node_RootDse::create()| Name | Type | Description |
|---|---|---|
| $ldap | \Zend_Ldap |
| Type | Description |
|---|---|
| \Zend_Ldap_Node_RootDse |
| Exception | Description |
|---|---|
| \Zend_Ldap_Exception |

existsAttribute(string $name, boolean $emptyExists = false) : booleanChecks whether a given attribute exists.
Inherited from: \Zend_Ldap_Node_Abstract::existsAttribute()\Zend_Ldap_Node_RootDse::existsAttribute()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.
| Name | Type | Description |
|---|---|---|
| $name | string | |
| $emptyExists | boolean |
| Type | Description |
|---|---|
| boolean |

getAttribute(string $name, integer $index = null) : mixedGets a LDAP attribute.
Inherited from: \Zend_Ldap_Node_Abstract::getAttribute()\Zend_Ldap_Node_RootDse::getAttribute()This is an offline method.
| Name | Type | Description |
|---|---|---|
| $name | string | |
| $index | integer |
| Type | Description |
|---|---|
| mixed |
| Exception | Description |
|---|---|
| \Zend_Ldap_Exception |

getAttributes(boolean $includeSystemAttributes = true) : arrayGets all attributes of node.
Inherited from: \Zend_Ldap_Node_Abstract::getAttributes()\Zend_Ldap_Node_RootDse::getAttributes()The collection contains all attributes.
This is an offline method.
| Name | Type | Description |
|---|---|---|
| $includeSystemAttributes | boolean |
| Type | Description |
|---|---|
| array |

getData(boolean $includeSystemAttributes = true) : arrayGets node attributes.
Inherited from: \Zend_Ldap_Node_Abstract::getData()\Zend_Ldap_Node_RootDse::getData()The array contains all attributes in its internal format (no conversion).
This is an offline method.
| Name | Type | Description |
|---|---|---|
| $includeSystemAttributes | boolean |
| Type | Description |
|---|---|
| array |

getDateTimeAttribute(string $name, integer $index = null) : array | integerGets a LDAP date/time attribute.
Inherited from: \Zend_Ldap_Node_Abstract::getDateTimeAttribute()\Zend_Ldap_Node_RootDse::getDateTimeAttribute()This is an offline method.
| Name | Type | Description |
|---|---|---|
| $name | string | |
| $index | integer |
| Type | Description |
|---|---|
| array | integer |
| Exception | Description |
|---|---|
| \Zend_Ldap_Exception |

getDn() : \Zend_Ldap_DnGets the DN of the current node as a Zend_Ldap_Dn.
Inherited from: \Zend_Ldap_Node_Abstract::getDn()\Zend_Ldap_Node_RootDse::getDn()The method returns a clone of the node's DN to prohibit modification.
This is an offline method.
| Type | Description |
|---|---|
| \Zend_Ldap_Dn |

getDnArray(string $caseFold = null) : arrayGets the DN of the current node as an array.
Inherited from: \Zend_Ldap_Node_Abstract::getDnArray()\Zend_Ldap_Node_RootDse::getDnArray()This is an offline method.
| Name | Type | Description |
|---|---|---|
| $caseFold | string |
| Type | Description |
|---|---|
| array |

getDnString(string $caseFold = null) : stringGets the DN of the current node as a string.
Inherited from: \Zend_Ldap_Node_Abstract::getDnString()\Zend_Ldap_Node_RootDse::getDnString()This is an offline method.
| Name | Type | Description |
|---|---|---|
| $caseFold | string |
| Type | Description |
|---|---|
| string |

getObjectClass() : arrayGets the objectClass of the node
Inherited from: \Zend_Ldap_Node_Abstract::getObjectClass()\Zend_Ldap_Node_RootDse::getObjectClass()| Type | Description |
|---|---|
| array |

getRdnArray(string $caseFold = null) : arrayGets the RDN of the current node as an array.
Inherited from: \Zend_Ldap_Node_Abstract::getRdnArray()\Zend_Ldap_Node_RootDse::getRdnArray()This is an offline method.
| Name | Type | Description |
|---|---|---|
| $caseFold | string |
| Type | Description |
|---|---|
| array |

getRdnString(string $caseFold = null) : stringGets the RDN of the current node as a string.
Inherited from: \Zend_Ldap_Node_Abstract::getRdnString()\Zend_Ldap_Node_RootDse::getRdnString()This is an offline method.
| Name | Type | Description |
|---|---|---|
| $caseFold | string |
| Type | Description |
|---|---|
| string |

getStatisticsAbandonOps() : string | nullGets the server statistics "abandonOps".
| Type | Description |
|---|---|
| string | null |

getStatisticsChainings() : string | nullGets the server statistics "chainings".
| Type | Description |
|---|---|
| string | null |

getStatisticsErrors() : string | nullGets the server statistics "errors".
| Type | Description |
|---|---|
| string | null |

getStatisticsExtendedOps() : string | nullGets the server statistics "extendedOps".
| Type | Description |
|---|---|
| string | null |

getStatisticsReferralsReturned() : string | nullGets the server statistics "referralsReturned".
| Type | Description |
|---|---|
| string | null |

getStatisticsSecurityErrors() : string | nullGets the server statistics "securityErrors".
| Type | Description |
|---|---|
| string | null |

getStatisticsWholeSubtreeSearchOps() : string | nullGets the server statistics "wholeSubtreeSearchOps".
| Type | Description |
|---|---|
| string | null |

getSubschemaSubentry() : string | nullGets the subschemaSubentry.
Inherited from: \Zend_Ldap_Node_RootDse::getSubschemaSubentry()| Type | Description |
|---|---|
| string | null |

offsetExists(string $name) : booleanChecks whether a given attribute exists.
Inherited from: \Zend_Ldap_Node_Abstract::offsetExists()\Zend_Ldap_Node_RootDse::offsetExists()Implements ArrayAccess.
Empty attributes will be treated as non-existent.
| Name | Type | Description |
|---|---|---|
| $name | string |
| Type | Description |
|---|---|
| boolean |

offsetGet(string $name) : arrayGets a LDAP attribute.
Inherited from: \Zend_Ldap_Node_Abstract::offsetGet()\Zend_Ldap_Node_RootDse::offsetGet()Implements ArrayAccess.
This is an offline method.
| Name | Type | Description |
|---|---|---|
| $name | string |
| Type | Description |
|---|---|
| array |
| Exception | Description |
|---|---|
| \Zend_Ldap_Exception |

offsetSet(string $name, mixed $value) : nullSets a LDAP attribute.
Inherited from: \Zend_Ldap_Node_Abstract::offsetSet()\Zend_Ldap_Node_RootDse::offsetSet()Implements ArrayAccess.
This is an offline method.
| Name | Type | Description |
|---|---|---|
| $name | string | |
| $value | mixed |
| Type | Description |
|---|---|
| null |
| Exception | Description |
|---|---|
| \BadMethodCallException |

offsetUnset(string $name) : nullDeletes a LDAP attribute.
Inherited from: \Zend_Ldap_Node_Abstract::offsetUnset()\Zend_Ldap_Node_RootDse::offsetUnset()Implements ArrayAccess.
This method deletes the attribute.
This is an offline method.
| Name | Type | Description |
|---|---|---|
| $name | string |
| Type | Description |
|---|---|
| null |
| Exception | Description |
|---|---|
| \BadMethodCallException |

reload(\Zend_Ldap $ldap = null) : \Zend_Ldap_Node_AbstractReload node attributes from LDAP.
Inherited from: \Zend_Ldap_Node_Abstract::reload()\Zend_Ldap_Node_RootDse::reload()This is an online method.
| Name | Type | Description |
|---|---|---|
| $ldap | \Zend_Ldap |
| Type | Description |
|---|---|
| \Zend_Ldap_Node_Abstract | Provides a fluid interface |
| Exception | Description |
|---|---|
| \Zend_Ldap_Exception |

supportsExtension(string | array $oids) : booleanDetermines if the extension is supported
| Name | Type | Description |
|---|---|---|
| $oids | string | array | oid(s) to check |
| Type | Description |
|---|---|
| boolean |

supportsSaslMechanism(string | array $mechlist) : booleanDetermines if the sasl mechanism is supported
Inherited from: \Zend_Ldap_Node_RootDse::supportsSaslMechanism()| Name | Type | Description |
|---|---|---|
| $mechlist | string | array | SASL mechanisms to check |
| Type | Description |
|---|---|
| boolean |

supportsVersion(string | int | array $versions) : booleanDetermines if the version is supported
Inherited from: \Zend_Ldap_Node_RootDse::supportsVersion()| Name | Type | Description |
|---|---|---|
| $versions | string | int | array | version(s) to check |
| Type | Description |
|---|---|
| boolean |

toArray(boolean $includeSystemAttributes = true) : arrayReturns an array representation of the current node
Inherited from: \Zend_Ldap_Node_Abstract::toArray()\Zend_Ldap_Node_RootDse::toArray()| Name | Type | Description |
|---|---|---|
| $includeSystemAttributes | boolean |
| Type | Description |
|---|---|
| array |

toJson(boolean $includeSystemAttributes = true) : stringReturns a JSON representation of the current node
Inherited from: \Zend_Ldap_Node_Abstract::toJson()\Zend_Ldap_Node_RootDse::toJson()| Name | Type | Description |
|---|---|---|
| $includeSystemAttributes | boolean |
| Type | Description |
|---|---|
| string |

toString() : stringReturns the DN of the current node.
Inherited from: \Zend_Ldap_Node_Abstract::toString()\Zend_Ldap_Node_RootDse::toString(){@see getDnString()}
| Type | Description |
|---|---|
| string |