1: <?php
2: /**
3: * The anonymous user.
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: * The anonymous user.
16: *
17: * Copyright 2011-2012 Horde LLC (http://www.horde.org/)
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: class Horde_Kolab_FreeBusy_User_Anonymous
30: implements Horde_Kolab_FreeBusy_User
31: {
32: /**
33: * Return the primary id of the user accessing the system.
34: *
35: * @return string The primary id.
36: */
37: public function getPrimaryId()
38: {
39: return '';
40: }
41:
42: /**
43: * Return the password of the user accessing the system.
44: *
45: * @return string The password.
46: */
47: public function getPassword()
48: {
49: return '';
50: }
51:
52: /**
53: * Return the primary domain of the user accessing the system.
54: *
55: * @return string The primary domain.
56: */
57: public function getDomain()
58: {
59: return '';
60: }
61:
62: /**
63: * Return the groups this user is member of.
64: *
65: * @return array The groups for this user.
66: */
67: public function getGroups()
68: {
69: return array();
70: }
71:
72: /**
73: * Finds out if a set of login credentials are valid.
74: *
75: * @return boolean Whether or not the password was correct.
76: */
77: public function isAuthenticated()
78: {
79: return false;
80: }
81: }