$calendar
$calendar : string
The current calendar.
The Kronolith_Driver_Ical class implements the Kronolith_Driver API for iCalendar data.
Possible driver parameters:
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 | 
getRemoteCalendar(boolean  $cache = true) : \Horde_Icalendar
                Fetches a remote calendar into the cache and return the data.
| boolean | $cache | Whether to return data from the cache. | 
The calendar data.
| None found | 
isCalDAV() : boolean
Returns whether the remote calendar is a CalDAV server, and propagates the $_davSupport propery with the server's DAV capabilities.
True if the remote calendar is a CalDAV server.
| None found | 
getCalendarInfo() : array
Returns calendar information.
A hash with the keys 'name', 'desc', and 'color'.
| None found | 
getPermission() : integer
Returns the permissions for the current calendar.
A Horde_Perms permission bit mask.
| 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( $eventId, $newCalendar)
Stub to be overridden in the child class.
| $eventId | ||
| $newCalendar | 
| None found | 
_deleteEvent(string $eventId, boolean $silent = false) : \Kronolith_Event
Deletes an event.
| string | $eventId | The ID of the event to delete. | 
| boolean | $silent | Don't send notifications, used when deleting events in bulk from maintenance tasks. | 
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 | 
_listWebDAVEvents( $startDate = null, $endDate = null, boolean $showRecurrence = false, boolean $hasAlarm = false, boolean $json = false, boolean $coverDates = true, $hideExceptions = false) : array
Lists all events in the time range, optionally restricting results to only events with alarms.
| $startDate | ||
| $endDate | ||
| boolean | $showRecurrence | Return every instance of a recurring event? If false, will only return recurring events once inside the $startDate - $endDate range. | 
| boolean | $hasAlarm | Only return events with alarms? | 
| boolean | $json | Store the results of the events' toJson() method? | 
| boolean | $coverDates | Whether to add the events to all days that they cover. $param boolean $hideExceptions Hide events that represent exceptions to a recurring event. | 
| $hideExceptions | 
Events in the given time range.
| None found | 
_listCalDAVEvents( $startDate = null, $endDate = null, boolean $showRecurrence = false, boolean $hasAlarm = false, boolean $json = false, boolean $coverDates = true, $hideExceptions = false) : array
Lists all events in the time range, optionally restricting results to only events with alarms.
| $startDate | ||
| $endDate | ||
| boolean | $showRecurrence | Return every instance of a recurring event? If false, will only return recurring events once inside the $startDate - $endDate range. | 
| boolean | $hasAlarm | Only return events with alarms? | 
| boolean | $json | Store the results of the events' toJson() method? | 
| boolean | $coverDates | Whether to add the events to all days that they cover. $param boolean $hideExceptions Hide events that represent exceptions to a recurring event. | 
| $hideExceptions | 
Events in the given time range.
| None found | 
_convertEvents(\Horde_Icalendar  $ical) : array
                Converts all components of a Horde_Icalendar container into a Kronolith_Event list.
| \Horde_Icalendar | $ical | A Horde_Icalendar container. | 
List of Kronolith_Event_Ical objects.
| None found | 
_processComponents(array $results, array $events, $startDate, $endDate, boolean $showRecurrence, boolean $json, boolean $coverDates, boolean $hideExceptions, string $id = null)
Processes the components of a Horde_Icalendar container into an event list.
| array | $results | Gets filled with the events in the given time range. | 
| array | $events | A list of Kronolith_Event_Ical objects. | 
| $startDate | ||
| $endDate | ||
| boolean | $showRecurrence | Return every instance of a recurring event? If false, will only return recurring events once inside the $startDate - $endDate range. | 
| boolean | $json | Store the results of the events' toJson() method? | 
| boolean | $coverDates | Whether to add the events to all days that they cover. | 
| boolean | $hideExceptions | Hide events that represent exceptions to a recurring event. | 
| string | $id | Enforce a certain event id (not UID). | 
| None found | 
_saveEvent(\Kronolith_Event  $event) : \Sabre\HTTP\ResponseInterface
                Updates an existing event in the backend.
| \Kronolith_Event | $event | The event to save. | 
The HTTP response.
| None found | 
_getRemoteEvents() : array
Fetches a remote calendar and converts it to Kronolith_Event objects.
The converted event objects will be cached for an hour.
List of Kronolith_Event_Ical objects.
| None found | 
_request(string $method, string $url, \XMLWriter $xml = null, array $headers = array()) : array
Sends a CalDAV request.
| string | $method | A request method. | 
| string | $url | A request URL. | 
| \XMLWriter | $xml | An XMLWriter object with the body content. | 
| array | $headers | A hash with additional request headers. | 
The Horde_Http_Response object and the parsed SimpleXMLElement results.
| None found |