Overview

Packages

  • Data

Classes

  • Horde_Data
  • Horde_Data_Base
  • Horde_Data_Csv
  • Horde_Data_Exception
  • Horde_Data_Icalendar
  • Horde_Data_Imc
  • Horde_Data_Outlookcsv
  • Horde_Data_Translation
  • Horde_Data_Tsv
  • Horde_Data_Vcard
  • Horde_Data_Vnote
  • Horde_Data_Vtodo
  • Overview
  • Package
  • Class
  • Tree

Class Horde_Data_Imc

Abstract implementation of the Horde_Data:: API for IMC data - vCards and iCalendar data, etc. Provides a number of utility methods that vCard and iCalendar implementation can share and rely on.

Copyright 1999-2012 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.

Horde_Data_Base
Extended by Horde_Data_Imc

Direct known subclasses

Horde_Data_Icalendar, Horde_Data_Vcard, Horde_Data_Vnote, Horde_Data_Vtodo
Package: Data
Category: Horde
Author: Jan Schneider jan@horde.org
Located at Horde/Data/Imc.php
Methods summary
public
# importData( mixed $text )

Throws

Horde_Data_Exception

Overrides

Horde_Data_Base::importData()
public string
# exportData( array $data, string $method = 'REQUEST' )

Builds an iCalendar file from a given data structure and returns it as a string.

Builds an iCalendar file from a given data structure and returns it as a string.

Parameters

$data
<p>An array containing Horde_Icalendar_Vevent objects</p>
$method
The iTip method to use.

Returns

string
The iCalendar data.
public
# 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.

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.

Parameters

$filename
The name of the file to be downloaded.
$data
An array containing Horde_Icalendar_Vevents
public mixed
# nextStep( integer $action, array $param = array() )

Takes all necessary actions for the given import step, parameters and form values and returns the next necessary step.

Takes all necessary actions for the given import step, parameters and form values and returns the next necessary step.

Parameters

$action
The current step. One of the IMPORT_* constants.
$param
<p>An associative array containing needed parameters for the current step.</p>

Returns

mixed

Either the next step as an integer constant or imported data set after the final step.

Throws

Horde_Data_Exception

Overrides

Horde_Data_Base::nextStep()
Methods inherited from Horde_Data_Base
__construct(), cleanup(), getContentType(), getFilename(), getNewline(), importFile(), warnings()
API documentation generated by ApiGen