$calendar
$calendar : string
The current calendar.
Horde Kronolith driver for the Kolab IMAP Server.
Copyright 2004-2017 Horde LLC (http://www.horde.org/)
See the enclosed file LICENSE for license information (GPL). If you did not receive this file, see http://www.horde.org/licenses/gpl.
search(object $query, boolean $json = false) : array
Searches a calendar.
object | $query | An object with the criteria to search for. |
boolean | $json | Store the results of the events' toJson() method? |
An array of search results keyed by date, with each date containing an array of Kronolith_Events occuring on that date.
nextRecurrence(string $eventId, \Horde_Date $afterDate) : \Horde_Date|boolean
Finds the next recurrence of $eventId that's after $afterDate.
string | $eventId | The ID of the event to fetch. |
\Horde_Date | $afterDate | Return events after this date. |
The date of the next recurrence or false if the event does not recur after $afterDate.
getByUID(string $uid, array $calendars = null, boolean $getAll = false) : \Kronolith_Event
Get an event or events with the given UID value.
string | $uid | The UID to match |
array | $calendars | A restricted array of calendar ids to search |
boolean | $getAll | Return all matching events? If this is false, an error will be returned if more than one event is found. |
listEvents(\Horde_Date $startDate = null, \Horde_Date $endDate = null, array $options = array())
Lists all events in the time range, optionally restricting results to only events with alarms.
\Horde_Date | $startDate | The start of range date. |
\Horde_Date | $endDate | The end of date range. |
array | $options | Additional options:
|
saveEvent(\Kronolith_Event $event) : string
Saves an event in the backend.
If it is a new event, it is added, otherwise the event is updated.
\Kronolith_Event | $event | The event to save. |
The event id.
exists(string $uid, string $calendar_id = null) : string|boolean
Checks if the event's UID already exists and returns all event ids with that UID.
string | $uid | The event's uid. |
string | $calendar_id | Calendar to search in. |
Returns a string with event_id or false if not found.
deleteEvent(mixed $eventId, boolean $silent = false)
Deletes an event.
mixed | $eventId | Either the event id to delete, or the event object. |
boolean | $silent | Don't send notifications, used when deleting events in bulk from maintenance tasks. |
synchronize(boolean $force = false, string $token = false)
Synchronize kolab storage backend.
We delay initial synchronization to the first use so multiple calendars don't add to the total latency. This function must be called before all internal driver functions.
boolean | $force | If true, forces synchronization, even if we have already done so. |
string | $token | A synchroniziation token, if available. |
None found |
_listEvents(\Horde_Date $startDate = null, \Horde_Date $endDate = null, array $options = array())
Lists all events in the time range, optionally restricting results to only events with alarms.
\Horde_Date | $startDate | The start of range date. |
\Horde_Date | $endDate | The end of date range. |
array | $options | Additional options:
|
None found |
_addEvent(\Kronolith_Event $event) : string
Adds an event to the backend.
\Kronolith_Event | $event | The event to save. |
The event id.
None found |
_updateEvent(\Kronolith_Event $event) : string
Updates an existing event in the backend.
\Kronolith_Event | $event | The event to save. |
The event id.
None found |
_move(string $eventId, string $newCalendar) : \Kronolith_Event
Moves an event to a new calendar.
string | $eventId | The event to move. |
string | $newCalendar | The new calendar. |
The old event.
None found |
_deleteEvent(string $eventId, $silent = false) : \Kronolith_Event
Deletes an event.
string | $eventId | The ID of the event to delete. |
$silent |
Returns the deleted event.
None found |
_handleNotifications(\Kronolith_Event $event, string $action)
Wrapper for sending notifications, so that we can overwrite this action in Kronolith_Driver_Resource.
\Kronolith_Event | $event | |
string | $action |
None found |
_updateTags(\Kronolith_Event $event)
Helper function to update an existing event's tags to tagger storage.
\Kronolith_Event | $event | The event to update |
None found |
_addTags(\Kronolith_Event $event)
Helper function to add tags from a newly creted event to the tagger.
\Kronolith_Event | $event | The event to save tags to storage for. |
None found |
_saveEvent(\Kronolith_Event $event, $edit) : string
Saves an event in the backend.
\Kronolith_Event | $event | The event to save. |
$edit |
The event id.
None found |