Class Swift_Mime_SimpleHeaderFactory

InheritanceSwift_Mime_SimpleHeaderFactory
ImplementsSwift_Mime_HeaderFactory

Creates MIME headers.

Public Methods

Hide inherited methods

MethodDescriptionDefined By
__clone() Make a deep copy of object. Swift_Mime_SimpleHeaderFactory
__construct() Creates a new SimpleHeaderFactory using $encoder and $paramEncoder. Swift_Mime_SimpleHeaderFactory
charsetChanged() Notify this observer that the entity's charset has changed. Swift_Mime_SimpleHeaderFactory
createDateHeader() Create a new Date header using $timestamp (UNIX time). Swift_Mime_SimpleHeaderFactory
createIdHeader() Create a new ID header for Message-ID or Content-ID. Swift_Mime_SimpleHeaderFactory
createMailboxHeader() Create a new Mailbox Header with a list of $addresses. Swift_Mime_SimpleHeaderFactory
createParameterizedHeader() Create a new ParameterizedHeader with $name, $value and $params. Swift_Mime_SimpleHeaderFactory
createPathHeader() Create a new Path header with an address (path) in it. Swift_Mime_SimpleHeaderFactory
createTextHeader() Create a new basic text header with $name and $value. Swift_Mime_SimpleHeaderFactory

Method Details

__clone() public method

Make a deep copy of object.

public void __clone ( )
__construct() public method

Creates a new SimpleHeaderFactory using $encoder and $paramEncoder.

public void __construct ( Swift_Mime_HeaderEncoder $encoder, Swift_Encoder $paramEncoder, Swift_Mime_Grammar $grammar, $charset null )
$encoder Swift_Mime_HeaderEncoder
$paramEncoder Swift_Encoder
$grammar Swift_Mime_Grammar
$charset string|null
charsetChanged() public method

Notify this observer that the entity's charset has changed.

public void charsetChanged ( $charset )
$charset string
createDateHeader() public method

Create a new Date header using $timestamp (UNIX time).

public Swift_Mime_Header createDateHeader ( $name, $timestamp null )
$name string
$timestamp int|null
createIdHeader() public method

Create a new ID header for Message-ID or Content-ID.

public Swift_Mime_Header createIdHeader ( $name, $ids null )
$name string
$ids string|array
createMailboxHeader() public method

Create a new Mailbox Header with a list of $addresses.

public Swift_Mime_Header createMailboxHeader ( $name, $addresses null )
$name string
$addresses array|string|null
createParameterizedHeader() public method

Create a new ParameterizedHeader with $name, $value and $params.

public Swift_Mime_ParameterizedHeader createParameterizedHeader ( $name, $value null, $params = [] )
$name string
$value string
$params array
createPathHeader() public method

Create a new Path header with an address (path) in it.

public Swift_Mime_Header createPathHeader ( $name, $path null )
$name string
$path string
createTextHeader() public method

Create a new basic text header with $name and $value.

public Swift_Mime_Header createTextHeader ( $name, $value null )
$name string
$value string