$_server
$_server : \Horde_Kolab_Server
The server we delegate to.
A server delegation that maps object attributes.
Copyright 2008-2017 Horde LLC (http://www.horde.org/)
See the enclosed file LICENSE for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.
connect(string $user = null, string $pass = null) : \NULL.
Connect to the server. Use this method if the user name you can provide does not match a GUID. In this case it will be required to map this user name first.
string | $user | The user name. |
string | $pass | The password. |
If the connection failed.
read(string $guid, array $attrs = array()) : array
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).
string | $guid | The object to retrieve. |
array | $attrs | Restrict to these attributes. |
If the search operation hit an error or returned no result.
An array of attributes.
findBelow(string $query, string $parent, array $params = array()) : array
Finds all object data below a parent matching a given set of criteria.
string | $query | The LDAP search query |
string | $parent | The parent to search below. |
array | $params | Additional search parameters. |
The result array.
save(\Horde_Kolab_Server_Object_Interface $object, array $data) : NULL
Modify existing object data.
\Horde_Kolab_Server_Object_Interface | $object | The object to be modified. |
array | $data | The attributes of the object to be added. |
add(\Horde_Kolab_Server_Object_Interface $object, array $data) : NULL
Add new object data.
\Horde_Kolab_Server_Object_Interface | $object | The object to be added. |
array | $data | The attributes of the object to be added. |