MidCOM DBA wrapped access to org_openpsa_campaign object, with some utility methods

package org.openpsa.directmarketing

 Methods

__construct ($id)

Parameters

$id

_on_creating ()

_on_loaded ()

_on_updating ()

get_testers ()

Populates the testers array from memberships

schedule_update_smart_campaign_members ($time)

Schedules a background memberships update for a smart campaign

Parameters

$time

update_smart_campaign_members ()

Creates/Removes members for this smart campaign based on the rules array NOTE: This is highly resource intensive for large campaigns

Returns

booleanindicating success/failure

_serialize_rules ()

Serializes rules to rulesSerialized

_unserialize_rules ()

Unserializes rulesSerialized to rules

 Properties

 

mixed $__mgdschema_class_name__

 

mixed $__midcom_class_name__

 

array $rules

Rules for smart-campaign
 

array $testers

List of tests members (stored as campaign_members, referenced here for easier access)

 Constants

 

TYPE_NORMAL

 

TYPE_SMART