CampaignItemsUtil Class Reference

Inheritance diagram for CampaignItemsUtil:
AutoresponderAndCampaignItemsUtil

Static Public Member Functions

static generateCampaignItemsForDueCampaigns ($pageSize=null, $campaignPageSize=1)
static getCreatePageSize ($returnDefaultIfMissing=true, $setDefaultIfMissing=false)
static setCreatePageSize ($size)

Data Fields

const CONFIG_KEY = 'CampaignItemsToCreatePageSize'
const CONFIG_MODULE_NAME = 'CampaignsModule'
const DEFAULT_CAMPAIGNITEMS_TO_CREATE_PAGE_SIZE = 200

Static Protected Member Functions

static generateCampaignItems ($campaign, $pageSize)

Detailed Description

Helper class for working with campaignItem

Definition at line 40 of file CampaignItemsUtil.php.


Member Function Documentation

static generateCampaignItemsForDueCampaigns ( pageSize = null,
campaignPageSize = 1 
) [static]

For now we should limit to process one campaign at a time until it is completely processed. This will avoid potential performance problems.

Parameters:
null $pageSize - used to determine how many campaignItems to create per run.
int $campaignPageSize
Returns:
bool
Exceptions:
FailedToSaveModelException 

Definition at line 56 of file CampaignItemsUtil.php.

static getCreatePageSize ( returnDefaultIfMissing = true,
setDefaultIfMissing = false 
) [static]

Return the page size used in the creation of campaign items

Parameters:
bool $returnDefaultIfMissing
bool $setDefaultIfMissing
Returns:
int

Definition at line 142 of file CampaignItemsUtil.php.

static setCreatePageSize ( size  )  [static]

Stores the campaign items create page size as a global configuration value

Parameters:
int $size

Definition at line 162 of file CampaignItemsUtil.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Tue Apr 25 07:10:24 2017