Swift_Mime_HeaderEncoder_Base64HeaderEncoder
extends Swift_Encoder_Base64Encoder
in package
implements
Swift_Mime_HeaderEncoder
Handles Base64 (B) Header Encoding in Swift Mailer.
Tags
Interfaces, Classes and Traits
- Swift_Mime_HeaderEncoder
- Interface for all Header Encoding schemes.
Table of Contents
- charsetChanged() : mixed
- Does nothing.
- encodeString() : string
- Takes an unencoded string and produces a Base64 encoded string from it.
- getName() : string
- Get the name of this encoding scheme.
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 $charset = 'utf-8' ]) : string
If the charset is iso-2022-jp, it uses mb_encode_mimeheader instead of default encodeString, otherwise pass to the parent method.
Parameters
- $string : string
-
string to encode
- $firstLineOffset : int
- $maxLineLength : int
-
optional, 0 indicates the default of 76 bytes
- $charset : string = 'utf-8'
Return values
string —getName()
Get the name of this encoding scheme.
public
getName() : string
Returns the string 'B'.