Inheritance diagram for icalvircal:
This class extends a virtual_calendar with methods to get updated by a iCalendar data (import) or export its contents as iCalendar data (export).
For its current implementation this class relies heavily egwical_resourcehandlers provided by the package egwical.
Basic extra operations supported on virtual calendars by this class are:
Public Member Functions | |
VcalStr | export_vcal (array $attribs=null) |
Export all data as a iCalendar formatted string. | |
RscUpdateTable I false | import_vcal (VcalStr &$vcal) |
Import all suited elements from an iCalendar string into the various bound Egw resources of the virtual calendar. | |
Public Attributes | |
string | $deviceType = 'all' |
The devicetype of the kind of client that is currently exporting or importing. | |
$ivdebug = false | |
boolean | $reimport_missing_elements = true |
Switch to allow reimport of gone egw elements. | |
int | $uid_mapping_export = UMM_ID2UID |
Switch that determines the way uid fields are generated at export. | |
int | $uid_mapping_import = UMM_UID2ID |
Switch that determines how uid fields are used for import. |
|
Export all data as a iCalendar formatted string. All resources found in the vircal ($_caldef member) are queried according to the queries setting in there. The resulting egw elements are then converted according to the resourcehandler settings and their results are collected and returned as a compound iCalendar string.
|
|
Import all suited elements from an iCalendar string into the various bound Egw resources of the virtual calendar. This import routine parses the Vcal string and then tries to import import each of the components (VElts like VEVENT, VTODO) into an appropiate egw resource (calendar, infolog etc. instance) as determined by the virtual calendar resource handling settings. Thereby respecting the access rights of the grants settings in the virtual calendar. Import can mean here: add as new, update, or delete an existing egw data element (events, task, ..).
|
|
The devicetype of the kind of client that is currently exporting or importing. This is needed to determine what fields are imported and exported from and to the icaldata: most devices only support a selected set of VEVENT or VTODO fields.
|
|
Switch to allow reimport of gone egw elements. Switch that determines if events not anymore in egw are allowed to be reimported Default this is on |
|
Switch that determines the way uid fields are generated at export. According to the value, on export, a uid will be generated:
|
|
Switch that determines how uid fields are used for import. According to the value, on import, the uid field of a vcalendar element will be determine how the search for a matching egw element is done. The choices are:
|