Mapping
abstract class Mapping implements MappingInterface
Class Mapping
Properties
protected | $id | ||
protected string | $entity | The basic entity to query (table name). |
Methods
Class constructor.
No description
No description
Get a printable label for this mapping type.
Get a printable label to use a header on the 'value' filter.
Get a printable label to use a 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.
No description
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 85
static Mapping
create(array $params)
Create mapping.
at line 94
__construct(array $params)
Class constructor.
at line 167
mixed
getId()
at line 174
string
getEntity()
at line 183
string
getLabel()
Get a printable label for this mapping type.
at line 192
string
getValueHeader()
Get a printable label to use a header on the 'value' filter.
at line 201
string
getStatusHeader()
Get a printable label to use a header on the 'status' filter.
at line 212
array
getValueLabels()
Get a list of value options.
at line 226
array
getStatusLabels(string|int $value)
Get a list of status options.
at line 244
array
getDateFields()
Get a list of available date fields.
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.
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.
at line 286
static protected
getValueLabelMap($name)
at line 328
array
validateSchedule(CRM_Core_DAO_ActionSchedule $schedule)
Determine whether a schedule based on this mapping is sufficiently complete.
at line 342
abstract 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 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.