Class Horde_Kolab_Server_Ldap
This class provides methods to deal with objects stored in
a LDAP db.
Copyright 2008-2012 Horde LLC (http://www.horde.org/)
See the enclosed file COPYING for license information (LGPL). If you
did not receive this file, see http://www.horde.org/licenses/lgpl21.
-
Horde_Kolab_Server_Ldap
implements
Horde_Kolab_Server_Interface
Methods summary
public
|
|
public
NULL.
|
#
connectGuid( string $guid = '', string $pass = '' )
Connect to the server.
Parameters
- $guid
- The global unique id of the user.
- $pass
- The password.
Returns
NULL.
Throws
Implementation of
|
public
string
|
#
getGuid( )
Get the current GUID
Returns
string The GUID of the connected user.
Implementation of
|
public
string
|
#
getBaseGuid( )
Get the base GUID of this server
Get the base GUID of this server
Returns
string The base GUID of this server.
Implementation of
|
public
array
|
#
read( string $guid )
Low level access to reading object data.
Low level access to reading object data.
Parameters
- $guid
- The object to retrieve.
Returns
array An array of attributes.
Throws
Implementation of
|
public
array
|
#
readAttributes( string $guid, array $attrs )
Low level access to reading some object attributes.
Low level access to reading some object attributes.
Parameters
- $guid
- The object to retrieve.
- $attrs
- Restrict to these attributes.
Returns
array An array of attributes.
Throws
Implementation of
|
public
Horde_Kolab_Server_Result
|
#
find( string $query, array $params = array() )
Finds object data matching a given set of criteria.
Finds object data matching a given set of criteria.
Parameters
- $query
- The LDAP search query
- $params
- Additional search parameters.
Returns
Horde_Kolab_Server_Result The result object.
Throws
Implementation of
|
public
null
|
#
save( Horde_Kolab_Server_Object_Interface $object, array $data )
Modify existing object data.
Modify existing object data.
Parameters
- $object
- The object to be modified.
- $data
- <p>The attributes of the object
to be stored.</p>
Returns
null
Throws
Implementation of
|
public
null
|
#
add( Horde_Kolab_Server_Object_Interface $object, array $data )
Add new object data.
Parameters
- $object
- The object to be added.
- $data
- <p>The attributes of the object
to be added.</p>
Returns
null
Throws
Implementation of
|
public
null
|
#
delete( string $guid )
Delete an object.
Parameters
- $guid
- The UID of the object to be deleted.
Returns
null
Throws
Implementation of
|
public
null
|
#
rename( string $guid, string $new )
Rename an object.
Parameters
- $guid
- The UID of the object to be renamed.
- $new
- The new UID of the object.
Returns
null
Throws
Implementation of
|
public
Horde_Ldap_Schema
|
#
getSchema( )
Return the ldap schema.
Returns
Horde_Ldap_Schema The LDAP schema.
Throws
Implementation of
|
public
string
|
#
getParentGuid( string $guid )
Get the parent GUID of this object.
Get the parent GUID of this object.
Parameters
- $guid
- The GUID of the child.
Returns
string the parent GUID of this object.
Implementation of
|