PHP 클래스 Swift_Mime_Headers_IdentificationHeader

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

공개 메소드들

메소드 설명
__construct ( string $name, Egulias\EmailValidator\EmailValidator $emailValidator ) Creates a new IdentificationHeader with the given $name and $id.
getFieldBody ( ) : string Get the string value of the body in this Header.
getFieldBodyModel ( ) : array Get the model for the field body.
getFieldType ( ) : integer Get the type of Header that this instance represents.
getId ( ) : string Get the ID used in the value of this Header.
getIds ( ) : string[] Get the list of IDs used in this Header.
setFieldBodyModel ( mixed $model ) Set the model for the field body.
setId ( string | array $id ) Set the ID used in the value of this header.
setIds ( array $ids ) Set a collection of IDs to use in the value of this Header.

비공개 메소드들

메소드 설명
assertValidId ( string $id ) Throws an Exception if the id passed does not comply with RFC 2822.

메소드 상세

__construct() 공개 메소드

Creates a new IdentificationHeader with the given $name and $id.
public __construct ( string $name, Egulias\EmailValidator\EmailValidator $emailValidator )
$name string
$emailValidator Egulias\EmailValidator\EmailValidator

getFieldBody() 공개 메소드

This is not necessarily RFC 2822 compliant since folding white space will not be added at this stage (see {@see \toString()} for that).
또한 보기: toString()
public getFieldBody ( ) : string
리턴 string

getFieldBodyModel() 공개 메소드

This method returns an array of IDs
public getFieldBodyModel ( ) : array
리턴 array

getFieldType() 공개 메소드

Get the type of Header that this instance represents.
public getFieldType ( ) : integer
리턴 integer

getId() 공개 메소드

If multiple IDs are set only the first is returned.
public getId ( ) : string
리턴 string

getIds() 공개 메소드

Get the list of IDs used in this Header.
public getIds ( ) : string[]
리턴 string[]

setFieldBodyModel() 공개 메소드

This method takes a string ID, or an array of IDs.
public setFieldBodyModel ( mixed $model )
$model mixed

setId() 공개 메소드

Set the ID used in the value of this header.
public setId ( string | array $id )
$id string | array

setIds() 공개 메소드

Set a collection of IDs to use in the value of this Header.
public setIds ( array $ids )
$ids array