[ Index ]

MailPress 544

[ Index ]     [ Classes ]     [ Functions ]     [ Variables ]     [ Constants ]     [ Statistics ]    

title

Body

[close]

/mp-includes/Swiftmailer/classes/Swift/Mime/Headers/ -> DateHeader.php (summary)

(no description)

File Size: 125 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Swift_Mime_Headers_DateHeader:: (7 methods):
  __construct()
  getFieldType()
  setFieldBodyModel()
  getFieldBodyModel()
  getTimestamp()
  setTimestamp()
  getFieldBody()


Class: Swift_Mime_Headers_DateHeader  - X-Ref

A Date MIME Header for Swift Mailer.

__construct($name, Swift_Mime_Grammar $grammar)   X-Ref
Creates a new DateHeader with $name and $timestamp.

Example:
<code>
<?php
$header = new Swift_Mime_Headers_DateHeader('Date', time());
?>
</code>

param: string             $name    of Header
param: Swift_Mime_Grammar $grammar

getFieldType()   X-Ref
Get the type of Header that this instance represents.

return: int

setFieldBodyModel($model)   X-Ref
Set the model for the field body.

This method takes a UNIX timestamp.

param: int $model

getFieldBodyModel()   X-Ref
Get the model for the field body.

This method returns a UNIX timestamp.

return: mixed

getTimestamp()   X-Ref
Get the UNIX timestamp of the Date in this Header.

return: int

setTimestamp($timestamp)   X-Ref
Set the UNIX timestamp of the Date in this Header.

param: int $timestamp

getFieldBody()   X-Ref
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 {@link toString()} for that).

return: string



Generated: Thu Apr 28 18:38:52 2016 Cross-referenced by PHPXref 0.7.1