Added feature #15998: Create a new API to send mails based on SwiftMailer to replace...
[Packages/TYPO3.CMS.git] / typo3 / contrib / swiftmailer / classes / Swift / Encoder.php
1 <?php
2
3 /*
4 * This file is part of SwiftMailer.
5 * (c) 2004-2009 Chris Corbyn
6 *
7 * For the full copyright and license information, please view the LICENSE
8 * file that was distributed with this source code.
9 */
10
11 //@require 'Swift/Mime/CharsetObserver.php';
12
13 /**
14 * Interface for all Encoder schemes.
15 * @package Swift
16 * @subpackage Encoder
17 * @author Chris Corbyn
18 */
19 interface Swift_Encoder extends Swift_Mime_CharsetObserver
20 {
21
22 /**
23 * Encode a given string to produce an encoded string.
24 * @param string $string
25 * @param int $firstLineOffset if first line needs to be shorter
26 * @param int $maxLineLength - 0 indicates the default length for this encoding
27 * @return string
28 */
29 public function encodeString($string, $firstLineOffset = 0,
30 $maxLineLength = 0);
31
32 }