PHP 클래스 Swift_Message

저자: Chris Corbyn
상속: extends Swift_Mime_SimpleMessage
파일 보기 프로젝트 열기: swiftmailer/swiftmailer 1 사용 예제들

공개 메소드들

메소드 설명
__clone ( ) Clone Message Signers.
__construct ( string $subject = null, string $body = null, string $contentType = null, string $charset = null ) Create a new Message.
__wakeup ( )
addPart ( string | Swift_OutputByteStream $body, string $contentType = null, string $charset = null ) : Swift_Mime_SimpleMessage Add a MimePart to this Message.
attachSigner ( Swift_Signer $signer ) : Swift_Message Detach a signature handler from a message.
detachSigner ( Swift_Signer $signer ) : Swift_Message Attach a new signature handler to the message.
toByteStream ( Swift_InputByteStream $is ) Write this message to a {@link Swift_InputByteStream}.
toString ( ) : string Get this message as a complete string.

보호된 메소드들

메소드 설명
doSign ( ) loops through signers and apply the signatures.
restoreHeaders ( ) Remove or restore altered headers.
restoreMessage ( ) Restore message body.
saveHeaders ( array $altered ) save the original headers.
saveMessage ( ) save the message before any signature is applied.

메소드 상세

__clone() 공개 메소드

Clone Message Signers.
또한 보기: Swift_Mime_SimpleMimeEntity::__clone()
public __clone ( )

__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

__wakeup() 공개 메소드

public __wakeup ( )

addPart() 공개 메소드

Add a MimePart to this Message.
public addPart ( string | Swift_OutputByteStream $body, string $contentType = null, string $charset = null ) : Swift_Mime_SimpleMessage
$body string | Swift_OutputByteStream
$contentType string
$charset string
리턴 Swift_Mime_SimpleMessage

attachSigner() 공개 메소드

Detach a signature handler from a message.
public attachSigner ( Swift_Signer $signer ) : Swift_Message
$signer Swift_Signer
리턴 Swift_Message

detachSigner() 공개 메소드

Attach a new signature handler to the message.
public detachSigner ( Swift_Signer $signer ) : Swift_Message
$signer Swift_Signer
리턴 Swift_Message

doSign() 보호된 메소드

loops through signers and apply the signatures.
protected doSign ( )

restoreHeaders() 보호된 메소드

Remove or restore altered headers.
protected restoreHeaders ( )

restoreMessage() 보호된 메소드

Restore message body.
protected restoreMessage ( )

saveHeaders() 보호된 메소드

save the original headers.
protected saveHeaders ( array $altered )
$altered array

saveMessage() 보호된 메소드

save the message before any signature is applied.
protected saveMessage ( )

toByteStream() 공개 메소드

Write this message to a {@link Swift_InputByteStream}.
public toByteStream ( Swift_InputByteStream $is )
$is Swift_InputByteStream

toString() 공개 메소드

Get this message as a complete string.
public toString ( ) : string
리턴 string