Class Swift_Encoder_Base64Encoder
Inheritance | Swift_Encoder_Base64Encoder |
---|---|
Implements | Swift_Encoder |
Subclasses | Swift_Mime_ContentEncoder_Base64ContentEncoder, Swift_Mime_HeaderEncoder_Base64HeaderEncoder |
Handles Base 64 Encoding in Swift Mailer.
Public Methods
Method | Description | Defined 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
Does nothing.
public void charsetChanged ( $charset ) | ||
$charset |
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 |