Property | Type | Description | |
---|---|---|---|
$backgroundColor | string | The HTML background color to be used for this event. | |
$calendar | string | The current calendar. | |
$foregroundColor | string | The HTML foreground color to be used for this event. |
Property | Type | Description | |
---|---|---|---|
$_params | array | A hash containing any parameters for the current driver. |
Method | Description | |
---|---|---|
__construct ( array $params = [], string $errormsg = null ) | Constructor. | |
backgroundColor ( ) : string | Returns the background color of the current calendar. | |
colors ( ) : array | Returns the colors of the current calendar. | |
countEvents ( ) : integer | Returns the number of events in the current calendar. | |
delete ( $calendar ) | Stub to be overridden in the child class. | |
deleteEvent ( mixed $eventId, boolean $silent = false ) | Deletes an event. | |
exists ( $uid, $calendar_id = null ) | Stub for child class to override if it can implement. | |
filterEventsByCalendar ( $uids, $calendar ) | Stub to be overridden in the child class if it can implement. | |
getByUID ( $uid, $calendars = null, $getAll = false ) | Stub to be overridden in the child class. | |
getEvent ( $eventId = null ) | Stub to be overridden in the child class. | |
getParam ( string $param ) : mixed | Returns a configuration for this driver. | |
initialize ( ) | Stub to initiate a driver. | |
listAlarms ( $date, $fullevent = false ) | Stub to be overridden in the child class. | |
listEvents ( Horde_Date $startDate = null, Horde_Date $endDate = null, array $options = [] ) | Lists all events in the time range, optionally restricting results to only events with alarms. | |
move ( string $eventId, string $newCalendar ) | Moves an event to a new calendar. | |
nextRecurrence ( string $eventId, Horde_Date $afterDate ) : Horde_Date | boolean | Finds the next recurrence of $eventId that's after $afterDate. | |
open ( string $calendar ) | Selects a calendar as the currently opened calendar. | |
removeUserData ( $user ) | Stub for child class to override if it can implement. | |
saveEvent ( Kronolith_Event $event ) : string | Saves an event in the backend. | |
search ( object $query, boolean $json = false ) : array | Searches a calendar. | |
setParam ( string $param, mixed $value ) | Sets a configuration for this driver. | |
setParams ( string $params ) | Sets all configuration parameters for this driver. | |
supportsTimezones ( ) : boolean | Returns whether this driver supports per-event timezones. | |
synchronize ( boolean $force = false, string $token = false ) | Synchronize if driver needs to. |
Method | Description | |
---|---|---|
_addEvent ( Kronolith_Event $event ) | Stub to be overridden in the child class. | |
_addTags ( Kronolith_Event $event ) | Helper function to add tags from a newly creted event to the tagger. | |
_deleteEvent ( mixed $eventId ) : Kronolith_Event | Stub to be overridden in the child class. | |
_handleNotifications ( Kronolith_Event $event, string $action ) | Wrapper for sending notifications, so that we can overwrite this action in Kronolith_Driver_Resource. | |
_listEvents ( Horde_Date $startDate = null, Horde_Date $endDate = null, array $options = [] ) | Stub to be overridden in concrete class. | |
_move ( $eventId, $newCalendar ) | Stub to be overridden in the child class. | |
_updateEvent ( Kronolith_Event $event ) | Stub to be overridden in the child class. | |
_updateTags ( Kronolith_Event $event ) | Helper function to update an existing event's tags to tagger storage. |
public __construct ( array $params = [], string $errormsg = null ) | ||
$params | array | Any parameters needed for this driver. |
$errormsg | string | A custom error message to use. |
protected _addEvent ( Kronolith_Event $event ) | ||
$event | Kronolith_Event |
protected _addTags ( Kronolith_Event $event ) | ||
$event | Kronolith_Event | The event to save tags to storage for. |
protected _deleteEvent ( mixed $eventId ) : Kronolith_Event | ||
$eventId | mixed | Either the event id to delete, or the event object. |
return | Kronolith_Event | Returns the deleted event. |
protected _handleNotifications ( Kronolith_Event $event, string $action ) | ||
$event | Kronolith_Event | |
$action | string |
protected _listEvents ( Horde_Date $startDate = null, Horde_Date $endDate = null, array $options = [] ) | ||
$startDate | Horde_Date | The start of range date. |
$endDate | Horde_Date | The end of date range. |
$options | array | Additional options: - show_recurrence: (boolean) Return every instance of a recurring event? DEFAULT: false (Only return recurring events once inside $startDate - $endDate range). - has_alarm: (boolean) Only return events with alarms. DEFAULT: false (Return all events) - json: (boolean) Store the results of the event's toJson() method? DEFAULT: false - cover_dates: (boolean) Add the events to all days that they cover? DEFAULT: true - hide_exceptions: (boolean) Hide events that represent exceptions to a recurring event. DEFAULT: false (Do not hide exception events) - fetch_tags: (boolean) Fetch tags for all events. DEFAULT: false (Do not fetch event tags) |
protected _move ( $eventId, $newCalendar ) |
protected _updateEvent ( Kronolith_Event $event ) | ||
$event | Kronolith_Event |
protected _updateTags ( Kronolith_Event $event ) | ||
$event | Kronolith_Event | The event to update |
public backgroundColor ( ) : string | ||
return | string | The calendar color. |
public countEvents ( ) : integer | ||
return | integer | The number of events. |
public delete ( $calendar ) |
public deleteEvent ( mixed $eventId, boolean $silent = false ) | ||
$eventId | mixed | Either the event id to delete, or the event object. |
$silent | boolean | Don't send notifications, used when deleting events in bulk from maintenance tasks. |
public exists ( $uid, $calendar_id = null ) |
public filterEventsByCalendar ( $uids, $calendar ) |
public getByUID ( $uid, $calendars = null, $getAll = false ) |
public getEvent ( $eventId = null ) |
public listAlarms ( $date, $fullevent = false ) |
public listEvents ( Horde_Date $startDate = null, Horde_Date $endDate = null, array $options = [] ) | ||
$startDate | Horde_Date | The start of range date. |
$endDate | Horde_Date | The end of date range. |
$options | array | Additional options: - show_recurrence: (boolean) Return every instance of a recurring event? DEFAULT: false (Only return recurring events once inside $startDate - $endDate range) - has_alarm: (boolean) Only return events with alarms. DEFAULT: false (Return all events) - json: (boolean) Store the results of the event's toJson() method? DEFAULT: false - cover_dates: (boolean) Add the events to all days that they cover? DEFAULT: true - hide_exceptions: (boolean) Hide events that represent exceptions to a recurring event. DEFAULT: false (Do not hide exception events) - fetch_tags: (boolean) Fetch tags for all events. DEFAULT: false (Do not fetch event tags) |
public nextRecurrence ( string $eventId, Horde_Date $afterDate ) : Horde_Date | boolean | ||
$eventId | string | The ID of the event to fetch. |
$afterDate | Horde_Date | Return events after this date. |
return | Horde_Date | boolean | The date of the next recurrence or false if the event does not recur after $afterDate. |
public removeUserData ( $user ) |
public search ( object $query, boolean $json = false ) : array | ||
$query | object | An object with the criteria to search for. |
$json | boolean | Store the results of the events' toJson() method? |
return | array | An array of search results keyed by date, with each date containing an array of Kronolith_Events occuring on that date. |
public supportsTimezones ( ) : boolean | ||
return | boolean | Whether this drivers suppports per-event timezones. |
public synchronize ( boolean $force = false, string $token = false ) | ||
$force | boolean | If true, forces synchronization, even if we have already done so. |
$token | string | A synchroniziation token, if available. |
protected array $_params | ||
return | array |
public string $backgroundColor | ||
return | string |
public string $foregroundColor | ||
return | string |