PHP Class Swift_Mime_Headers_UnstructuredHeader, Halite

Author: Chris Corbyn
Inheritance: extends Swift_Mime_Headers_AbstractHeader
显示文件 Open project: HaliteChallenge/Halite Class Usage Examples

Public Methods

Method Description
__construct ( string $name, Swift_Mime_HeaderEncoder $encoder, Swift_Mime_Grammar $grammar ) Creates a new SimpleHeader with $name.
getFieldBody ( ) : string Get the value of this header prepared for rendering.
getFieldBodyModel ( ) : string Get the model for the field body.
getFieldType ( ) : integer Get the type of Header that this instance represents.
getValue ( ) : string Get the (unencoded) value of this header.
setFieldBodyModel ( string $model ) Set the model for the field body.
setValue ( string $value ) Set the (unencoded) value of this header.

Method Details

__construct() public method

Creates a new SimpleHeader with $name.
public __construct ( string $name, Swift_Mime_HeaderEncoder $encoder, Swift_Mime_Grammar $grammar )
$name string
$encoder Swift_Mime_HeaderEncoder
$grammar Swift_Mime_Grammar

getFieldBody() public method

Get the value of this header prepared for rendering.
public getFieldBody ( ) : string
return string

getFieldBodyModel() public method

This method returns a string.
public getFieldBodyModel ( ) : string
return string

getFieldType() public method

Get the type of Header that this instance represents.
public getFieldType ( ) : integer
return integer

getValue() public method

Get the (unencoded) value of this header.
public getValue ( ) : string
return string

setFieldBodyModel() public method

This method takes a string for the field value.
public setFieldBodyModel ( string $model )
$model string

setValue() public method

Set the (unencoded) value of this header.
public setValue ( string $value )
$value string