AutoresponderOrCampaignBaseJob Class Reference

Inheritance diagram for AutoresponderOrCampaignBaseJob:
BaseJob AutoresponderQueueMessagesInOutboxJob CampaignGenerateDueCampaignItemsJob CampaignMarkCompletedJob CampaignQueueMessagesInOutboxJob

Static Public Member Functions

static getType ()
static getRecommendedRunFrequencyContent ()

Protected Member Functions

 resolveBatchSize ()
 runGarbageCollection ($item)
 forgetModelsWithForgottenValidators ()
 addMaxmimumProcessingCountMessage ($modelsProcessedCount, $startingMemoryUsage)
 hasReachedMaximumProcessingCount ($modelsProcessedCount, $batchSize)
 addMaximumMemoryUsageReached ()

Protected Attributes

 $modelIdentifiersForForgottenValidators = array()

Detailed Description

Definition at line 37 of file AutoresponderOrCampaignBaseJob.php.


Member Function Documentation

static getType (  )  [static]
Returns:
The type of the NotificationRules

Reimplemented from BaseJob.

Definition at line 44 of file AutoresponderOrCampaignBaseJob.php.

static getRecommendedRunFrequencyContent (  )  [static]
Returns:
string content specifying how often this job should be run as a scheduled task.

Reimplemented from BaseJob.

Definition at line 51 of file AutoresponderOrCampaignBaseJob.php.

runGarbageCollection ( item  )  [protected]

Not pretty, but gets the job done. Solves memory leak problem.

Parameters:
AutoresponderItem or CampaignItem $item

Reimplemented in AutoresponderQueueMessagesInOutboxJob, and CampaignQueueMessagesInOutboxJob.

Definition at line 65 of file AutoresponderOrCampaignBaseJob.php.

hasReachedMaximumProcessingCount ( modelsProcessedCount,
batchSize 
) [protected]
Parameters:
int $modelsProcessedCount
int || null $batchSize
Returns:
bool

Definition at line 112 of file AutoresponderOrCampaignBaseJob.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Sat May 27 07:10:22 2017