modules/project/models/Mailgun.phpView Source

Show: PublicProtectedPrivateinherited
Table of Contents
Package
Default  

\Project_Model_Mailgun

Package: Project\Models
Project_Model_Mailgun
Author
Evgeniy  

Properties

>VPropertyprivate$db
Details
Type
n/a
>VPropertyprivate$eventDelivered = array("delivered")
Default valuearray("delivered")Details
Type
n/a
>VPropertyprivate$events = array("accepted", "rejected", "delivered", "failed", "complained")
Default valuearray("accepted", "rejected", "delivered", "failed", "complained")Details
Type
n/a
>VPropertyprivate$projId = 0
Default value0Details
Type
n/a

Methods

methodpublic__construct( $projId = "") : void

Parameters
NameTypeDescription
$projId
methodpubliccheckMailgunTable() : void

Create in not exists mailgun tablee

methodpublicgetEvents(\[type] $items) : \[type]

Mailgun get all evets from db

Parameters
NameTypeDescription
$items\[type]

[description]

Returns
TypeDescription
\[type][description]
methodpublicgetEventsByEmail(array $items, string $emailCol) : array

get all aevents for some emails

Parameters
NameTypeDescription
$itemsarray
$emailColstring
Returns
TypeDescription
array
methodpublicgetLog() : array

Get mailgun log

Returns
TypeDescription
array
methodpublicsendLog( $messageId,  $aEmails) : void

When send batch emails, saved dala about results and list of emails

Parameters
NameTypeDescription
$messageId
$aEmails
Documentation was generated by phpDocumentor 2.8.5.