1: <?php
2: /**
3: * Implementation for tasks 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 task groupware objects.
17: *
18: * Copyright 2007-2009 Klarälvdalens Datakonsult AB
19: * Copyright 2011-2012 Horde LLC (http://www.horde.org/)
20: *
21: * See the enclosed file COPYING for license information (LGPL). If you did not
22: * receive this file, see
23: * http://www.horde.org/licenses/lgpl21.
24: *
25: * @category Kolab
26: * @package Kolab_Format
27: * @author Thomas Jarosch <thomas.jarosch@intra2net.com>
28: * @author Gunnar Wrobel <wrobel@pardus.de>
29: * @license http://www.horde.org/licenses/lgpl21 LGPL 2.1
30: * @link http://www.horde.org/libraries/Horde_Kolab_Format
31: */
32: class Horde_Kolab_Format_Xml_Task extends Horde_Kolab_Format_Xml
33: {
34: /**
35: * The name of the root element.
36: *
37: * @var string
38: */
39: protected $_root_name = 'task';
40:
41: /**
42: * Specific data fields for the prefs object
43: *
44: * @var Kolab
45: */
46: protected $_fields_specific = array(
47: 'summary' => 'Horde_Kolab_Format_Xml_Type_String_MaybeMissing',
48: 'location' => 'Horde_Kolab_Format_Xml_Type_String_MaybeMissing',
49: 'organizer' => 'Horde_Kolab_Format_Xml_Type_Composite_SimplePerson',
50: 'start-date' => 'Horde_Kolab_Format_Xml_Type_DateTime',
51: 'alarm' => 'Horde_Kolab_Format_Xml_Type_Integer',
52: 'recurrence' => 'Horde_Kolab_Format_Xml_Type_Composite_Recurrence',
53: 'attendee' => 'Horde_Kolab_Format_Xml_Type_Multiple_Attendee',
54: 'priority' => 'Horde_Kolab_Format_Xml_Type_TaskPriority',
55: 'completed' => 'Horde_Kolab_Format_Xml_Type_TaskCompletion',
56: 'status' => 'Horde_Kolab_Format_Xml_Type_TaskStatus',
57: 'due-date' => 'Horde_Kolab_Format_Xml_Type_DateTime',
58: 'parent' => 'Horde_Kolab_Format_Xml_Type_String_MaybeMissing',
59: );
60: }
61: