PHP 클래스 Swift_Mime_Headers_PathHeader

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

공개 메소드들

메소드 설명
__construct ( string $name, Egulias\EmailValidator\EmailValidator $emailValidator ) Creates a new PathHeader with the given $name.
getAddress ( ) : string Get the address which is used in this Header (if any).
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.
setAddress ( string $address ) Set the Address which should appear in this Header.
setFieldBodyModel ( string $model ) Set the model for the field body.

비공개 메소드들

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

메소드 상세

__construct() 공개 메소드

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

getAddress() 공개 메소드

Null is returned if no address is set.
public getAddress ( ) : string
리턴 string

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 string email address.
public getFieldBodyModel ( ) : mixed
리턴 mixed

getFieldType() 공개 메소드

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

setAddress() 공개 메소드

Set the Address which should appear in this Header.
public setAddress ( string $address )
$address string

setFieldBodyModel() 공개 메소드

This method takes a string for an address.
public setFieldBodyModel ( string $model )
$model string