TYPO3  7.6
Public Member Functions | List of all members
Swift_Encoder_Base64Encoder Class Reference
Inheritance diagram for Swift_Encoder_Base64Encoder:
Swift_Encoder Swift_Mime_CharsetObserver Swift_Mime_ContentEncoder_Base64ContentEncoder Swift_Mime_HeaderEncoder_Base64HeaderEncoder

Public Member Functions

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

Detailed Description

Handles Base 64 Encoding in Swift Mailer.

Author
Chris Corbyn

Definition at line 16 of file Base64Encoder.php.

Member Function Documentation

charsetChanged (   $charset)

Does nothing.

Implements Swift_Mime_CharsetObserver.

Definition at line 55 of file Base64Encoder.php.

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

Takes an unencoded string and produces a Base64 encoded string from it.

Base64 encoded strings have a maximum line length of 76 characters. If the first line needs to be shorter, indicate the difference with $firstLineOffset.

Parameters
string$stringto encode
int$firstLineOffset
int$maxLineLengthoptional, 0 indicates the default of 76 bytes
Returns
string

Implements Swift_Encoder.

Definition at line 31 of file Base64Encoder.php.