You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: developer_manual/digging_deeper/groupware/calendar.rst
+68Lines changed: 68 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -104,6 +104,74 @@ The returned objects implement ``\OCP\Calendar\ICalendar``. Study the interface
104
104
105
105
.. note:: All calendars are by default only readable, therefore ``ICalendar`` does not offer methods for mutation. Some of the calendars are mutable, however, and they may further extend the interface ``\OCP\Calendar\ICreateFromString``.
106
106
107
+
Create calendar events
108
+
----------------------
109
+
110
+
Calendar events can either be imported from raw ICS strings or built programmatically using the ``ICalendarEventBuilder`` interface.
111
+
Please consider the example below to see both methods in action.
112
+
113
+
.. code-block:: php
114
+
115
+
<?php
116
+
117
+
use OCP\Calendar\ICalendarEventBuilder;
118
+
use OCP\Calendar\ICreateFromString;
119
+
use OCP\Calendar\IManager;
120
+
121
+
class MyService {
122
+
123
+
/** @var IManager */
124
+
private $calendarManager;
125
+
126
+
public function __construct(IManager $calendarManager) {
0 commit comments