PHP Класс Horde_Kolab_Server_Ldap, horde

Copyright 2008-2016 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.
Автор: Gunnar Wrobel ([email protected])
Наследование: implements Horde_Kolab_Server_Interface
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( Horde_Kolab_Server_Connection_Interface $connection, string $base_dn ) Constructor.
add ( Horde_Kolab_Server_Object_Interface $object, array $data ) : null Add new object data.
connectGuid ( string $guid = '', string $pass = '' ) : NULL. Connect to the server.
delete ( string $guid ) : null Delete an object.
find ( string $query, array $params = [] ) : Horde_Kolab_Server_Result Finds object data matching a given set of criteria.
getBaseGuid ( ) : string Get the base GUID of this server
getGuid ( ) : string Get the current GUID
getParentGuid ( string $guid ) : string Get the parent GUID of this object.
getSchema ( ) : Horde_Ldap_Schema Return the ldap schema.
read ( string $guid ) : array Low level access to reading object data.
readAttributes ( string $guid, array $attrs ) : array Low level access to reading some object attributes.
rename ( string $guid, string $new ) : null Rename an object.
save ( Horde_Kolab_Server_Object_Interface $object, array $data ) : null Modify existing object data.

Защищенные методы

Метод Описание
_search ( string $filter, array $params, string $base ) : array Search for object data.

Описание методов

__construct() публичный Метод

Constructor.
public __construct ( Horde_Kolab_Server_Connection_Interface $connection, string $base_dn )
$connection Horde_Kolab_Server_Connection_Interface The LDAP connection.
$base_dn string The LDAP server base DN.

add() публичный Метод

Add new object data.
public add ( Horde_Kolab_Server_Object_Interface $object, array $data ) : null
$object Horde_Kolab_Server_Object_Interface The object to be added.
$data array The attributes of the object to be added.
Результат null

connectGuid() публичный Метод

Connect to the server.
public connectGuid ( string $guid = '', string $pass = '' ) : NULL.
$guid string The global unique id of the user.
$pass string The password.
Результат NULL.

delete() публичный Метод

Delete an object.
public delete ( string $guid ) : null
$guid string The UID of the object to be deleted.
Результат null

find() публичный Метод

Finds object data matching a given set of criteria.
public find ( string $query, array $params = [] ) : Horde_Kolab_Server_Result
$query string The LDAP search query
$params array Additional search parameters.
Результат Horde_Kolab_Server_Result The result object.

getBaseGuid() публичный Метод

Get the base GUID of this server
public getBaseGuid ( ) : string
Результат string The base GUID of this server.

getGuid() публичный Метод

Get the current GUID
public getGuid ( ) : string
Результат string The GUID of the connected user.

getParentGuid() публичный Метод

Get the parent GUID of this object.
public getParentGuid ( string $guid ) : string
$guid string The GUID of the child.
Результат string the parent GUID of this object.

getSchema() публичный Метод

Return the ldap schema.
public getSchema ( ) : Horde_Ldap_Schema
Результат Horde_Ldap_Schema The LDAP schema.

read() публичный Метод

Low level access to reading object data.
public read ( string $guid ) : array
$guid string The object to retrieve.
Результат array An array of attributes.

readAttributes() публичный Метод

Low level access to reading some object attributes.
public readAttributes ( string $guid, array $attrs ) : array
$guid string The object to retrieve.
$attrs array Restrict to these attributes.
Результат array An array of attributes.

rename() публичный Метод

Rename an object.
public rename ( string $guid, string $new ) : null
$guid string The UID of the object to be renamed.
$new string The new UID of the object.
Результат null

save() публичный Метод

Modify existing object data.
public save ( Horde_Kolab_Server_Object_Interface $object, array $data ) : null
$object Horde_Kolab_Server_Object_Interface The object to be modified.
$data array The attributes of the object to be stored.
Результат null