Ldap/Node/RootDse/OpenLdap.php

Show: PublicProtectedPrivateinherited
Table of Contents
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.

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: OpenLdap.php 24593 2012-01-05 20:35:02Z matthew $  

\Zend_Ldap_Node_RootDse_OpenLdap

Package: Zend\Ldap\RootDSE
Zend_Ldap_Node_RootDse provides a simple data-container for the RootDSE node of an OpenLDAP 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

>VConstant  SERVER_TYPE_GENERIC = 1
>VConstant  SERVER_TYPE_OPENLDAP = 2
>VConstant  SERVER_TYPE_ACTIVEDIRECTORY = 3
>VConstant  SERVER_TYPE_EDIRECTORY = 4

Properties

>VPropertyprotectedarray $_currentData
inherited
Holds the node's current data.
Inherited from: \Zend_Ldap_Node_Abstract::$$_currentData\Zend_Ldap_Node_RootDse::$$_currentData
>VPropertyprotected\Zend_Ldap_Dn $_dn
inherited
Holds the node's DN.
Inherited from: \Zend_Ldap_Node_Abstract::$$_dn\Zend_Ldap_Node_RootDse::$$_dn
>VPropertyprotected$_systemAttributes = array('createtimestamp', 'creatorsname', 'entrycsn', 'entrydn', 'entryuuid', 'hassubordinates', 'modifiersname', 'modifytimestamp', 'structuralobjectclass', 'subschemasubentry', 'distinguishedname', 'instancetype', 'name', 'objectcategory', 'objectguid', 'usnchanged', 'usncreated', 'whenchanged', 'whencreated')
Default valuearray('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

methodprotected__construct(\Zend_Ldap_Dn $dn, array $data) : void
inherited

Constructor.

Inherited from: \Zend_Ldap_Node_RootDse::__construct()

Constructor is protected to enforce the use of factory methods.

Parameters
NameTypeDescription
$dn\Zend_Ldap_Dn
$dataarray
methodpublic__get(string $name) : array
inherited

Gets a LDAP attribute.

Inherited from: \Zend_Ldap_Node_Abstract::__get()\Zend_Ldap_Node_RootDse::__get()

This is an offline method.

Parameters
NameTypeDescription
$namestring
Returns
TypeDescription
array
Throws
ExceptionDescription
\Zend_Ldap_Exception
methodpublic__isset(string $name) : boolean
inherited

Checks 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.

Parameters
NameTypeDescription
$namestring
Returns
TypeDescription
boolean
methodpublic__set(string $name, mixed $value) : null
inherited

Sets a LDAP attribute.

Inherited from: \Zend_Ldap_Node_Abstract::__set()\Zend_Ldap_Node_RootDse::__set()

This is an offline method.

Parameters
NameTypeDescription
$namestring
$valuemixed
Returns
TypeDescription
null
Throws
ExceptionDescription
\BadMethodCallException
methodpublic__toString() : string
inherited

Cast to string representation {@see toString()}

Inherited from: \Zend_Ldap_Node_Abstract::__toString()\Zend_Ldap_Node_RootDse::__toString()
Returns
TypeDescription
string
methodpublic__unset(string $name) : null
inherited

Deletes 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.

Parameters
NameTypeDescription
$namestring
Returns
TypeDescription
null
Throws
ExceptionDescription
\BadMethodCallException
methodprotected_getDn() : \Zend_Ldap_Dn
inherited

Gets 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.

Returns
TypeDescription
\Zend_Ldap_Dn
methodprotected_loadData(array $data, boolean $fromDataSource) : void
Parameters
NameTypeDescription
$dataarray
$fromDataSourceboolean
Throws
ExceptionDescription
\Zend_Ldap_Exception
methodpublicattributeHasValue(string $attribName, mixed | array $value) : boolean
inherited

Checks if the given value(s) exist in the attribute

Inherited from: \Zend_Ldap_Node_Abstract::attributeHasValue()\Zend_Ldap_Node_RootDse::attributeHasValue()
Parameters
NameTypeDescription
$attribNamestring
$valuemixed | array
Returns
TypeDescription
boolean
methodpubliccount() : int
inherited

Returns the number of attributes in node.

Inherited from: \Zend_Ldap_Node_Abstract::count()\Zend_Ldap_Node_RootDse::count()

Implements Countable

Returns
TypeDescription
int
methodpubliccreate(\Zend_Ldap $ldap) : \Zend_Ldap_Node_RootDse
staticinherited

Factory method to create the RootDSE.

Inherited from: \Zend_Ldap_Node_RootDse::create()
Parameters
NameTypeDescription
$ldap\Zend_Ldap
Returns
TypeDescription
\Zend_Ldap_Node_RootDse
Throws
ExceptionDescription
\Zend_Ldap_Exception
methodpublicexistsAttribute(string $name, boolean $emptyExists = false) : boolean
inherited

Checks 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.

Parameters
NameTypeDescription
$namestring
$emptyExistsboolean
Returns
TypeDescription
boolean
methodpublicgetAttribute(string $name, integer $index = null) : mixed

This is an offline method.

Parameters
NameTypeDescription
$namestring
$indexinteger
Returns
TypeDescription
mixed
Throws
ExceptionDescription
\Zend_Ldap_Exception
methodpublicgetAttributes(boolean $includeSystemAttributes = true) : array

The collection contains all attributes.

This is an offline method.

Parameters
NameTypeDescription
$includeSystemAttributesboolean
Returns
TypeDescription
array
methodpublicgetConfigContext() : string | null

Gets the configContext.

Returns
TypeDescription
string | null
methodpublicgetData(boolean $includeSystemAttributes = true) : array
inherited

Gets 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.

Parameters
NameTypeDescription
$includeSystemAttributesboolean
Returns
TypeDescription
array
methodpublicgetDateTimeAttribute(string $name, integer $index = null) : array | integer

This is an offline method.

Parameters
NameTypeDescription
$namestring
$indexinteger
Returns
TypeDescription
array | integer
Throws
ExceptionDescription
\Zend_Ldap_Exception
methodpublicgetDn() : \Zend_Ldap_Dn
inherited

Gets 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.

Returns
TypeDescription
\Zend_Ldap_Dn
methodpublicgetDnArray(string $caseFold = null) : array
inherited

Gets 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.

Parameters
NameTypeDescription
$caseFoldstring
Returns
TypeDescription
array
methodpublicgetDnString(string $caseFold = null) : string
inherited

Gets 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.

Parameters
NameTypeDescription
$caseFoldstring
Returns
TypeDescription
string
methodpublicgetMonitorContext() : string | null

Gets the monitorContext.

Returns
TypeDescription
string | null
methodpublicgetNamingContexts() : array
inherited

Gets the namingContexts.

Inherited from: \Zend_Ldap_Node_RootDse::getNamingContexts()
Returns
TypeDescription
array
methodpublicgetObjectClass() : array
inherited

Gets the objectClass of the node

Inherited from: \Zend_Ldap_Node_Abstract::getObjectClass()\Zend_Ldap_Node_RootDse::getObjectClass()
Returns
TypeDescription
array
methodpublicgetRdnArray(string $caseFold = null) : array
inherited

Gets 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.

Parameters
NameTypeDescription
$caseFoldstring
Returns
TypeDescription
array
methodpublicgetRdnString(string $caseFold = null) : string
inherited

Gets 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.

Parameters
NameTypeDescription
$caseFoldstring
Returns
TypeDescription
string
methodpublicgetSchemaDn() : \Zend_Ldap_Dn
inherited

Returns the schema DN

Inherited from: \Zend_Ldap_Node_RootDse::getSchemaDn()
Returns
TypeDescription
\Zend_Ldap_Dn
methodpublicgetServerType() : int

Gets the server type

Returns
TypeDescription
int
methodpublicgetSubschemaSubentry() : string | null
inherited

Gets the subschemaSubentry.

Inherited from: \Zend_Ldap_Node_RootDse::getSubschemaSubentry()
Returns
TypeDescription
string | null
methodpublicoffsetExists(string $name) : boolean
inherited

Checks 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.

Parameters
NameTypeDescription
$namestring
Returns
TypeDescription
boolean
methodpublicoffsetGet(string $name) : array

Implements ArrayAccess.

This is an offline method.

Parameters
NameTypeDescription
$namestring
Returns
TypeDescription
array
Throws
ExceptionDescription
\Zend_Ldap_Exception
methodpublicoffsetSet(string $name, mixed $value) : null

Implements ArrayAccess.

This is an offline method.

Parameters
NameTypeDescription
$namestring
$valuemixed
Returns
TypeDescription
null
Throws
ExceptionDescription
\BadMethodCallException
methodpublicoffsetUnset(string $name) : null

Implements ArrayAccess.

This method deletes the attribute.

This is an offline method.

Parameters
NameTypeDescription
$namestring
Returns
TypeDescription
null
Throws
ExceptionDescription
\BadMethodCallException
methodpublicreload(\Zend_Ldap $ldap = null) : \Zend_Ldap_Node_Abstract
inherited

Reload node attributes from LDAP.

Inherited from: \Zend_Ldap_Node_Abstract::reload()\Zend_Ldap_Node_RootDse::reload()

This is an online method.

Parameters
NameTypeDescription
$ldap\Zend_Ldap
Returns
TypeDescription
\Zend_Ldap_Node_AbstractProvides a fluid interface
Throws
ExceptionDescription
\Zend_Ldap_Exception
methodpublicsupportsControl(string | array $oids) : boolean

Determines if the control is supported

Parameters
NameTypeDescription
$oidsstring | array

control oid(s) to check

Returns
TypeDescription
boolean
methodpublicsupportsExtension(string | array $oids) : boolean

Determines if the extension is supported

Parameters
NameTypeDescription
$oidsstring | array

oid(s) to check

Returns
TypeDescription
boolean
methodpublicsupportsFeature(string | array $oids) : boolean

Determines if the feature is supported

Parameters
NameTypeDescription
$oidsstring | array

feature oid(s) to check

Returns
TypeDescription
boolean
methodpublicsupportsSaslMechanism(string | array $mechlist) : boolean
inherited

Determines if the sasl mechanism is supported

Inherited from: \Zend_Ldap_Node_RootDse::supportsSaslMechanism()
Parameters
NameTypeDescription
$mechliststring | array

SASL mechanisms to check

Returns
TypeDescription
boolean
methodpublicsupportsVersion(string | int | array $versions) : boolean
inherited

Determines if the version is supported

Inherited from: \Zend_Ldap_Node_RootDse::supportsVersion()
Parameters
NameTypeDescription
$versionsstring | int | array

version(s) to check

Returns
TypeDescription
boolean
methodpublictoArray(boolean $includeSystemAttributes = true) : array
inherited

Returns an array representation of the current node

Inherited from: \Zend_Ldap_Node_Abstract::toArray()\Zend_Ldap_Node_RootDse::toArray()
Parameters
NameTypeDescription
$includeSystemAttributesboolean
Returns
TypeDescription
array
methodpublictoJson(boolean $includeSystemAttributes = true) : string
inherited

Returns a JSON representation of the current node

Inherited from: \Zend_Ldap_Node_Abstract::toJson()\Zend_Ldap_Node_RootDse::toJson()
Parameters
NameTypeDescription
$includeSystemAttributesboolean
Returns
TypeDescription
string
methodpublictoString() : string
inherited

Returns the DN of the current node.

Inherited from: \Zend_Ldap_Node_Abstract::toString()\Zend_Ldap_Node_RootDse::toString()

{@see getDnString()}

Returns
TypeDescription
string
Documentation was generated by phpDocumentor 2.0.0a12.