PHP 클래스 Common\Mailer\Message

상속: extends Swift_Message
파일 보기 프로젝트 열기: forkcms/forkcms 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( string $subject = null, string $body = null, string $contentType = null, string $charset = null ) Create a new Message.
addAttachments ( array $attachments ) : Message Attach multiple attachments to this message
newInstance ( string $subject = null, string $body = null, string $contentType = null, string $charset = null ) : Message Create a new Message.
parseHtml ( string $template, array $variables, boolean $addUTM = false ) : Message Parses a TwigTemplate with the wanted variables
setPlainText ( string $content ) : Message Add plaintext content as fallback for the html

비공개 메소드들

메소드 설명
addUTM ( string $html, string $subject ) : string
cssToInlineStyles ( string $html ) : string Converts all css to inline styles
getTemplateContent ( string $template, array $variables = null ) : string Returns the content from a given template
relativeToAbsolute ( string $html ) : string Replace internal links and images to absolute links

메소드 상세

__construct() 공개 메소드

Details may be optionally passed into the constructor.
public __construct ( string $subject = null, string $body = null, string $contentType = null, string $charset = null )
$subject string
$body string
$contentType string
$charset string

addAttachments() 공개 메소드

Attach multiple attachments to this message
public addAttachments ( array $attachments ) : Message
$attachments array
리턴 Message

newInstance() 공개 정적인 메소드

Create a new Message.
public static newInstance ( string $subject = null, string $body = null, string $contentType = null, string $charset = null ) : Message
$subject string
$body string
$contentType string
$charset string
리턴 Message

parseHtml() 공개 메소드

Parses a TwigTemplate with the wanted variables
public parseHtml ( string $template, array $variables, boolean $addUTM = false ) : Message
$template string
$variables array
$addUTM boolean
리턴 Message

setPlainText() 공개 메소드

Add plaintext content as fallback for the html
public setPlainText ( string $content ) : Message
$content string
리턴 Message