PHP Класс Swift_Mime_Headers_DateHeader, Halite

Автор: Chris Corbyn
Наследование: extends Swift_Mime_Headers_AbstractHeader
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__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.

Описание методов

__construct() публичный Метод

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

getFieldBody() публичный Метод

This is not necessarily RFC 2822 compliant since folding white space will not be added at this stage (see {@link toString()} for that).
См. также: toString()
public getFieldBody ( ) : string
Результат string

getFieldBodyModel() публичный Метод

This method returns a UNIX timestamp.
public getFieldBodyModel ( ) : mixed
Результат mixed

getFieldType() публичный Метод

Get the type of Header that this instance represents.
public getFieldType ( ) : integer
Результат integer

getTimestamp() публичный Метод

Get the UNIX timestamp of the Date in this Header.
public getTimestamp ( ) : integer
Результат integer

setFieldBodyModel() публичный Метод

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

setTimestamp() публичный Метод

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