PHP Класс Swift_Mime_Headers_PathHeader

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

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

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