$_component
$_component : string
The name of the component, e.g. net.nehmer.static. Should be used whenever the component's name is required instead of hardcoding it.
Campaign message sender
Note, that the request data, for ease of use, already contains the L10n Databases of the Component and MidCOM itself located in this class. They are stored as 'l10n' and 'l10n_midcom'. Also available as 'config' is the current component configuration.
$_message : \org_openpsa_directmarketing_campaign_message_dba
The message we're working on
$_backend : \org_openpsa_directmarketing_sender_backend
The backend to use
__construct(\org_openpsa_directmarketing_campaign_message_dba $message, array $config = array())
\org_openpsa_directmarketing_campaign_message_dba | $message | The message we're working on |
array | $config | Configuration that gets handed to the backend |
get_workflow(string $identifier, array $options = array()) : \midcom\workflow\dialog
string | $identifier | |
array | $options |
_send_member(\org_openpsa_directmarketing_campaign_member_dba $member, $subject, $content, $from)
\org_openpsa_directmarketing_campaign_member_dba | $member | |
$subject | ||
$content | ||
$from |
_create_token() : string
Creates a random token string that can be used to track a single delivery. The returned token string will only contain lowercase alphanumeric characters and will start with a lowercase letter to avoid problems with special processing being triggered by special characters in the token string.
random token string
_get_person(\org_openpsa_directmarketing_campaign_member_dba $member) : mixed
Check is given member has denied contacts of given type
\org_openpsa_directmarketing_campaign_member_dba | $member | campaign_member object related to the person |
org_openpsa_contacts_person_dba person on success, false if denied