Ldap/Node/Abstract.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-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Ldap  
Subpackage
Node  
Version
$Id$  

\Zend_Ldap_Node_Abstract

Package: Zend_Ldap\Node
Zend_Ldap_Node_Abstract provides a bas eimplementation for LDAP nodes
Implements
Children
\Zend_Ldap_Node
\Zend_Ldap_Node_RootDse
\Zend_Ldap_Node_Schema
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Properties

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

Methods

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

Constructor.

Constructor is protected to enforce the use of factory methods.
Parameters
NameTypeDescription
$dn\Zend_Ldap_Dn
$dataarray
$fromDataSourceboolean
methodpublic__get(string $name) : array

Gets a LDAP attribute.

This is an offline method.
Parameters
NameTypeDescription
$namestring
Returns
TypeDescription
array
Throws
ExceptionDescription
\Zend_Ldap_Exception
methodpublic__isset(string $name) : boolean

Checks whether a given attribute exists.

Empty attributes will be treated as non-existent.
Parameters
NameTypeDescription
$namestring
Returns
TypeDescription
boolean
methodpublic__set(string $name, mixed $value) : null

Sets a LDAP attribute.

This is an offline method.
Parameters
NameTypeDescription
$namestring
$valuemixed
Returns
TypeDescription
null
Throws
ExceptionDescription
\BadMethodCallException
methodpublic__toString() : string

Cast to string representation {@see toString()}

Returns
TypeDescription
string
methodpublic__unset(string $name) : null

Deletes a LDAP attribute.

This method deletes the attribute. This is an offline method.
Parameters
NameTypeDescription
$namestring
Returns
TypeDescription
null
Throws
ExceptionDescription
\BadMethodCallException
methodprotected_getDn() : \Zend_Ldap_Dn

Gets the DN of the current node as a Zend_Ldap_Dn.

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

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

Parameters
NameTypeDescription
$attribNamestring
$valuemixed | array
Returns
TypeDescription
boolean
methodpubliccount() : int

Returns the number of attributes in node.

Implements Countable
Returns
TypeDescription
int
methodpublicexistsAttribute(string $name, boolean $emptyExists = false) : boolean

Checks whether a given attribute exists.

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

Gets a LDAP attribute.

This is an offline method.
Parameters
NameTypeDescription
$namestring
$indexinteger
Returns
TypeDescription
mixed
Throws
ExceptionDescription
\Zend_Ldap_Exception
methodpublicgetAttributes(boolean $includeSystemAttributes = true) : array

Gets all attributes of node.

The collection contains all attributes. This is an offline method.
Parameters
NameTypeDescription
$includeSystemAttributesboolean
Returns
TypeDescription
array
methodpublicgetData(boolean $includeSystemAttributes = true) : array

Gets node attributes.

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

Gets a LDAP date/time attribute.

This is an offline method.
Parameters
NameTypeDescription
$namestring
$indexinteger
Returns
TypeDescription
array | integer
Throws
ExceptionDescription
\Zend_Ldap_Exception
methodpublicgetDn() : \Zend_Ldap_Dn

Gets the DN of the current node as a Zend_Ldap_Dn.

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

Gets the DN of the current node as an array.

This is an offline method.
Parameters
NameTypeDescription
$caseFoldstring
Returns
TypeDescription
array
methodpublicgetDnString(string $caseFold = null) : string

Gets the DN of the current node as a string.

This is an offline method.
Parameters
NameTypeDescription
$caseFoldstring
Returns
TypeDescription
string
methodpublicgetObjectClass() : array

Gets the objectClass of the node

Returns
TypeDescription
array
methodpublicgetRdnArray(string $caseFold = null) : array

Gets the RDN of the current node as an array.

This is an offline method.
Parameters
NameTypeDescription
$caseFoldstring
Returns
TypeDescription
array
methodpublicgetRdnString(string $caseFold = null) : string

Gets the RDN of the current node as a string.

This is an offline method.
Parameters
NameTypeDescription
$caseFoldstring
Returns
TypeDescription
string
methodpublicoffsetExists(string $name) : boolean

Checks whether a given attribute exists.

Implements ArrayAccess. Empty attributes will be treated as non-existent.
Parameters
NameTypeDescription
$namestring
Returns
TypeDescription
boolean
methodpublicoffsetGet(string $name) : array

Gets a LDAP attribute.

Implements ArrayAccess. This is an offline method.
Parameters
NameTypeDescription
$namestring
Returns
TypeDescription
array
Throws
ExceptionDescription
\Zend_Ldap_Exception
methodpublicoffsetSet(string $name, mixed $value) : null

Sets a LDAP attribute.

Implements ArrayAccess. This is an offline method.
Parameters
NameTypeDescription
$namestring
$valuemixed
Returns
TypeDescription
null
Throws
ExceptionDescription
\BadMethodCallException
methodpublicoffsetUnset(string $name) : null

Deletes a LDAP attribute.

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

Reload node attributes from LDAP.

This is an online method.
Parameters
NameTypeDescription
$ldap\Zend_Ldap
Returns
TypeDescription
\Zend_Ldap_Node_AbstractProvides a fluid interface
Throws
ExceptionDescription
\Zend_Ldap_Exception
methodpublictoArray(boolean $includeSystemAttributes = true) : array

Returns an array representation of the current node

Parameters
NameTypeDescription
$includeSystemAttributesboolean
Returns
TypeDescription
array
methodpublictoJson(boolean $includeSystemAttributes = true) : string

Returns a JSON representation of the current node

Parameters
NameTypeDescription
$includeSystemAttributesboolean
Returns
TypeDescription
string
methodpublictoString() : string

Returns the DN of the current node. {@see getDnString()}

Returns
TypeDescription
string
Documentation was generated by phpDocumentor 2.2.0 .