PHP Класс Pommo_Mta, poMMo

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$_code security code - prevent oustide interferrence
$_failed
$_hash the email hash array('email' => 'subscriber_id')
$_id The ID of the current mailing
$_mailer the poMMo mailer
$_mailing the current mailing (object) body, serial, code, etc!
$_maxRunTime Number of seconds the MTA process is allowed to run for.
$_queue the current queue, holds an array of subscriber objects
$_queueSize Attempted number of mails to process per queue batch.
$_sent
$_serial serial of mailing, prevents 2 scripts from working on the same mailing
$_skipSecurity (bool) Skip Security checks
$_start Time the MTA process began
$_test (bool) True if this is a test mailing
$_throttler the throttle object

Открытые методы

Метод Описание
Pommo_Mta ( $args = [] ) Register function that will be called when the script terminates abruptly.
attach ( $name, &$obj )
poll ( ) Retrieves the current command from the DB and acts based on that.
processQueue ( ) continually sends mails from the queue until mailing completes or max runtime reached
pullQueue ( ) Verify if there are still subscribers to whom the mailing hasn't been sent. If there aren't, stop. If there are: Get some subscribers from the DB.
pushThrottler ( ) pushes queue into throttler
shutdown ( $msg = false, $destroy = true )
stop ( $finish = false )
update ( ) accepts a array of sent emails

Описание методов

Pommo_Mta() публичный Метод

Get code, test and id from URL. Retrieve mailing (subject, body, attachments, etc) that will be sent.
public Pommo_Mta ( $args = [] )

attach() публичный Метод

public attach ( $name, &$obj )

poll() публичный Метод

restart: Set command to "none" in the DB.
public poll ( )

processQueue() публичный Метод

continually sends mails from the queue until mailing completes or max runtime reached
public processQueue ( )

pullQueue() публичный Метод

Verify if there are still subscribers to whom the mailing hasn't been sent. If there aren't, stop. If there are: Get some subscribers from the DB.
public pullQueue ( )

pushThrottler() публичный Метод

pushes queue into throttler
public pushThrottler ( )

shutdown() публичный Метод

public shutdown ( $msg = false, $destroy = true )

stop() публичный Метод

public stop ( $finish = false )

update() публичный Метод

accepts a array of sent emails
public update ( )

Описание свойств

$_code публичное свойство

security code - prevent oustide interferrence
public $_code

$_failed публичное свойство

public $_failed

$_hash публичное свойство

the email hash array('email' => 'subscriber_id')
public $_hash

$_id публичное свойство

The ID of the current mailing
public $_id

$_mailer публичное свойство

the poMMo mailer
public $_mailer

$_mailing публичное свойство

the current mailing (object) body, serial, code, etc!
public $_mailing

$_maxRunTime публичное свойство

Number of seconds the MTA process is allowed to run for.
public $_maxRunTime

$_queue публичное свойство

the current queue, holds an array of subscriber objects
public $_queue

$_queueSize публичное свойство

Attempted number of mails to process per queue batch.
public $_queueSize

$_sent публичное свойство

public $_sent

$_serial публичное свойство

serial of mailing, prevents 2 scripts from working on the same mailing
public $_serial

$_skipSecurity публичное свойство

(bool) Skip Security checks
public $_skipSecurity

$_start публичное свойство

Time the MTA process began
public $_start

$_test публичное свойство

(bool) True if this is a test mailing
public $_test

$_throttler публичное свойство

the throttle object
public $_throttler