1: <?php
2: 3: 4: 5: 6: 7: 8: 9: 10:
11: class Horde_ActiveSync_Message_Recurrence extends Horde_ActiveSync_Message_Base
12: {
13:
14: const TYPE_DAILY = 0;
15: const TYPE_WEEKLY = 1;
16: const TYPE_MONTHLY = 2;
17: const TYPE_MONTHLY_NTH = 3;
18: const TYPE_YEARLY = 5;
19: const TYPE_YEARLYNTH = 6;
20:
21: protected $_mapping = array (
22: Horde_ActiveSync_Message_Appointment::POOMCAL_TYPE => array (self::KEY_ATTRIBUTE => 'type'),
23: Horde_ActiveSync_Message_Appointment::POOMCAL_UNTIL => array (self::KEY_ATTRIBUTE => 'until', self::KEY_TYPE => self::TYPE_DATE),
24: Horde_ActiveSync_Message_Appointment::POOMCAL_OCCURRENCES => array (self::KEY_ATTRIBUTE => 'occurrences'),
25: Horde_ActiveSync_Message_Appointment::POOMCAL_INTERVAL => array (self::KEY_ATTRIBUTE => 'interval'),
26: Horde_ActiveSync_Message_Appointment::POOMCAL_DAYOFWEEK => array (self::KEY_ATTRIBUTE => 'dayofweek'),
27: Horde_ActiveSync_Message_Appointment::POOMCAL_DAYOFMONTH => array (self::KEY_ATTRIBUTE => 'dayofmonth'),
28: Horde_ActiveSync_Message_Appointment::POOMCAL_WEEKOFMONTH => array (self::KEY_ATTRIBUTE => 'weekofmonth'),
29: Horde_ActiveSync_Message_Appointment::POOMCAL_MONTHOFYEAR => array (self::KEY_ATTRIBUTE => 'monthofyear')
30: );
31:
32: protected $_properties = array(
33: 'type' => false,
34: 'until' => false,
35: 'occurrences' => false,
36: 'interval' => false,
37: 'dayofweek' => false,
38: 'dayofmonth' => false,
39: 'weekofmonth' => false,
40: 'monthofyear' => false,
41: );
42:
43: }