XOOPS RMCommon Utilities  2.1.8.91RC
 All Classes Namespaces Files Functions Variables
Swift_Mime_SimpleHeaderFactory Class Reference
Inheritance diagram for Swift_Mime_SimpleHeaderFactory:
Inheritance graph

Public Member Functions

 __construct (Swift_Mime_HeaderEncoder $encoder, Swift_Encoder $paramEncoder, $charset=null)
 
 charsetChanged ($charset)
 
 createDateHeader ($name, $timestamp=null)
 
 createIdHeader ($name, $ids=null)
 
 createMailboxHeader ($name, $addresses=null)
 
 createParameterizedHeader ($name, $value=null, $params=array())
 
 createPathHeader ($name, $path=null)
 
 createTextHeader ($name, $value=null)
 

Private Member Functions

 _setHeaderCharset (Swift_Mime_Header $header)
 

Private Attributes

 $_charset
 
 $_encoder
 
 $_paramEncoder
 

Detailed Description

Definition at line 27 of file SimpleHeaderFactory.php.

Constructor & Destructor Documentation

Swift_Mime_SimpleHeaderFactory::__construct ( Swift_Mime_HeaderEncoder  $encoder,
Swift_Encoder  $paramEncoder,
  $charset = null 
)

Creates a new SimpleHeaderFactory using $encoder and $paramEncoder.

Parameters
Swift_Mime_HeaderEncoder$encoder
Swift_Encoder$paramEncoder
string$charset

Definition at line 45 of file SimpleHeaderFactory.php.

Member Function Documentation

Swift_Mime_SimpleHeaderFactory::_setHeaderCharset ( Swift_Mime_Header  $header)
private

Apply the charset to the Header

Definition at line 179 of file SimpleHeaderFactory.php.

References Swift_Mime_Header\setCharset().

Referenced by createDateHeader(), createIdHeader(), createMailboxHeader(), createParameterizedHeader(), createPathHeader(), and createTextHeader().

Here is the call graph for this function:

Here is the caller graph for this function:

Swift_Mime_SimpleHeaderFactory::charsetChanged (   $charset)

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

Parameters
string$charset

Implements Swift_Mime_CharsetObserver.

Definition at line 169 of file SimpleHeaderFactory.php.

Swift_Mime_SimpleHeaderFactory::createDateHeader (   $name,
  $timestamp = null 
)

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

Parameters
string$name
int$timestamp
Returns
Swift_Mime_Header

Implements Swift_Mime_HeaderFactory.

Definition at line 76 of file SimpleHeaderFactory.php.

References _setHeaderCharset().

Here is the call graph for this function:

Swift_Mime_SimpleHeaderFactory::createIdHeader (   $name,
  $ids = null 
)

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

Parameters
string$name
string | array$ids
Returns
Swift_Mime_Header

Implements Swift_Mime_HeaderFactory.

Definition at line 137 of file SimpleHeaderFactory.php.

References _setHeaderCharset().

Here is the call graph for this function:

Swift_Mime_SimpleHeaderFactory::createMailboxHeader (   $name,
  $addresses = null 
)

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

Parameters
string$name
array | string$addresses
Returns
Swift_Mime_Header

Implements Swift_Mime_HeaderFactory.

Definition at line 59 of file SimpleHeaderFactory.php.

References _setHeaderCharset().

Here is the call graph for this function:

Swift_Mime_SimpleHeaderFactory::createParameterizedHeader (   $name,
  $value = null,
  $params = array() 
)

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

Parameters
string$name
string$value
array$params
Returns
Swift_Mime_ParameterizedHeader

Implements Swift_Mime_HeaderFactory.

Definition at line 111 of file SimpleHeaderFactory.php.

References _setHeaderCharset().

Here is the call graph for this function:

Swift_Mime_SimpleHeaderFactory::createPathHeader (   $name,
  $path = null 
)

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

Parameters
string$name
string$path
Returns
Swift_Mime_Header

Implements Swift_Mime_HeaderFactory.

Definition at line 154 of file SimpleHeaderFactory.php.

References $path, and _setHeaderCharset().

Here is the call graph for this function:

Swift_Mime_SimpleHeaderFactory::createTextHeader (   $name,
  $value = null 
)

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

Parameters
string$name
string$value
Returns
Swift_Mime_Header

Implements Swift_Mime_HeaderFactory.

Definition at line 93 of file SimpleHeaderFactory.php.

References _setHeaderCharset().

Here is the call graph for this function:

Member Data Documentation

Swift_Mime_SimpleHeaderFactory::$_charset
private

The charset of created Headers

Definition at line 37 of file SimpleHeaderFactory.php.

Swift_Mime_SimpleHeaderFactory::$_encoder
private

The HeaderEncoder used by these headers

Definition at line 31 of file SimpleHeaderFactory.php.

Swift_Mime_SimpleHeaderFactory::$_paramEncoder
private

The Encoder used by parameters

Definition at line 34 of file SimpleHeaderFactory.php.


The documentation for this class was generated from the following file: