CRM_Contribute_Tokens
class CRM_Contribute_Tokens extends AbstractTokenSubscriber
Class CRM_Contribute_Tokens
Generate "contribution.*" tokens.
At time of writing, we don't have any particularly special tokens -- we just do some basic formatting based on the corresponding DB field.
Properties
string | $entity | from AbstractTokenSubscriber | |
array | $tokenNames | from AbstractTokenSubscriber | |
array | $activeTokens | from AbstractTokenSubscriber |
Methods
Class constructor.
To handle variable tokens, override this function and return the active tokens.
To perform a bulk lookup before rendering tokens, override this function and return the prefetched data.
Get a list of tokens whose name and title match the DB fields.
Get alias tokens.
Details
in AbstractTokenSubscriber at line 58
static
getSubscribedEvents()
at line 79
__construct()
Class constructor.
at line 100
bool
checkActive(TokenProcessor $processor)
Check if the token processor is active.
in AbstractTokenSubscriber at line 116
registerTokens(TokenRegisterEvent $e)
Register the declared tokens.
at line 110
alterActionScheduleQuery(MailingQueryEvent $e)
Alter action schedule query.
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.
in AbstractTokenSubscriber at line 190
mixed
prefetch(TokenValueEvent $e)
To perform a bulk lookup before rendering tokens, override this function and return the prefetched data.
at line 127
mixed
evaluateToken(TokenRow $row, string $entity, string $field, mixed $prefetch = NULL)
at line 43
protected array
getPassthruTokens()
Get a list of tokens whose name and title match the DB fields.
at line 65
protected array
getAliasTokens()
Get alias tokens.