CRM_Mailing_ActionTokens
class CRM_Mailing_ActionTokens extends AbstractTokenSubscriber
Class CRM_Mailing_ActionTokens
Generate "action.*" tokens for mailings.
To activate these tokens, the TokenProcessor context must specify: "mailingJobId" (int) "mailingActionTarget" (array) with keys: 'id' => int, event queue ID 'hash' => string, event queue hash code 'contact_id' => int, contact_id, 'email' => string, email 'phone' => string, phone
Properties
string | $entity | from AbstractTokenSubscriber | |
array | $tokenNames | from AbstractTokenSubscriber |
Methods
Class constructor.
No description
Get all custom field tokens of $entity
Alter the query which prepopulates mailing data for scheduled reminders.
To perform a bulk lookup before rendering tokens, override this function and return the prefetched data.
No description
Details
in AbstractTokenSubscriber at line 57
static
getSubscribedEvents()
at line 48
__construct()
Class constructor.
at line 67
bool
checkActive( $processor)
in AbstractTokenSubscriber at line 107
registerTokens( $e)
Register the declared tokens.
in AbstractTokenSubscriber at line 127
array
getCustomTokens(string $entity)
Get all custom field tokens of $entity
in AbstractTokenSubscriber at line 147
alterActionScheduleQuery( $e)
Alter the query which prepopulates mailing data for scheduled reminders.
This is method is not always appropriate, but if you're specifically focused on scheduled reminders, it can be convenient.
in AbstractTokenSubscriber at line 156
evaluateTokens( $e)
Populate the token data.
in AbstractTokenSubscriber at line 185
mixed
prefetch( $e)
To perform a bulk lookup before rendering tokens, override this function and return the prefetched data.