RecipientBuilder
class RecipientBuilder
Class RecipientBuilder
Constants
PHASE_RELATION_FIRST |
Generate action_log's for new, first-time alerts to related contacts. |
PHASE_ADDITION_FIRST |
Generate action_log's for new, first-time alerts to additional contacts. |
PHASE_RELATION_REPEAT |
Generate action_log's for repeated, follow-up alerts to related contacts. |
PHASE_ADDITION_REPEAT |
Generate action_log's for repeated, follow-up alerts to additional contacts. |
Methods
No description
Fill the civicrm_action_log with any new/missing TODOs.
Generate action_log's for new, first-time alerts to related contacts, and contacts who are again eligible to receive the alert e.g. membership renewal reminders.
Generate action_log's for new, first-time alerts to additional contacts.
Generate action_log's for repeated, follow-up alerts to related contacts.
Generate action_log's for repeated, follow-up alerts to additional contacts.
No description
Parse repetition interval.
Prepare filter options for limiting by contact ID or group ID.
Prepare language filter.
No description
No description
No description
No description
Generate a query fragment like for populating action logs, e.g.
Generate a query fragment like for populating action logs, e.g.
Add a JOIN clause like "INNER JOIN civicrm_action_log reminder ON.
Should we use the reference date when checking to see if we already sent reminders.
Details
at line 143
__construct($now, CRM_Core_DAO_ActionSchedule $actionSchedule, MappingInterface $mapping)
at line 154
build()
Fill the civicrm_action_log with any new/missing TODOs.
at line 177
protected
buildRelFirstPass()
Generate action_log's for new, first-time alerts to related contacts, and contacts who are again eligible to receive the alert e.g. membership renewal reminders.
at line 197
protected
buildAddlFirstPass()
Generate action_log's for new, first-time alerts to additional contacts.
at line 226
protected
buildRelRepeatPass()
Generate action_log's for repeated, follow-up alerts to related contacts.
at line 256
protected
buildAddlRepeatPass()
Generate action_log's for repeated, follow-up alerts to additional contacts.
at line 291
protected CRM_Utils_SQL_Select
prepareQuery(string $phase)
at line 323
protected int|string
parseRepetitionInterval()
Parse repetition interval.
at line 349
protected CRM_Utils_SQL_Select
prepareContactFilter(string $contactIdField)
Prepare filter options for limiting by contact ID or group ID.
at line 393
protected string
prepareLanguageFilter(string $contactTableAlias)
Prepare language filter.
at line 413
protected array
prepareStartDateClauses()
at line 439
protected bool
isSmartGroup(int $groupId)
at line 464
protected CRM_Utils_SQL_Select
prepareRepetitionEndFilter(string $dateField)
at line 479
protected CRM_Utils_SQL_Select|null
prepareAddlFilter(string $contactIdField)
at line 498
protected CRM_Utils_SQL_Select
selectActionLogFields(string $phase, CRM_Utils_SQL_Select $query)
Generate a query fragment like for populating action logs, e.g.
"SELECT contact_id, entity_id, entity_table, action schedule_id"
at line 549
protected CRM_Utils_SQL_Select
selectIntoActionLog(string $phase, CRM_Utils_SQL_Select $query)
Generate a query fragment like for populating action logs, e.g.
"INSERT INTO civicrm_action_log (...) SELECT (...)"
at line 576
protected CRM_Utils_SQL_Select
joinReminder(string $joinType, string $for, CRM_Utils_SQL_Select $query)
Add a JOIN clause like "INNER JOIN civicrm_action_log reminder ON.
..".
at line 618
protected bool
resetOnTriggerDateChange()
Should we use the reference date when checking to see if we already sent reminders.