1: <?php
2: /**
3: * Holds iTip response options.
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: * Holds iTip response options.
16: *
17: * Copyright 2010-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: * {@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: abstract class Horde_Itip_Response_Options_Base
30: implements Horde_Itip_Response_Options
31: {
32: /**
33: * Prepare the iCalendar part of the response object.
34: *
35: * @param Horde_Icalendar $ical The iCalendar response object.
36: *
37: * @return NULL
38: */
39: public function prepareIcalendar(Horde_Icalendar $ical)
40: {
41: $ical->setAttribute('PRODID', $this->getProductId());
42: }
43:
44: /**
45: * Prepare the iCalendar MIME part of the response message.
46: *
47: * @param Horde_Mime_Part $ics The iCalendar MIME part of the response
48: * message.
49: *
50: * @return NULL
51: */
52: public function prepareIcsMimePart(Horde_Mime_Part $ics)
53: {
54: $ics->setCharset($this->getCharacterSet());
55: }
56:
57: /**
58: * Prepare the message MIME part of the response.
59: *
60: * @param Horde_Mime_Part $message The message MIME part of the response.
61: *
62: * @return NULL
63: */
64: public function prepareMessageMimePart(Horde_Mime_Part $message)
65: {
66: $message->setCharset($this->getCharacterSet());
67: }
68: }