CRM_Activity_Tokens
class CRM_Activity_Tokens extends AbstractTokenSubscriber
Class CRM_Member_Tokens
Generate "activity.*" tokens.
This TokenSubscriber was produced by refactoring the code from the scheduled-reminder system with the goal of making that system more flexible. The current implementation is still coupled to scheduled-reminders. It would be good to figure out a more generic implementation which is not tied to scheduled reminders, although that is outside the current scope.
Properties
string | $entity | from AbstractTokenSubscriber | |
array | $tokenNames | from AbstractTokenSubscriber | |
array | $activeTokens | from AbstractTokenSubscriber |
Methods
CRM_Activity_Tokens 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 the basic tokens provided.
Get the tokens for custom fields
Details
in AbstractTokenSubscriber at line 58
static
getSubscribedEvents()
at line 51
__construct()
CRM_Activity_Tokens constructor.
at line 61
bool
checkActive(TokenProcessor $processor)
in AbstractTokenSubscriber at line 116
registerTokens(TokenRegisterEvent $e)
Register the declared tokens.
at line 70
alterActionScheduleQuery(MailingQueryEvent $e)
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 98
mixed
evaluateToken(TokenRow $row, string $entity, string $field, mixed $prefetch = NULL)
at line 120
protected array
getBasicTokens()
Get the basic tokens provided.
at line 134
protected array
getCustomFieldTokens()
Get the tokens for custom fields