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 |
Methods
Class constructor.
Check if the token processor is active.
Get all custom field tokens of $entity
Alter action schedule query.
To perform a bulk lookup before rendering tokens, override this function and return the prefetched data.
No description
Get a list of tokens whose name and title match the DB fields.
Get alias tokens.
Details
in AbstractTokenSubscriber at line 57
static
getSubscribedEvents()
at line 78
__construct()
Class constructor.
at line 99
bool
checkActive( $processor)
Check if the token processor is active.
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
at line 110
alterActionScheduleQuery( $e)
Alter action schedule query.
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.
at line 127
mixed
evaluateToken( $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.