PHP Класс Swift_Message

Автор: Chris Corbyn
Наследование: extends Swift_Mime_SimpleMessage
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__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