Swift_Encoder_Base64Encoder
in package
implements
Swift_Encoder
Handles Base 64 Encoding in Swift Mailer.
Tags
Interfaces, Classes and Traits
- Swift_Encoder
- Interface for all Encoder schemes.
Table of Contents
- charsetChanged() : mixed
- Does nothing.
- encodeString() : string
- Takes an unencoded string and produces a Base64 encoded string from it.
Methods
charsetChanged()
Does nothing.
public
charsetChanged(mixed $charset) : mixed
Parameters
- $charset : mixed
Return values
mixed —encodeString()
Takes an unencoded string and produces a Base64 encoded string from it.
public
encodeString(string $string, int $firstLineOffset, int $maxLineLength) : string
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 : string
-
to encode
- $firstLineOffset : int
- $maxLineLength : int
-
optional, 0 indicates the default of 76 bytes