CalDavEventManagerInterface

🔧 listEvents

List all events from a calendar
function listEvents(string $username, string $calendarId): array; /** * Get a specific event by ID * * @param string $username The username who owns the calendar * @param string $calendarId The calendar ID * @param string $eventId The event ID to retrieve * @return array|null Event data or null if not found */ public function getEvent(string $eventUrl): ?array; /** * Create a new event * * @param string $username The username who owns the calendar * @param string $calendarId The calendar ID * @param array $eventData The event data * @return array Response array with success status, message, and debug info */ public function createEvent(string $username, string $calendarId, array $eventData, string $password): array; /** * Update an existing event * * @param string $username The username who owns the calendar * @param string $calendarId The calendar ID * @param string $eventId The event ID to update * @param array $eventData The updated event data * @return array Response array with success status, message, and debug info */ public function updateEvent(string $username, string $calendarId, string $eventId, array $eventData): array; /** * Delete an event * * @param string $username The username who owns the calendar * @param string $calendarId The calendar ID * @param string $eventId The event ID to delete * @return array Response array with success status, message, and debug info */ public function deleteEvent(string $username, string $calendarId, string $eventId): array; /** * Move an event from one calendar to another * * @param string $username The username who owns the calendars * @param string $sourceCalendarId Source calendar ID * @param string $targetCalendarId Target calendar ID * @param string $eventId The event ID to move * @param array $eventData The event data * @return array Response array with success status, message, and debug info */ public function moveEvent(string $username, string $sourceCalendarId, string $targetCalendarId, string $eventId, array $eventData, ?string $sourcePassword = null, ?string $targetPassword = null, ?string $targetUsername = null): array; }

âš™ī¸ Parameters

â†Šī¸ Returns

(array) Response array with events data and debug info

🔧 getEvent

Get a specific event by ID
function getEvent(string $eventUrl): ?array; /** * Create a new event * * @param string $username The username who owns the calendar * @param string $calendarId The calendar ID * @param array $eventData The event data * @return array Response array with success status, message, and debug info */ public function createEvent(string $username, string $calendarId, array $eventData, string $password): array; /** * Update an existing event * * @param string $username The username who owns the calendar * @param string $calendarId The calendar ID * @param string $eventId The event ID to update * @param array $eventData The updated event data * @return array Response array with success status, message, and debug info */ public function updateEvent(string $username, string $calendarId, string $eventId, array $eventData): array; /** * Delete an event * * @param string $username The username who owns the calendar * @param string $calendarId The calendar ID * @param string $eventId The event ID to delete * @return array Response array with success status, message, and debug info */ public function deleteEvent(string $username, string $calendarId, string $eventId): array; /** * Move an event from one calendar to another * * @param string $username The username who owns the calendars * @param string $sourceCalendarId Source calendar ID * @param string $targetCalendarId Target calendar ID * @param string $eventId The event ID to move * @param array $eventData The event data * @return array Response array with success status, message, and debug info */ public function moveEvent(string $username, string $sourceCalendarId, string $targetCalendarId, string $eventId, array $eventData, ?string $sourcePassword = null, ?string $targetPassword = null, ?string $targetUsername = null): array; }

âš™ī¸ Parameters

â†Šī¸ Returns

(array|null) Event data or null if not found

🔧 createEvent

Create a new event
function createEvent(string $username, string $calendarId, array $eventData, string $password): array; /** * Update an existing event * * @param string $username The username who owns the calendar * @param string $calendarId The calendar ID * @param string $eventId The event ID to update * @param array $eventData The updated event data * @return array Response array with success status, message, and debug info */ public function updateEvent(string $username, string $calendarId, string $eventId, array $eventData): array; /** * Delete an event * * @param string $username The username who owns the calendar * @param string $calendarId The calendar ID * @param string $eventId The event ID to delete * @return array Response array with success status, message, and debug info */ public function deleteEvent(string $username, string $calendarId, string $eventId): array; /** * Move an event from one calendar to another * * @param string $username The username who owns the calendars * @param string $sourceCalendarId Source calendar ID * @param string $targetCalendarId Target calendar ID * @param string $eventId The event ID to move * @param array $eventData The event data * @return array Response array with success status, message, and debug info */ public function moveEvent(string $username, string $sourceCalendarId, string $targetCalendarId, string $eventId, array $eventData, ?string $sourcePassword = null, ?string $targetPassword = null, ?string $targetUsername = null): array; }

âš™ī¸ Parameters

â†Šī¸ Returns

(array) Response array with success status, message, and debug info

🔧 updateEvent

Update an existing event
function updateEvent(string $username, string $calendarId, string $eventId, array $eventData): array; /** * Delete an event * * @param string $username The username who owns the calendar * @param string $calendarId The calendar ID * @param string $eventId The event ID to delete * @return array Response array with success status, message, and debug info */ public function deleteEvent(string $username, string $calendarId, string $eventId): array; /** * Move an event from one calendar to another * * @param string $username The username who owns the calendars * @param string $sourceCalendarId Source calendar ID * @param string $targetCalendarId Target calendar ID * @param string $eventId The event ID to move * @param array $eventData The event data * @return array Response array with success status, message, and debug info */ public function moveEvent(string $username, string $sourceCalendarId, string $targetCalendarId, string $eventId, array $eventData, ?string $sourcePassword = null, ?string $targetPassword = null, ?string $targetUsername = null): array; }

âš™ī¸ Parameters

â†Šī¸ Returns

(array) Response array with success status, message, and debug info

🔧 deleteEvent

Delete an event
function deleteEvent(string $username, string $calendarId, string $eventId): array; /** * Move an event from one calendar to another * * @param string $username The username who owns the calendars * @param string $sourceCalendarId Source calendar ID * @param string $targetCalendarId Target calendar ID * @param string $eventId The event ID to move * @param array $eventData The event data * @return array Response array with success status, message, and debug info */ public function moveEvent(string $username, string $sourceCalendarId, string $targetCalendarId, string $eventId, array $eventData, ?string $sourcePassword = null, ?string $targetPassword = null, ?string $targetUsername = null): array; }

âš™ī¸ Parameters

â†Šī¸ Returns

(array) Response array with success status, message, and debug info

🔧 moveEvent

Move an event from one calendar to another
function moveEvent(string $username, string $sourceCalendarId, string $targetCalendarId, string $eventId, array $eventData, ?string $sourcePassword = null, ?string $targetPassword = null, ?string $targetUsername = null): array; }

âš™ī¸ Parameters

â†Šī¸ Returns

(array) Response array with success status, message, and debug info