Class Swift_Mime_Headers_DateHeader
A Date MIME Header for Swift Mailer.
- Swift_Mime_Headers_AbstractHeader implements Swift_Mime_Header
- Swift_Mime_Headers_DateHeader
Author: Chris Corbyn
Located at vendors/swiftmailer/lib/classes/Swift/Mime/Headers/DateHeader.php
Methods summary
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
|
Methods inherited from Swift_Mime_Headers_AbstractHeader
__toString()
,
clearCachedValueIf()
,
createPhrase()
,
encodeWords()
,
generateTokenLines()
,
getCachedValue()
,
getCharset()
,
getEncodableWordTokens()
,
getEncoder()
,
getFieldName()
,
getGrammar()
,
getLanguage()
,
getMaxLineLength()
,
getTokenAsEncodedWord()
,
setCachedValue()
,
setCharset()
,
setEncoder()
,
setFieldName()
,
setGrammar()
,
setLanguage()
,
setMaxLineLength()
,
toString()
,
toTokens()
,
tokenNeedsEncoding()
Magic methods summary
Constants summary
Constants inherited from Swift_Mime_Header
TYPE_DATE
,
TYPE_ID
,
TYPE_MAILBOX
,
TYPE_PARAMETERIZED
,
TYPE_PATH
,
TYPE_TEXT
Properties summary
private
integer
|
$_timestamp |
#
The UNIX timestamp value of this Header. |