CRM_Contribute_ActionMapping_ByPage
class CRM_Contribute_ActionMapping_ByPage implements MappingInterface
Class CRM_Contribute_ActionMapping_ByPage
This defines the scheduled-reminder functionality for contribution entities. It is useful for sending a reminder based on: - The receipt-date, cancel-date, or thankyou-date. - The page on which the contribution was made.
Constants
MAPPING_ID |
The value for civicrm_action_schedule.mapping_id which identifies the "Contribution Page" mapping. |
Methods
Register Activity-related action mappings.
No description
No description
Get a printable label for this mapping type.
Get a printable label to use as the header on the 'value' filter.
Get a printable label to use as the header on the 'status' filter.
Get a list of value options.
Get a list of status options.
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 contacts who match the given schedule.
Determine whether a schedule based on this mapping should reset the reminder state if the trigger date changes.
Details
at line 50
static
onRegisterActionMappings(MappingRegisterEvent $registrations)
Register Activity-related action mappings.
at line 57
mixed
getId()
at line 64
string
getEntity()
at line 73
string
getLabel()
Get a printable label for this mapping type.
at line 82
string
getValueHeader()
Get a printable label to use as the header on the 'value' filter.
at line 91
string
getStatusHeader()
Get a printable label to use as the header on the 'status' filter.
at line 103
array
getValueLabels()
Get a list of value options.
at line 118
array
getStatusLabels(string|int $value)
Get a list of status options.
at line 128
array
getDateFields()
Get a list of available date fields.
at line 147
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 164
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.
at line 177
array
validateSchedule(CRM_Core_DAO_ActionSchedule $schedule)
Determine whether a schedule based on this mapping is sufficiently complete.
at line 194
CRM_Utils_SQL_Select
createQuery(CRM_Core_DAO_ActionSchedule $schedule, string $phase, array $defaultParams)
Generate a query to locate contacts who match the given schedule.
at line 231
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.