Warning: mysql_connect(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/zurmoorg/public_html/z-header.php on line 8

Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/zurmoorg/public_html/z-header.php on line 8

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 Wed Jan 23 07:10:22 2019

Warning: mysql_connect(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected the timezone 'UTC' for now, but please set date.timezone to select your timezone. in /home/zurmoorg/public_html/z-footer.php on line 8

Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /home/zurmoorg/public_html/z-footer.php on line 8