Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15344369
D16678.id40157.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D16678.id40157.diff
View Options
diff --git a/src/parser/calendar/data/PhutilCalendarEventNode.php b/src/parser/calendar/data/PhutilCalendarEventNode.php
--- a/src/parser/calendar/data/PhutilCalendarEventNode.php
+++ b/src/parser/calendar/data/PhutilCalendarEventNode.php
@@ -18,6 +18,7 @@
private $recurrenceRule;
private $recurrenceExceptions = array();
private $recurrenceDates = array();
+ private $recurrenceID;
public function setUID($uid) {
$this->uid = $uid;
@@ -176,4 +177,13 @@
return $this->recurrenceDates;
}
+ public function setRecurrenceID($recurrence_id) {
+ $this->recurrenceID = $recurrence_id;
+ return $this;
+ }
+
+ public function getRecurrenceID() {
+ return $this->recurrenceID;
+ }
+
}
diff --git a/src/parser/calendar/ics/PhutilICSWriter.php b/src/parser/calendar/ics/PhutilICSWriter.php
--- a/src/parser/calendar/ics/PhutilICSWriter.php
+++ b/src/parser/calendar/ics/PhutilICSWriter.php
@@ -216,6 +216,13 @@
$rrule);
}
+ $recurrence_id = $event->getRecurrenceID();
+ if ($recurrence_id) {
+ $properties[] = $this->newTextProperty(
+ 'RECURRENCE-ID',
+ $recurrence_id);
+ }
+
$exdates = $event->getRecurrenceExceptions();
if ($exdates) {
$properties[] = $this->newDateTimesProperty(
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Mar 11, 4:07 AM (1 d, 19 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7497231
Default Alt Text
D16678.id40157.diff (1 KB)
Attached To
Mode
D16678: Add support for exporting RECURRENCE-ID in ICS events
Attached
Detach File
Event Timeline
Log In to Comment