PHP 클래스 Swift_FileSpool

저자: Fabien Potencier
상속: implements Swift_Spool
파일 보기 프로젝트 열기: swiftmailer/swiftmailer 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( string $path ) Create a new FileSpool.
flushQueue ( Swift_Transport $transport, string[] &$failedRecipients = null ) : integer Sends messages using the given transport instance.
isStarted ( ) : boolean Tests if this Spool mechanism has started.
queueMessage ( Swift_Mime_Message $message ) : boolean Queues a message.
recover ( integer $timeout = 900 ) Execute a recovery if for any reason a process is sending for too long.
setRetryLimit ( integer $limit ) Allow to manage the enqueuing retry limit.
start ( ) Starts this Spool mechanism.
stop ( ) Stops this Spool mechanism.

보호된 메소드들

메소드 설명
getRandomString ( integer $count ) : string Returns a random string needed to generate a fileName for the queue.

메소드 상세

__construct() 공개 메소드

Create a new FileSpool.
public __construct ( string $path )
$path string

flushQueue() 공개 메소드

Sends messages using the given transport instance.
public flushQueue ( Swift_Transport $transport, string[] &$failedRecipients = null ) : integer
$transport Swift_Transport A transport instance
$failedRecipients string[] An array of failures by-reference
리턴 integer The number of sent e-mail's

getRandomString() 보호된 메소드

Returns a random string needed to generate a fileName for the queue.
protected getRandomString ( integer $count ) : string
$count integer
리턴 string

isStarted() 공개 메소드

Tests if this Spool mechanism has started.
public isStarted ( ) : boolean
리턴 boolean

queueMessage() 공개 메소드

Queues a message.
public queueMessage ( Swift_Mime_Message $message ) : boolean
$message Swift_Mime_Message The message to store
리턴 boolean

recover() 공개 메소드

Execute a recovery if for any reason a process is sending for too long.
public recover ( integer $timeout = 900 )
$timeout integer in second Defaults is for very slow smtp responses

setRetryLimit() 공개 메소드

Default, is ten and allows over 64^20 different fileNames
public setRetryLimit ( integer $limit )
$limit integer

start() 공개 메소드

Starts this Spool mechanism.
public start ( )

stop() 공개 메소드

Stops this Spool mechanism.
public stop ( )