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 |
Methods
CRM_Activity_Tokens constructor.
No description
Get all custom field tokens of $entity
No description
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 51
__construct()
CRM_Activity_Tokens 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
at line 77
alterActionScheduleQuery( $e)
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.