|
TYPO3 API
SVNRelease
|
00001 <?php 00002 00003 /* 00004 * This file is part of SwiftMailer. 00005 * (c) 2004-2009 Chris Corbyn 00006 * 00007 * For the full copyright and license information, please view the LICENSE 00008 * file that was distributed with this source code. 00009 */ 00010 00011 //@require 'Swift/Mime/CharsetObserver.php'; 00012 00013 /** 00014 * Creates MIME headers. 00015 * @package Swift 00016 * @subpackage Mime 00017 * @author Chris Corbyn 00018 */ 00019 interface Swift_Mime_HeaderFactory extends Swift_Mime_CharsetObserver 00020 { 00021 00022 /** 00023 * Create a new Mailbox Header with a list of $addresses. 00024 * @param string $name 00025 * @param array|string $addresses 00026 * @return Swift_Mime_Header 00027 */ 00028 public function createMailboxHeader($name, $addresses = null); 00029 00030 /** 00031 * Create a new Date header using $timestamp (UNIX time). 00032 * @param string $name 00033 * @param int $timestamp 00034 * @return Swift_Mime_Header 00035 */ 00036 public function createDateHeader($name, $timestamp = null); 00037 00038 /** 00039 * Create a new basic text header with $name and $value. 00040 * @param string $name 00041 * @param string $value 00042 * @return Swift_Mime_Header 00043 */ 00044 public function createTextHeader($name, $value = null); 00045 00046 /** 00047 * Create a new ParameterizedHeader with $name, $value and $params. 00048 * @param string $name 00049 * @param string $value 00050 * @param array $params 00051 * @return Swift_Mime_ParameterizedHeader 00052 */ 00053 public function createParameterizedHeader($name, $value = null, 00054 $params = array()); 00055 00056 /** 00057 * Create a new ID header for Message-ID or Content-ID. 00058 * @param string $name 00059 * @param string|array $ids 00060 * @return Swift_Mime_Header 00061 */ 00062 public function createIdHeader($name, $ids = null); 00063 00064 /** 00065 * Create a new Path header with an address (path) in it. 00066 * @param string $name 00067 * @param string $path 00068 * @return Swift_Mime_Header 00069 */ 00070 public function createPathHeader($name, $path = null); 00071 00072 }
1.8.0