PHP Class Swift_Mime_Headers_DateHeader, Halite

Author: Chris Corbyn
Inheritance: extends Swift_Mime_Headers_AbstractHeader
Mostra file Open project: HaliteChallenge/Halite Class Usage Examples

Public Methods

Method Description
__construct ( string $name, Swift_Mime_Grammar $grammar ) Creates a new DateHeader with $name and $timestamp.
getFieldBody ( ) : string Get the string value of the body in this Header.
getFieldBodyModel ( ) : mixed Get the model for the field body.
getFieldType ( ) : integer Get the type of Header that this instance represents.
getTimestamp ( ) : integer Get the UNIX timestamp of the Date in this Header.
setFieldBodyModel ( integer $model ) Set the model for the field body.
setTimestamp ( integer $timestamp ) Set the UNIX timestamp of the Date in this Header.

Method Details

__construct() public method

Example:
public __construct ( string $name, Swift_Mime_Grammar $grammar )
$name string of Header
$grammar Swift_Mime_Grammar

getFieldBody() public method

This is not necessarily RFC 2822 compliant since folding white space will not be added at this stage (see {@link toString()} for that).
See also: toString()
public getFieldBody ( ) : string
return string

getFieldBodyModel() public method

This method returns a UNIX timestamp.
public getFieldBodyModel ( ) : mixed
return mixed

getFieldType() public method

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

getTimestamp() public method

Get the UNIX timestamp of the Date in this Header.
public getTimestamp ( ) : integer
return integer

setFieldBodyModel() public method

This method takes a UNIX timestamp.
public setFieldBodyModel ( integer $model )
$model integer

setTimestamp() public method

Set the UNIX timestamp of the Date in this Header.
public setTimestamp ( integer $timestamp )
$timestamp integer