$_config
$_config :
Campaign message sender backend for email
$_message : \org_openpsa_directmarketing_campaign_message_dba
__construct(array $config, \org_openpsa_directmarketing_campaign_message_dba $message)
Constructor
array | $config | Backend configuration |
\org_openpsa_directmarketing_campaign_message_dba | $message | The message we're working on |
add_member_constraints(\midcom_core_querybuilder $qb)
Adds necessary constraints to member QB to find valid entries
\midcom_core_querybuilder | $qb | The QB instance to work on |
send(\org_openpsa_contacts_person_dba $person, \org_openpsa_directmarketing_campaign_member_dba $member, string $token, string $subject, string $content, string $from)
This does the actual sending
\org_openpsa_contacts_person_dba | $person | The recipient |
\org_openpsa_directmarketing_campaign_member_dba | $member | The member object |
string | $token | Message token |
string | $subject | Message subject |
string | $content | Message content |
string | $from | Message sender |
_insert_link_detector(string $html, string $address) : string
Inserts a link detector to the given HTML source. All outgoing HTTP links in the source HTML are replaced with the given link detector address so that the token "URL" is replaced with encoded form of the original link. It is expected that the link detector address points to a script that records the passed link and forwards the client to the real link target.
string | $html | the HTML source |
string | $address | the link detector address |
HTML source with the link detector