CRM_Mailing_Tokens
class CRM_Mailing_Tokens extends AbstractTokenSubscriber
Class CRM_Mailing_Tokens
Generate "mailing.*" tokens.
To activate these tokens, the TokenProcessor context must specify either "mailingId" (int) or "mailing" (CRM_Mailing_BAO_Mailing).
Properties
string | $entity | from AbstractTokenSubscriber | |
array | $tokenNames | from AbstractTokenSubscriber | |
array | $activeTokens | from AbstractTokenSubscriber |
Methods
Class constructor.
Alter the query which prepopulates mailing data for scheduled reminders.
To handle variable tokens, override this function and return the active tokens.
Details
in AbstractTokenSubscriber at line 58
static
getSubscribedEvents()
at line 42
__construct()
Class constructor.
at line 63
bool
checkActive(TokenProcessor $processor)
in AbstractTokenSubscriber at line 116
registerTokens(TokenRegisterEvent $e)
Register the declared tokens.
in AbstractTokenSubscriber at line 140
alterActionScheduleQuery(MailingQueryEvent $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 149
evaluateTokens(TokenValueEvent $e)
Populate the token data.
in AbstractTokenSubscriber at line 174
mixed
getActiveTokens(TokenValueEvent $e)
To handle variable tokens, override this function and return the active tokens.
at line 76
mixed
prefetch(TokenValueEvent $e)
Prefetch tokens.