PHP 클래스 Pommo_Throttler, poMMo

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

공개 메소드들

메소드 설명
Pommo_Throttler ( $p, &$history, &$sent, &$sentBytes ) bThrottler() - simple initialization of class variables.
byteTracking ( ) returns status of byte tracking - '1' if disabled, '2' if enabled, '3' if domain enabled, '4' if both enabled
clearQueue ( ) -----------------------------------------------------------
domainCheck ( &$domain ) domainCheck() - validates that a domain has not exceeded its limit per period
domainRelease ( $attempt ) attempts to release an email from the queue or quarantine, after checking with domain controller
loadQueue ( &$queue ) adds more emails to the queue.
mailsInQueue ( ) mailsInQueue() - Returns TRUE if there are mails left to process
pause ( )
pullQueue ( ) pullQueue() - pops & returns an email address from the queue or quarantine. Returns FALSE if throttled back.
pushQueue ( &$q )
release ( ) attempts to release an email from the queue or quarantine
slowBytes ( )
slowdown ( )
smartInit ( ) sets the mode, hP, and cS according to target mails per second
speedup ( )
updateBytes ( $bytes, $domain = FALSE ) updateBytes() - Updates the bytes sent. Called by parent when byte throttling is enabled.

메소드 상세

Pommo_Throttler() 공개 메소드

bThrottler() - simple initialization of class variables.
public Pommo_Throttler ( $p, &$history, &$sent, &$sentBytes )

byteTracking() 공개 메소드

returns status of byte tracking - '1' if disabled, '2' if enabled, '3' if domain enabled, '4' if both enabled
public byteTracking ( )

clearQueue() 공개 메소드

-----------------------------------------------------------
public clearQueue ( )

domainCheck() 공개 메소드

domainCheck() - validates that a domain has not exceeded its limit per period
public domainCheck ( &$domain )

domainRelease() 공개 메소드

attempts to release an email from the queue or quarantine, after checking with domain controller
public domainRelease ( $attempt )

loadQueue() 공개 메소드

adds more emails to the queue.
public loadQueue ( &$queue )

mailsInQueue() 공개 메소드

mailsInQueue() - Returns TRUE if there are mails left to process
public mailsInQueue ( )

pause() 공개 메소드

public pause ( )

pullQueue() 공개 메소드

pullQueue() - pops & returns an email address from the queue or quarantine. Returns FALSE if throttled back.
public pullQueue ( )

pushQueue() 공개 메소드

public pushQueue ( &$q )

release() 공개 메소드

attempts to release an email from the queue or quarantine
public release ( )

slowBytes() 공개 메소드

public slowBytes ( )

slowdown() 공개 메소드

public slowdown ( )

smartInit() 공개 메소드

sets the mode, hP, and cS according to target mails per second
public smartInit ( )

speedup() 공개 메소드

public speedup ( )

updateBytes() 공개 메소드

updateBytes() - Updates the bytes sent. Called by parent when byte throttling is enabled.
public updateBytes ( $bytes, $domain = FALSE )