PHP Класс Swift_Mime_Headers_IdentificationHeader

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

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

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