This class defines the interface of a generic Kolab user database.
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.
Methods summary
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
|
public
string
|
#
getGuid( )
Get the current GUID
Returns
string The GUID of the currently connected user.
|
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.
|
public
array
|
#
read( string $guid )
Low level access to reading object data.
Low level access to reading object data.
This function provides direct access to the Server data.
Usually you should use
$object = $server->fetch('a server uid');
$variable = $object['attribute']
to access object attributes. This is slower but takes special object
handling into account (e.g. custom attribute parsing).
Parameters
- $guid
- The object to retrieve.
Returns
array An array of attributes.
Throws
|
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
See
Horde_Kolab_Server::read
|
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
|
public
Horde_Kolab_Server_Result
|
#
findBelow( string $query, string $parent, array $params = array() )
Finds all object data below a parent matching a given set of criteria.
Finds all object data below a parent matching a given set of criteria.
Parameters
- $query
- The LDAP search query
- $parent
- The parent to search below.
- $params
- Additional search parameters.
Returns
Horde_Kolab_Server_Result The result object.
Throws
|
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
|
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
|
public
null
|
#
delete( string $guid )
Delete an object.
Parameters
- $guid
- The GUID of the object to be deleted.
Returns
null
Throws
|
public
null
|
#
rename( string $guid, string $new )
Rename an object.
Parameters
- $guid
- The GUID of the object to be renamed.
- $new
- The new GUID of the object.
Returns
null
Throws
|
public
array
|
#
getSchema( )
Return the database schema description.
Return the database schema description.
Returns
array The schema.
Throws
|
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.
|