$_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.
CSV Importer for subscribers
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.
$_schemadbs : array<mixed,\midcom\datamanager\schemadb>
The schema databases used for importing to various objects like persons and organizations
$_datamanagers : array<mixed,\midcom\datamanager\datamanager>
Datamanagers used for saving various objects like persons and organizations
import_subscribers(array $subscribers, \org_openpsa_directmarketing_campaign_dba $campaign) : array
Takes an array of new subscribers and processes each of them using datamanager.
array | $subscribers | The subscribers to import |
\org_openpsa_directmarketing_campaign_dba | $campaign | The campaign to import into |
Import status
get_workflow(string $identifier, array $options = array()) : \midcom\workflow\dialog
string | $identifier | |
array | $options |
_datamanager_process(string $type, array $subscriber, \midcom_core_dbaobject $object)
Process the datamanager
string | $type | Subscription type |
array | $subscriber | |
\midcom_core_dbaobject | $object |
_import_subscribers_campaign_member(array $subscriber, \org_openpsa_contacts_person_dba $person, \org_openpsa_directmarketing_campaign_dba $campaign)
array | $subscriber | |
\org_openpsa_contacts_person_dba | $person | |
\org_openpsa_directmarketing_campaign_dba | $campaign |
_import_subscribers_organization_member(array $subscriber, \org_openpsa_contacts_person_dba $person, \org_openpsa_contacts_group_dba $organization)
array | $subscriber | |
\org_openpsa_contacts_person_dba | $person | |
\org_openpsa_contacts_group_dba | $organization |