Documentation

RecipientBuilder
in package

Class RecipientBuilder

Table of Contents

Constants

PHASE_ADDITION_FIRST  = 'addl-first'
Generate action_log's for new, first-time alerts to additional contacts.
PHASE_ADDITION_REPEAT  = 'addl-repeat'
Generate action_log's for repeated, follow-up alerts to additional contacts.
PHASE_RELATION_FIRST  = 'rel-first'
Generate action_log's for new, first-time alerts to related contacts.
PHASE_RELATION_REPEAT  = 'rel-repeat'
Generate action_log's for repeated, follow-up alerts to related contacts.

Properties

$actionSchedule  : CRM_Core_DAO_ActionSchedule
$mapping  : MappingInterface
$now  : mixed

Methods

__construct()  : mixed
build()  : mixed
Fill the civicrm_action_log with any new/missing TODOs.
buildAddlFirstPass()  : mixed
Generate action_log's for new, first-time alerts to additional contacts.
buildAddlRepeatPass()  : mixed
Generate action_log's for repeated, follow-up alerts to additional contacts.
buildRelFirstPass()  : mixed
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.
buildRelRepeatPass()  : mixed
Generate action_log's for repeated, follow-up alerts to related contacts.
getMappingTable()  : string
isSmartGroup()  : bool
joinReminder()  : CRM_Utils_SQL_Select
Add a JOIN clause like "INNER JOIN civicrm_action_log reminder ON...".
parseRepetitionInterval()  : int|string
Parse repetition interval.
prepareAddlFilter()  : CRM_Utils_SQL_Select|null
prepareContactFilter()  : CRM_Utils_SQL_Select
Prepare filter options for limiting by contact ID or group ID.
prepareLanguageFilter()  : string
Prepare language filter.
prepareQuery()  : CRM_Utils_SQL_Select
prepareRepetitionEndFilter()  : CRM_Utils_SQL_Select
prepareStartDateClauses()  : array<string|int, mixed>
resetOnTriggerDateChange()  : bool
Should we use the reference date when checking to see if we already sent reminders.
selectActionLogFields()  : CRM_Utils_SQL_Select
Generate a query fragment like for populating action logs, e.g.
selectIntoActionLog()  : CRM_Utils_SQL_Select
Generate a query fragment like for populating action logs, e.g.

Constants

PHASE_ADDITION_FIRST

Generate action_log's for new, first-time alerts to additional contacts.

public mixed PHASE_ADDITION_FIRST = 'addl-first'
Tags
see
buildAddlFirstPass

PHASE_ADDITION_REPEAT

Generate action_log's for repeated, follow-up alerts to additional contacts.

public mixed PHASE_ADDITION_REPEAT = 'addl-repeat'
Tags
see
buildAddlRepeatPass

PHASE_RELATION_FIRST

Generate action_log's for new, first-time alerts to related contacts.

public mixed PHASE_RELATION_FIRST = 'rel-first'
Tags
see
buildRelFirstPass

PHASE_RELATION_REPEAT

Generate action_log's for repeated, follow-up alerts to related contacts.

public mixed PHASE_RELATION_REPEAT = 'rel-repeat'
Tags
see
buildRelRepeatPass

Properties

Methods

buildAddlFirstPass()

Generate action_log's for new, first-time alerts to additional contacts.

protected buildAddlFirstPass() : mixed
Tags
throws
Exception

buildAddlRepeatPass()

Generate action_log's for repeated, follow-up alerts to additional contacts.

protected buildAddlRepeatPass() : mixed
Tags
throws
CRM_Core_Exception
throws
Exception

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.

protected buildRelFirstPass() : mixed
Tags
throws
Exception

buildRelRepeatPass()

Generate action_log's for repeated, follow-up alerts to related contacts.

protected buildRelRepeatPass() : mixed
Tags
throws
CRM_Core_Exception
throws
Exception

getMappingTable()

protected getMappingTable() : string
Return values
string

isSmartGroup()

protected isSmartGroup(int $groupId) : bool
Parameters
$groupId : int
Return values
bool

parseRepetitionInterval()

Parse repetition interval.

protected parseRepetitionInterval() : int|string
Return values
int|string

prepareLanguageFilter()

Prepare language filter.

protected prepareLanguageFilter(string $contactTableAlias) : string
Parameters
$contactTableAlias : string
Return values
string

prepareStartDateClauses()

protected prepareStartDateClauses() : array<string|int, mixed>
Return values
array<string|int, mixed>

resetOnTriggerDateChange()

Should we use the reference date when checking to see if we already sent reminders.

protected resetOnTriggerDateChange() : bool
Return values
bool

        
On this page

Search results