1: <?php
2: /**
3: * Implementation for events in the Kolab XML format.
4: *
5: * PHP version 5
6: *
7: * @category Kolab
8: * @package Kolab_Format
9: * @author Thomas Jarosch <thomas.jarosch@intra2net.com>
10: * @author Gunnar Wrobel <wrobel@pardus.de>
11: * @license http://www.horde.org/licenses/lgpl21 LGPL 2.1
12: * @link http://www.horde.org/libraries/Horde_Kolab_Format
13: */
14:
15: /**
16: * Kolab XML handler for event groupware objects.
17: *
18: * Copyright 2007-2009 Klarälvdalens Datakonsult AB
19: *
20: * See the enclosed file COPYING for license information (LGPL). If you did not
21: * receive this file, see
22: * http://www.horde.org/licenses/lgpl21.
23: *
24: * @category Kolab
25: * @package Kolab_Format
26: * @author Thomas Jarosch <thomas.jarosch@intra2net.com>
27: * @author Gunnar Wrobel <wrobel@pardus.de>
28: * @license http://www.horde.org/licenses/lgpl21 LGPL 2.1
29: * @link http://www.horde.org/libraries/Horde_Kolab_Format
30: */
31: class Horde_Kolab_Format_Xml_Event extends Horde_Kolab_Format_Xml
32: {
33: /**
34: * The name of the root element.
35: *
36: * @var string
37: */
38: protected $_root_name = 'event';
39:
40: /**
41: * Specific data fields for the prefs object
42: *
43: * @var Kolab
44: */
45: protected $_fields_specific = array(
46: 'summary' => 'Horde_Kolab_Format_Xml_Type_String_MaybeMissing',
47: 'location' => 'Horde_Kolab_Format_Xml_Type_String_MaybeMissing',
48: 'organizer' => 'Horde_Kolab_Format_Xml_Type_Composite_SimplePerson',
49: 'start-date' => 'Horde_Kolab_Format_Xml_Type_EventDate',
50: 'alarm' => 'Horde_Kolab_Format_Xml_Type_Integer',
51: 'recurrence' => 'Horde_Kolab_Format_Xml_Type_Composite_Recurrence',
52: 'attendee' => 'Horde_Kolab_Format_Xml_Type_Multiple_Attendee',
53: 'show-time-as' => 'Horde_Kolab_Format_Xml_Type_String_MaybeMissing',
54: 'color-label' => 'Horde_Kolab_Format_Xml_Type_String_MaybeMissing',
55: 'end-date' => 'Horde_Kolab_Format_Xml_Type_EventDate',
56: );
57: }
58: