PHP Class Horde_Data_Imc, horde

Copyright 1999-2016 Horde LLC (http://www.horde.org/) See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.
Author: Jan Schneider ([email protected])
Inheritance: extends Horde_Data_Base
Show file Open project: horde/horde

Protected Properties

Property Type Description
$_iCal

Public Methods

Method Description
exportData ( array $data, string $method = 'REQUEST' ) : string Builds an iCalendar file from a given data structure and returns it as a string.
exportFile ( string $filename, array $data ) Builds an iCalendar file from a given data structure and triggers its download. It DOES NOT exit the current script but only outputs the correct headers and data.
importData ( $text )
nextStep ( integer $action, array $param = [] ) : mixed Takes all necessary actions for the given import step, parameters and form values and returns the next necessary step.

Method Details

exportData() public method

Builds an iCalendar file from a given data structure and returns it as a string.
public exportData ( array $data, string $method = 'REQUEST' ) : string
$data array An array containing Horde_Icalendar_Vevent objects
$method string The iTip method to use.
return string The iCalendar data.

exportFile() public method

Builds an iCalendar file from a given data structure and triggers its download. It DOES NOT exit the current script but only outputs the correct headers and data.
public exportFile ( string $filename, array $data )
$filename string The name of the file to be downloaded.
$data array An array containing Horde_Icalendar_Vevents

importData() public method

public importData ( $text )

nextStep() public method

Takes all necessary actions for the given import step, parameters and form values and returns the next necessary step.
public nextStep ( integer $action, array $param = [] ) : mixed
$action integer The current step. One of the IMPORT_* constants.
$param array An associative array containing needed parameters for the current step.
return mixed Either the next step as an integer constant or imported data set after the final step.

Property Details

$_iCal protected property

protected $_iCal