Documentation

CRM_Activity_BAO_ICalendar
in package

Generate ical invites for activities.

Table of Contents

Properties

$activity  : CRM_Activity_BAO_Activity
The activity for which we're generating ical.
$icsfile  : string
Path to temporary unique file, to hold generated .ics file

Methods

__construct()  : mixed
Constructor.
addAttachment()  : string|null
Add an ics attachment to the input array.
cleanup()  : mixed
Remove temp file.
getPrimaryEmail()  : string

Properties

$icsfile

Path to temporary unique file, to hold generated .ics file

protected string $icsfile

Methods

addAttachment()

Add an ics attachment to the input array.

public addAttachment(array<string|int, mixed> &$attachments, array<string|int, mixed> $contacts) : string|null
Parameters
$attachments : array<string|int, mixed>

Reference to array in same format returned from CRM_Core_BAO_File::getEntityFile().

$contacts : array<string|int, mixed>

Array of contacts (attendees).

Return values
string|null

Array index of the added attachment in the $attachments array, else NULL.

cleanup()

Remove temp file.

public cleanup() : mixed

getPrimaryEmail()

private getPrimaryEmail() : string
Tags
todo

Is there a better way to do this?

Return values
string

        
On this page

Search results