Class Swift_Encoder_Base64Encoder

InheritanceSwift_Encoder_Base64Encoder
ImplementsSwift_Encoder
SubclassesSwift_Mime_ContentEncoder_Base64ContentEncoder, Swift_Mime_HeaderEncoder_Base64HeaderEncoder

Handles Base 64 Encoding in Swift Mailer.

Public Methods

Hide inherited methods

MethodDescriptionDefined By
charsetChanged() Does nothing. Swift_Encoder_Base64Encoder
encodeString() Takes an unencoded string and produces a Base64 encoded string from it. Swift_Encoder_Base64Encoder

Method Details

charsetChanged() public method

Does nothing.

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

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.

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

To encode

$firstLineOffset int
$maxLineLength int

Optional, 0 indicates the default of 76 bytes