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

Public Member Functions

 __construct ($charset=null)
 
 charsetChanged ($charset)
 
 encodeByteStream (Swift_OutputByteStream $os, Swift_InputByteStream $is, $firstLineOffset=0, $maxLineLength=0)
 
 getName ()
 
 encodeString ($string, $firstLineOffset=0, $maxLineLength=0)
 

Protected Member Functions

 _standardize ($string)
 

Private Attributes

 $charset
 

Detailed Description

Handles Quoted Printable (QP) Transfer Encoding in Swift Mailer using the PHP core function.

Author
Lars Strojny

Definition at line 16 of file NativeQpContentEncoder.php.

Constructor & Destructor Documentation

__construct (   $charset = null)
Parameters
null | string$charset

Definition at line 26 of file NativeQpContentEncoder.php.

References $charset.

Member Function Documentation

_standardize (   $string)
protected

Make sure CRLF is correct and HT/SPACE are in valid places.

Parameters
string$string
Returns
string

Definition at line 105 of file NativeQpContentEncoder.php.

Referenced by encodeString().

charsetChanged (   $charset)

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

Parameters
string$charset

Implements Swift_Mime_CharsetObserver.

Definition at line 36 of file NativeQpContentEncoder.php.

References $charset.

encodeByteStream ( Swift_OutputByteStream  $os,
Swift_InputByteStream  $is,
  $firstLineOffset = 0,
  $maxLineLength = 0 
)

Encode $in to $out.

Parameters
Swift_OutputByteStream$osto read from
Swift_InputByteStream$isto write to
int$firstLineOffset
int$maxLineLength0 indicates the default length for this encoding
Exceptions
RuntimeException

Implements Swift_Mime_ContentEncoder.

Definition at line 51 of file NativeQpContentEncoder.php.

References encodeString(), Swift_OutputByteStream\read(), and Swift_InputByteStream\write().

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

Encode a given string to produce an encoded string.

Parameters
string$string
int$firstLineOffsetif first line needs to be shorter
int$maxLineLength0 indicates the default length for this encoding
Exceptions
RuntimeException
Returns
string

Implements Swift_Encoder.

Definition at line 88 of file NativeQpContentEncoder.php.

References _standardize().

Referenced by encodeByteStream().

getName ( )

Get the MIME name of this content encoding scheme.

Returns
string

Implements Swift_Mime_ContentEncoder.

Definition at line 72 of file NativeQpContentEncoder.php.

Member Data Documentation

$charset
private

Definition at line 21 of file NativeQpContentEncoder.php.

Referenced by __construct(), and charsetChanged().