A MIME Header.

package Swift
subpackage Mime
author Chris Corbyn

 Methods

Get the field body, prepared for folding into a final header value.

getFieldBody() : string

Returns

string

Get the model for the field body.

getFieldBodyModel() : mixed

The return type depends on the specifics of the Header.

Returns

mixed

Get the name of this header (e.g.

getFieldName() : string

Subject). The name is an identifier and as such will be immutable.

Returns

string

Get the type of Header that this instance represents.

getFieldType() : int

Set the charset used when rendering the Header.

setCharset(string $charset) 

Parameters

$charset

string

Set the model for the field body.

setFieldBodyModel(mixed $model) 

The actual types needed will vary depending upon the type of Header.

Parameters

$model

mixed

Get this Header rendered as a compliant string.

toString() : string

Returns

string

 Constants

 

Date and time headers

TYPE_DATE 
 

Identification headers

TYPE_ID 
 

Mailbox and address headers

TYPE_MAILBOX 
 

Parameterized headers (text + params)

TYPE_PARAMETERIZED 
 

Address path headers

TYPE_PATH 
 

Text headers

TYPE_TEXT