PHP Класс Swift_Mime_MimePart, Halite

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

Защищенные свойства (Protected)

Свойство Тип Описание
$_userCharset The charset last specified by the user
$_userDelSp The delsp parameter last specified by the user
$_userFormat The format parameter last specified by the user

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

Метод Описание
__construct ( Swift_Mime_HeaderSet $headers, Swift_Mime_ContentEncoder $encoder, Swift_KeyCache $cache, Swift_Mime_Grammar $grammar, string $charset = null ) Create a new MimePart with $headers, $encoder and $cache.
charsetChanged ( string $charset ) Receive notification that the charset has changed on this document, or a parent document.
getCharset ( ) : string Get the character set of this entity.
getDelSp ( ) : boolean Test if delsp is being used for this entity.
getFormat ( ) : string Get the format of this entity (i.e. flowed or fixed).
getNestingLevel ( ) : integer Get the nesting level of this entity.
setBody ( mixed $body, string $contentType = null, string $charset = null ) : Swift_Mime_MimePart Set the body of this entity, either as a string, or as an instance of {@link Swift_OutputByteStream}.
setCharset ( string $charset ) : Swift_Mime_MimePart Set the character set of this entity.
setDelSp ( boolean $delsp = true ) : Swift_Mime_MimePart Turn delsp on or off for this entity.
setFormat ( string $format ) : Swift_Mime_MimePart Set the format of this entity (flowed or fixed).

Защищенные методы

Метод Описание
_convertString ( $string ) Encode charset when charset is not utf-8
_fixHeaders ( ) Fix the content-type and encoding of this entity
_setNestingLevel ( $level ) Set the nesting level of this entity

Описание методов

__construct() публичный Метод

Create a new MimePart with $headers, $encoder and $cache.
public __construct ( Swift_Mime_HeaderSet $headers, Swift_Mime_ContentEncoder $encoder, Swift_KeyCache $cache, Swift_Mime_Grammar $grammar, string $charset = null )
$headers Swift_Mime_HeaderSet
$encoder Swift_Mime_ContentEncoder
$cache Swift_KeyCache
$grammar Swift_Mime_Grammar
$charset string

_convertString() защищенный Метод

Encode charset when charset is not utf-8
protected _convertString ( $string )

_fixHeaders() защищенный Метод

Fix the content-type and encoding of this entity
protected _fixHeaders ( )

_setNestingLevel() защищенный Метод

Set the nesting level of this entity
protected _setNestingLevel ( $level )

charsetChanged() публичный Метод

Receive notification that the charset has changed on this document, or a parent document.
public charsetChanged ( string $charset )
$charset string

getCharset() публичный Метод

Get the character set of this entity.
public getCharset ( ) : string
Результат string

getDelSp() публичный Метод

Test if delsp is being used for this entity.
public getDelSp ( ) : boolean
Результат boolean

getFormat() публичный Метод

Get the format of this entity (i.e. flowed or fixed).
public getFormat ( ) : string
Результат string

getNestingLevel() публичный Метод

Get the nesting level of this entity.
public getNestingLevel ( ) : integer
Результат integer

setBody() публичный Метод

Set the body of this entity, either as a string, or as an instance of {@link Swift_OutputByteStream}.
public setBody ( mixed $body, string $contentType = null, string $charset = null ) : Swift_Mime_MimePart
$body mixed
$contentType string optional
$charset string optional
Результат Swift_Mime_MimePart

setCharset() публичный Метод

Set the character set of this entity.
public setCharset ( string $charset ) : Swift_Mime_MimePart
$charset string
Результат Swift_Mime_MimePart

setDelSp() публичный Метод

Turn delsp on or off for this entity.
public setDelSp ( boolean $delsp = true ) : Swift_Mime_MimePart
$delsp boolean
Результат Swift_Mime_MimePart

setFormat() публичный Метод

Set the format of this entity (flowed or fixed).
public setFormat ( string $format ) : Swift_Mime_MimePart
$format string
Результат Swift_Mime_MimePart

Описание свойств

$_userCharset защищенное свойство

The charset last specified by the user
protected $_userCharset

$_userDelSp защищенное свойство

The delsp parameter last specified by the user
protected $_userDelSp

$_userFormat защищенное свойство

The format parameter last specified by the user
protected $_userFormat