Class Swift_Encoder_Rfc2231Encoder

InheritanceSwift_Encoder_Rfc2231Encoder
ImplementsSwift_Encoder

Handles RFC 2231 specified Encoding in Swift Mailer.

Public Methods

Hide inherited methods

MethodDescriptionDefined By
__clone() Make a deep copy of object. Swift_Encoder_Rfc2231Encoder
__construct() Creates a new Rfc2231Encoder using the given character stream instance. Swift_Encoder_Rfc2231Encoder
charsetChanged() Updates the charset used. Swift_Encoder_Rfc2231Encoder
encodeString() Takes an unencoded string and produces a string encoded according to RFC 2231 from it. Swift_Encoder_Rfc2231Encoder

Method Details

__clone() public method

Make a deep copy of object.

public void __clone ( )
__construct() public method

Creates a new Rfc2231Encoder using the given character stream instance.

public void __construct ( Swift_CharacterStream $charStream )
$charStream
charsetChanged() public method

Updates the charset used.

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

Takes an unencoded string and produces a string encoded according to RFC 2231 from it.

public string encodeString ( $string, $firstLineOffset 0, $maxLineLength 0 )
$string string
$firstLineOffset int
$maxLineLength int

Optional, 0 indicates the default of 75 bytes