\Kronolith_Icalendar_Handler_Dav

Wraps logic responsible for importing iCalendar data via DAV taking into account necessary steps to deal with recurrence series and exceptions.

Summary

Methods
Properties
Constants
__construct()
process()
No public properties found
No constants found
_process()
_postSave()
_preSave()
$_iCal
$_driver
$_exceptions
$_dav
$_calendar
$_existingEvent
$_noItips
$_oldAttendees
N/A
No private methods found
No private properties found
N/A

Properties

$_iCal

$_iCal : \Horde_Icalendar

The iCalendar data.

Type

\Horde_Icalendar

$_exceptions

$_exceptions : array

Type

array

$_dav

$_dav : \Horde_Dav_Storage_Base

The DAV storage driver.

Type

\Horde_Dav_Storage_Base

$_calendar

$_calendar : string

The calendar id to be imported into.

Type

string

$_existingEvent

$_existingEvent : \Kronolith_Event

Temporary cache of the existing copy of an event being replaced.

Type

\Kronolith_Event

$_noItips

$_noItips : array

List of attendees that should not be sent iTip notifications.

Type

array

$_oldAttendees

$_oldAttendees : \Kronolith_Attendee_List

List of attendess that have been previously invited. Used to detect if attendees are removed and to send ITIP_CANCEL to these attendees.

Type

\Kronolith_Attendee_List

Methods

__construct()

__construct(\Horde_Icalendar  $iCal, \Kronolith_Driver  $driver, array  $params = array()) 

Parameters

\Horde_Icalendar $iCal

The iCalendar data.

\Kronolith_Driver $driver

The Kronolith driver.

array $params

Any additional parameters needed for the importer. For this driver we require: 'object' - contains the DAV identifier for the (base) event.

process()

process() : array

Perform the import.

Returns

array —

A hash of UID => id.

_process()

_process() : array

Process the iCalendar data.

Throws

\Kronolith_Exception

Returns

array —

A hash of UID => id.

_postSave()

_postSave(\Kronolith_Event  $event) 

Responsible for any logic needed after each event is saved. Only called when base event (or an event with no recurrence) is saved. Exception events are not passed.

Parameters

\Kronolith_Event $event

The event object.

_preSave()

_preSave(\Horde_Icalendar  $component) : boolean

Responsible for any logic needed before the event is saved. Called for EVERY component in the iCalendar object. Returning false from this method will cause the current component to be ignored. Returning true causes it to be processed.

Parameters

\Horde_Icalendar $component

The iCalendar component.

Returns

boolean —

True to continue processing, false to ignore.