1 | <?php |
||
5 | class Event |
||
6 | { |
||
7 | const FIELD_MAP = [ |
||
8 | 'calendar_event[title]' => 'SUMMARY', |
||
9 | 'calendar_event[description]' => 'DESCRIPTION', |
||
10 | 'calendar_event[start_at]' => [ |
||
11 | 0 => 'X-CURRENT-DTSTART', |
||
12 | 1 => 'DTSTART' |
||
13 | ], |
||
14 | 'calendar_event[end_at]' => [ |
||
15 | 0 => 'X-CURRENT-DTEND', |
||
16 | 1 => 'DTEND' |
||
17 | ], |
||
18 | 'calendar_event[location_name]' => 'LOCATION' |
||
19 | ]; |
||
20 | |||
21 | /** |
||
22 | * Generate a hash of this version of an event to cache in the database |
||
23 | **/ |
||
24 | public function getEventHash($event) |
||
43 | } |
||
44 |