CRM_Event_ActionMapping
class CRM_Event_ActionMapping extends Mapping
Class CRM_Event_ActionMapping
This defines the scheduled-reminder functionality for CiviEvent participants. It allows one to target messages on the event's start-date/end-date, with additional filtering by event-type, event-template, or event-id.
Constants
EVENT_TYPE_MAPPING_ID |
The value for civicrm_action_schedule.mapping_id which identifies the "Event Type" mapping. Note: This value is chosen to match legacy DB IDs. |
EVENT_NAME_MAPPING_ID |
|
EVENT_TPL_MAPPING_ID |
|
Properties
protected | $id | from Mapping | |
protected string | $entity | The basic entity to query (table name). | from Mapping |
Methods
Get a list of available date fields.
Get a list of recipient types.
Get a list of recipients which match the given type.
Determine whether a schedule based on this mapping is sufficiently complete.
Generate a query to locate recipients who match the given schedule.
Determine whether a schedule based on this mapping should reset the reminder state if the trigger date changes.
Register CiviEvent-related action mappings.
Details
in Mapping at line 94
__construct(array $params)
Class constructor.
in Mapping at line 167
mixed
getId()
in Mapping at line 174
string
getEntity()
in Mapping at line 183
string
getLabel()
Get a printable label for this mapping type.
in Mapping at line 192
string
getValueHeader()
Get a printable label to use a header on the 'value' filter.
in Mapping at line 201
string
getStatusHeader()
Get a printable label to use a header on the 'status' filter.
in Mapping at line 212
array
getValueLabels()
Get a list of value options.
in Mapping at line 226
array
getStatusLabels(string|int $value)
Get a list of status options.
at line 91
array
getDateFields()
Get a list of available date fields.
at line 110
array
getRecipientTypes()
Get a list of recipient types.
Note: A single schedule may filter on zero or one recipient types. When an admin chooses a value, it's stored in $schedule->recipient.
at line 127
array
getRecipientListing(string $recipientType)
Get a list of recipients which match the given type.
Note: A single schedule may filter on multiple recipients. When an admin chooses value(s), it's stored in $schedule->recipient_listing.
in Mapping at line 286
static protected
getValueLabelMap($name)
in Mapping at line 328
array
validateSchedule(CRM_Core_DAO_ActionSchedule $schedule)
Determine whether a schedule based on this mapping is sufficiently complete.
at line 150
CRM_Utils_SQL_Select
createQuery(CRM_Core_DAO_ActionSchedule $schedule, string $phase, array $defaultParams)
Generate a query to locate recipients who match the given schedule.
in Mapping at line 352
bool
resetOnTriggerDateChange(CRM_Core_DAO_ActionSchedule $schedule)
Determine whether a schedule based on this mapping should reset the reminder state if the trigger date changes.
at line 55
static
onRegisterActionMappings(MappingRegisterEvent $registrations)
Register CiviEvent-related action mappings.