PHP 클래스 Themsaid\MailPreview\PreviewTransport

상속: extends Illuminate\Mail\Transport\Transport
파일 보기 프로젝트 열기: themsaid/laravel-mail-preview 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$files Illuminate\Filesystem\Filesystem The Filesystem instance.
$previewPath string Get the preview path.

공개 메소드들

메소드 설명
__construct ( Illuminate\Filesystem\Filesystem $files, string $previewPath, integer $lifeTime = 60 ) : void Create a new preview transport instance.
send ( Swift_Mime_Message $message, &$failedRecipients = null )

보호된 메소드들

메소드 설명
createEmailPreviewDirectory ( ) : void Create the preview directory if necessary.
getEMLPreviewContent ( Swift_Mime_Message $message ) : string Get the EML content for the preview file.
getHTMLPreviewContent ( Swift_Mime_Message $message ) : string Get the HTML content for the preview file.
getPreviewFilePath ( Swift_Mime_Message $message ) : string Get the path to the email preview file.

비공개 메소드들

메소드 설명
cleanOldPreviews ( ) : void Delete previews older than the given life time configuration.
getMessageInfo ( Swift_Mime_Message $message ) : string Generate a human readable HTML comment with message info.

메소드 상세

__construct() 공개 메소드

Create a new preview transport instance.
public __construct ( Illuminate\Filesystem\Filesystem $files, string $previewPath, integer $lifeTime = 60 ) : void
$files Illuminate\Filesystem\Filesystem
$previewPath string
$lifeTime integer
리턴 void

createEmailPreviewDirectory() 보호된 메소드

Create the preview directory if necessary.
protected createEmailPreviewDirectory ( ) : void
리턴 void

getEMLPreviewContent() 보호된 메소드

Get the EML content for the preview file.
protected getEMLPreviewContent ( Swift_Mime_Message $message ) : string
$message Swift_Mime_Message
리턴 string

getHTMLPreviewContent() 보호된 메소드

Get the HTML content for the preview file.
protected getHTMLPreviewContent ( Swift_Mime_Message $message ) : string
$message Swift_Mime_Message
리턴 string

getPreviewFilePath() 보호된 메소드

Get the path to the email preview file.
protected getPreviewFilePath ( Swift_Mime_Message $message ) : string
$message Swift_Mime_Message
리턴 string

send() 공개 메소드

public send ( Swift_Mime_Message $message, &$failedRecipients = null )
$message Swift_Mime_Message

프로퍼티 상세

$files 보호되어 있는 프로퍼티

The Filesystem instance.
protected Filesystem,Illuminate\Filesystem $files
리턴 Illuminate\Filesystem\Filesystem

$previewPath 보호되어 있는 프로퍼티

Get the preview path.
protected string $previewPath
리턴 string