SendGridEmailEventsJob Class Reference

Inheritance diagram for SendGridEmailEventsJob:
BaseJob SendGridTestEmailEventsJob

Public Member Functions

 run ()
 resolveMarkingPersonPrimaryEmailAsInvalid ($type, $zurmoPersonId)

Static Public Member Functions

static getDisplayName ()
static getType ()
static getRecommendedRunFrequencyContent ()

Protected Member Functions

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

Static Protected Member Functions

static resolveAndUpdateEventInformationByStatus (&$value)

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.

Reimplemented from BaseJob.

Definition at line 46 of file SendGridEmailEventsJob.php.

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

Reimplemented from BaseJob.

Reimplemented in SendGridTestEmailEventsJob.

Definition at line 54 of file SendGridEmailEventsJob.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 59 of file SendGridEmailEventsJob.php.

run (  ) 

(non-PHPdoc)

See also:
BaseJob::run()

Reimplemented from BaseJob.

Reimplemented in SendGridTestEmailEventsJob.

Definition at line 68 of file SendGridEmailEventsJob.php.

static resolveAndUpdateEventInformationByStatus ( &$  value  )  [static, protected]

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

Reimplemented in SendGridTestEmailEventsJob.

Definition at line 209 of file SendGridEmailEventsJob.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Tue Dec 10 07:11:16 2019