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
$activity
The activity for which we're generating ical.
protected
CRM_Activity_BAO_Activity
$activity
$icsfile
Path to temporary unique file, to hold generated .ics file
protected
string
$icsfile
Methods
__construct()
Constructor.
public
__construct(CRM_Activity_BAO_Activity &$act) : mixed
Parameters
- $act : CRM_Activity_BAO_Activity
-
Reference to an activity object.
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