Class Swift_Mime_Headers_DateHeader
A Date MIME Header for Swift Mailer.
- Swift_Mime_Headers_AbstractHeader implements Swift_Mime_Header
- Swift_Mime_Headers_DateHeader
Package: Swift\Mime
Author: Chris Corbyn
Located at classes/swiftmailer/lib/classes/Swift/Mime/Headers/DateHeader.php
Author: Chris Corbyn
Located at classes/swiftmailer/lib/classes/Swift/Mime/Headers/DateHeader.php
public
|
#
__construct( string $name,
Creates a new DateHeader with $name and $timestamp. Example: <?php $header = new Swift_Mime_Headers_DateHeader('Date', time()); ?> |
public
integer
|
|
public
|
#
setFieldBodyModel( integer $model )
Set the model for the field body. This method takes a UNIX timestamp. |
public
mixed
|
|
public
integer
|
|
public
|
|
public
string
|
#
getFieldBody( )
Get the string value of the body in this Header.
This is not necessarily RFC 2822 compliant since folding white space will
not be added at this stage (see |
TYPE_DATE,
TYPE_ID,
TYPE_MAILBOX,
TYPE_PARAMETERIZED,
TYPE_PATH,
TYPE_TEXT
|
private
integer
|
$_timestamp
The UNIX timestamp value of this Header. |