All Data Structures Functions Variables Pages
Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions
SendGridEmailEventsJob Class Reference
Inheritance diagram for SendGridEmailEventsJob:
BaseJob SendGridTestEmailEventsJob

Public Member Functions

 run ()
 
 resolveMarkingPersonPrimaryEmailAsInvalid ($type, $zurmoPersonId)
 
- Public Member Functions inherited from BaseJob
 run ()
 
 getErrorMessage ()
 
 setMessageLogger (MessageLogger $messageLogger)
 
 getMessageLogger ()
 

Static Public Member Functions

static getDisplayName ()
 
static getType ()
 
static getRecommendedRunFrequencyContent ()
 
- Static Public Member Functions inherited from BaseJob
static shouldLoadJobQueueOnCleanupAndFallback ()
 
static getDisplayName ()
 
static getType ()
 
static resolveJobsForQueue ()
 
static loadJobQueue ()
 
static getRecommendedRunFrequencyContent ()
 
static getDefaultMessageLogger ()
 
static getRunTimeThresholdInSeconds ()
 
static showInJobManagerToRunManually ()
 
static jobExecutionInQueueDependsOnTime ()
 

Protected Member Functions

 processEventData ($eventWebhookFilePath)
 
 saveExternalApiEmailMessageActivity (EmailMessageActivity $emailMessageActivity, $value)
 
 resolveFileContent ($eventWebhookFilePath)
 
 getActivityTypeByEvent ($value)
 
 processActivityInformation ($value)
 

Static Protected Member Functions

static resolveAndUpdateEventInformationByStatus (&$value)
 

Additional Inherited Members

- Data Fields inherited from BaseJob
const JOB_QUEUE_PAGE_SIZE = 100
 
- Protected Attributes inherited from BaseJob
 $errorMessage
 
- Static Protected Attributes inherited from BaseJob
static $loadJobQueueOnCleanupAndFallback = false
 

Detailed Description

A job for processing email activities performed on the email send using sendgrid.

See Also
https://github.com/michaelp85/TS-SendGrid-Event-Webhook-Notifier/blob/master/mod.ts_sendgrid_event_webhook_notifier.php

Definition at line 41 of file SendGridEmailEventsJob.php.

Member Function Documentation

static getDisplayName ( )
static
Returns
Translated label that describes this job type.

Definition at line 46 of file SendGridEmailEventsJob.php.

static getType ( )
static
Returns
The type of the NotificationRules

Definition at line 54 of file SendGridEmailEventsJob.php.

run ( )

(non-PHPdoc)

See Also
BaseJob::run()

Definition at line 68 of file SendGridEmailEventsJob.php.

static resolveAndUpdateEventInformationByStatus ( $value)
staticprotected

Resolve and update event information by status of the message.

Parameters
array$value

Definition at line 97 of file SendGridEmailEventsJob.php.

processEventData (   $eventWebhookFilePath)
protected

Process event data.

Parameters
string$eventWebhookFilePath
Returns
void

Definition at line 134 of file SendGridEmailEventsJob.php.

saveExternalApiEmailMessageActivity ( EmailMessageActivity  $emailMessageActivity,
  $value 
)
protected

Save external api email message activity.

Parameters
EmailMessageActivity$emailMessageActivity
array$value

Definition at line 164 of file SendGridEmailEventsJob.php.

resolveFileContent (   $eventWebhookFilePath)
protected

Resolve file content.

Parameters
string$eventWebhookFilePath
Returns
string

Definition at line 182 of file SendGridEmailEventsJob.php.

getActivityTypeByEvent (   $value)
protected

Get activity type by event.

Parameters
array$value
Returns
string

Definition at line 192 of file SendGridEmailEventsJob.php.

processActivityInformation (   $value)
protected

Process actiity information.

Parameters
array$value

Definition at line 209 of file SendGridEmailEventsJob.php.


The documentation for this class was generated from the following file:
Generated on Wed Apr 1 2020 07:11:19