\Horde_Itip

Handles iTip invitation requests/responses.

Copyright 2010 Klarälvdalens Datakonsult AB

See the enclosed file LICENSE for license information (LGPL). If you did not receive this file, see LGPL.

Summary

Methods
Properties
Constants
__construct()
getVeventResponse()
getIcalendarResponse()
sendSinglepartResponse()
sendMultipartResponse()
vTodoFactory()
prepareResponse()
factory()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$_response
N/A

Properties

Methods

__construct()

__construct(\Horde_Itip_Response  $response) 

Constructor.

Parameters

\Horde_Itip_Response $response

The iTip response.

getVeventResponse()

getVeventResponse(\Horde_Itip_Response_Type  $type) : \Horde_Icalendar_Vevent

Return the response as an iCalendar vEvent object.

Parameters

\Horde_Itip_Response_Type $type

The response type.

Returns

\Horde_Icalendar_Vevent —

The response object.

getIcalendarResponse()

getIcalendarResponse(\Horde_Itip_Response_Type  $type, string  $product_id) : \Horde_Icalendar

Return the response as an iCalendar object.

Parameters

\Horde_Itip_Response_Type $type

The response type.

string $product_id

The ID that should be set as the iCalendar product id.

Returns

\Horde_Icalendar —

The response object.

sendSinglepartResponse()

sendSinglepartResponse(\Horde_Itip_Response_Type  $type, \Horde_Itip_Response_Options  $options, \Horde_Mail_Transport  $transport) : array

Send the response as a single part MIME message.

Parameters

\Horde_Itip_Response_Type $type

The response type.

\Horde_Itip_Response_Options $options

The options for the response.

\Horde_Mail_Transport $transport

The mail transport.

Throws

\Horde_Itip_Exception

Returns

array —

A list of two object: The mime headers and the mime message.

sendMultipartResponse()

sendMultipartResponse(\Horde_Itip_Response_Type  $type, \Horde_Itip_Response_Options  $options, \Horde_Mail_Transport  $transport) : NULL

Send the invitation response as a multi part MIME message.

Parameters

\Horde_Itip_Response_Type $type

The response type.

\Horde_Itip_Response_Options $options

The options for the response.

\Horde_Mail_Transport $transport

The mail transport.

Throws

\Horde_Itip_Exception

Returns

NULL

vTodoFactory()

vTodoFactory(\Horde_Icalendar_Vtodo  $todo, \Horde_Itip_Resource  $resource) : \[type]

Factory for generating a response object for a vTodo assignment request.

Parameters

\Horde_Icalendar_Vtodo $todo

[description]

\Horde_Itip_Resource $resource

[description]

Returns

\[type] —

[description]

prepareResponse()

prepareResponse(\Horde_Icalendar_Vevent  $vevent, \Horde_Itip_Resource  $resource) : \Horde_Itip_Response

Factory for generating a response object for an iCalendar invitation.

Parameters

\Horde_Icalendar_Vevent $vevent

The iCalendar request.

\Horde_Itip_Resource $resource

The invited resource.

Returns

\Horde_Itip_Response

The prepared response.

factory()

factory(\Horde_Icalendar_Vevent  $vevent, \Horde_Itip_Resource  $resource) : \Horde_Itip

Factory for generating an iTip handler for an iCalendar invitation.

Parameters

\Horde_Icalendar_Vevent $vevent

The iCalendar request.

\Horde_Itip_Resource $resource

The invited resource.

Returns

\Horde_Itip

The iTip handler.