1: <?php
2: /**
3: * This interface represents the user database behind the free/busy system.
4: *
5: * PHP version 5
6: *
7: * @category Kolab
8: * @package Kolab_FreeBusy
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_FreeBusy
12: */
13:
14: /**
15: * This interface represents the user database behind the free/busy system.
16: *
17: * Copyright 2010 Kolab Systems AG
18: *
19: * See the enclosed file COPYING for license information (LGPL). If you did not
20: * receive this file, see
21: * http://www.horde.org/licenses/lgpl21.
22: *
23: * @category Kolab
24: * @package Kolab_FreeBusy
25: * @author Gunnar Wrobel <wrobel@pardus.de>
26: * @license http://www.horde.org/licenses/lgpl21 LGPL 2.1
27: * @link http://pear.horde.org/index.php?package=Kolab_FreeBusy
28: */
29: interface Horde_Kolab_FreeBusy_UserDb
30: {
31: /**
32: * Fetch a user representation from the user database.
33: *
34: * @param string $user The user name.
35: * @param string $pass An optional user password.
36: *
37: * @return Horde_Kolab_FreeBusy_User The user representation.
38: */
39: public function getUser($user, $pass = null);
40:
41: /**
42: * Fetch an owner representation from the user database.
43: *
44: * @param string $owner The owner name.
45: * @param array $params Additonal parameters.
46: *
47: * @return Horde_Kolab_FreeBusy_Owner The owner representation.
48: */
49: public function getOwner($owner, $params = array());
50: }
51: