1: <?php
2: /**
3: * A simple LDAP setup without read-only slaves.
4: *
5: * PHP version 5
6: *
7: * @category Kolab
8: * @package Kolab_Server
9: * @author Gunnar Wrobel <wrobel@pardus.de>
10: * @license http://www.horde.org/licenses/lgpl21 LGPL 2.1
11: * @link http://pear.horde.org/index.php?package=Kolab_Server
12: */
13:
14: /**
15: * A simple LDAP setup without read-only slaves.
16: *
17: * Copyright 2008-2012 Horde LLC (http://www.horde.org/)
18: *
19: * See the enclosed file COPYING for license information (LGPL). If you
20: * did not receive this file, see http://www.horde.org/licenses/lgpl21.
21: *
22: * @category Kolab
23: * @package Kolab_Server
24: * @author Gunnar Wrobel <wrobel@pardus.de>
25: * @license http://www.horde.org/licenses/lgpl21 LGPL 2.1
26: * @link http://pear.horde.org/index.php?package=Kolab_Server
27: */
28: class Horde_Kolab_Server_Connection_Simpleldap
29: implements Horde_Kolab_Server_Connection_Interface
30: {
31: /**
32: * The LDAP connection handle.
33: *
34: * @var Horde_Ldap
35: */
36: private $_ldap;
37:
38: /**
39: * Constructor
40: *
41: * @param Horde_Ldap $ldap The ldap connection.
42: */
43: public function __construct(Horde_Ldap $ldap)
44: {
45: $this->_ldap = $ldap;
46: }
47:
48: /**
49: * Get the server read connection.
50: *
51: * @return mixed The connection for reading data.
52: */
53: public function getRead()
54: {
55: return $this->_ldap;
56: }
57:
58: /**
59: * Get the server write connection.
60: *
61: * @return mixed The connection for writing data.
62: */
63: public function getWrite()
64: {
65: return $this->_ldap;
66: }
67: }