$calendar
$calendar : string
The current calendar.
The Kronolith_Driver_Mock class provides a Kronolith dummy driver.
Copyright 2011-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.
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.
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 if driver needs to.
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)
Stub to be overridden in the child class.
\Kronolith_Event | $event |
None found |
_updateEvent(\Kronolith_Event $event)
Stub to be overridden in the child class.
\Kronolith_Event | $event |
None found |
_move( $eventId, $newCalendar)
Stub to be overridden in the child class.
$eventId | ||
$newCalendar |
None found |
_deleteEvent(mixed $eventId) : \Kronolith_Event
Stub to be overridden in the child class.
mixed | $eventId | Either the event id to delete, or the event object. |
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 |