PHP 클래스 Pommo_Mta, poMMo

파일 보기 프로젝트 열기: soonick/poMMo 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$_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