TYPO3  7.6
Public Member Functions | Private Attributes | List of all members
Swift_Encoder_Rfc2231Encoder Class Reference
Inheritance diagram for Swift_Encoder_Rfc2231Encoder:
Swift_Encoder Swift_Mime_CharsetObserver

Public Member Functions

 __construct (Swift_CharacterStream $charStream)
 
 encodeString ($string, $firstLineOffset=0, $maxLineLength=0)
 
 charsetChanged ($charset)
 
 __clone ()
 

Private Attributes

 $_charStream
 

Detailed Description

Handles RFC 2231 specified Encoding in Swift Mailer.

Author
Chris Corbyn

Definition at line 16 of file Rfc2231Encoder.php.

Constructor & Destructor Documentation

__construct ( Swift_CharacterStream  $charStream)

Creates a new Rfc2231Encoder using the given character stream instance.

Parameters
Swift_CharacterStream

Definition at line 30 of file Rfc2231Encoder.php.

Member Function Documentation

__clone ( )

Make a deep copy of object.

Definition at line 88 of file Rfc2231Encoder.php.

References $_charStream.

charsetChanged (   $charset)

Updates the charset used.

Parameters
string$charset

Implements Swift_Mime_CharsetObserver.

Definition at line 80 of file Rfc2231Encoder.php.

encodeString (   $string,
  $firstLineOffset = 0,
  $maxLineLength = 0 
)

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

Parameters
string$string
int$firstLineOffset
int$maxLineLengthoptional, 0 indicates the default of 75 bytes
Returns
string

Implements Swift_Encoder.

Definition at line 45 of file Rfc2231Encoder.php.

Member Data Documentation

$_charStream
private

Definition at line 23 of file Rfc2231Encoder.php.

Referenced by __clone().