CRM_Contact_ActionMapping
class CRM_Contact_ActionMapping extends Mapping
Class CRM_Contact_ActionMapping
This defines the scheduled-reminder functionality for contact entities. It is useful for, e.g., sending a reminder based on birth date, modification date, or other custom dates on the contact record.
Constants
CONTACT_MAPPING_ID |
The value for civicrm_action_schedule.mapping_id which identifies the "Contact" mapping. Note: This value is chosen to match legacy DB IDs. |
Properties
protected | $id | from Mapping | |
protected string | $entity | The basic entity to query (table name). | from Mapping |
Methods
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 Contact-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.
in Mapping at line 244
array
getDateFields()
Get a list of available date fields.
in Mapping at line 265
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.
in Mapping at line 282
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)
at line 80
array
validateSchedule(CRM_Core_DAO_ActionSchedule $schedule)
Determine whether a schedule based on this mapping is sufficiently complete.
at line 109
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 52
static
onRegisterActionMappings(MappingRegisterEvent $registrations)
Register Contact-related action mappings.