PHP Class Kronolith_Icalendar_Handler_Base, horde

Author: Michael J Rubinsky ([email protected])
Show file Open project: horde/horde Class Usage Examples

Protected Properties

Property Type Description
$_driver Kronolith_Driver
$_exceptions array
$_iCal Horde_Icalendar The iCalendar data.

Public Methods

Method Description
__construct ( Horde_Icalendar $iCal, Kronolith_Driver $driver, array $params = [] )
process ( ) : array Perform the import.

Protected Methods

Method Description
_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.
_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.
_process ( ) : array Process the iCalendar data.

Method Details

__construct() public method

public __construct ( Horde_Icalendar $iCal, Kronolith_Driver $driver, array $params = [] )
$iCal Horde_Icalendar The iCalendar data.
$driver Kronolith_Driver The Kronolith driver.
$params array Any additional parameters needed for the importer.

_postSave() protected method

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.
protected _postSave ( Kronolith_Event $event )
$event Kronolith_Event The event object.

_preSave() protected method

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.
protected _preSave ( Horde_Icalendar $component ) : boolean
$component Horde_Icalendar The iCalendar component.
return boolean True to continue processing, false to ignore.

_process() protected method

Process the iCalendar data.
protected _process ( ) : array
return array A hash of UID => id.

process() public method

Perform the import.
public process ( ) : array
return array A hash of UID => id.

Property Details

$_driver protected property

protected Kronolith_Driver $_driver
return Kronolith_Driver

$_exceptions protected property

protected array $_exceptions
return array

$_iCal protected property

The iCalendar data.
protected Horde_Icalendar $_iCal
return Horde_Icalendar