PHP 클래스 Swift_Mime_Headers_DateHeader, Halite

저자: Chris Corbyn
상속: extends Swift_Mime_Headers_AbstractHeader
파일 보기 프로젝트 열기: HaliteChallenge/Halite 1 사용 예제들

공개 메소드들

메소드 설명
__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