1: <?php
2: /**
3: * Indicates a tentatively accepted invitation.
4: *
5: * PHP version 5
6: *
7: * @category Horde
8: * @package Itip
9: * @author Gunnar Wrobel <wrobel@pardus.de>
10: * @license http://www.horde.org/licenses/lgpl21 LGPL
11: * @link http://pear.horde.org/index.php?package=Itip
12: */
13:
14: /**
15: * Indicates a tentatively accepted invitation.
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: * {@link http://www.horde.org/licenses/lgpl21 LGPL}.
22: *
23: * @category Horde
24: * @package Itip
25: * @author Gunnar Wrobel <wrobel@pardus.de>
26: * @license http://www.horde.org/licenses/lgpl21 LGPL
27: * @link http://pear.horde.org/index.php?package=Itip
28: */
29: class Horde_Itip_Response_Type_Tentative
30: extends Horde_Itip_Response_Type_Base
31: {
32: /**
33: * Return the status of the response.
34: *
35: * @return string The status.
36: */
37: public function getStatus()
38: {
39: return 'TENTATIVE';
40: }
41:
42: /**
43: * Return the abbreviated subject of the response.
44: *
45: * @return string The short subject.
46: */
47: public function getShortSubject()
48: {
49: return Horde_Itip_Translation::t("Tentative");
50: }
51:
52: /**
53: * Return the short message for the response.
54: *
55: * @param boolean $is_update Indicates if the request was an update.
56: *
57: * @return string The short message.
58: */
59: public function getShortMessage($is_update = false)
60: {
61: return $is_update
62: ? Horde_Itip_Translation::t("has tentatively accepted the update to the following event")
63: : Horde_Itip_Translation::t("has tentatively accepted the invitation to the following event");
64: }
65: }