Swift_Mime_ContentEncoder_NativeQpContentEncoder
in package
implements
Swift_Mime_ContentEncoder
Handles Quoted Printable (QP) Transfer Encoding in Swift Mailer using the PHP core function.
Tags
Interfaces, Classes and Traits
- Swift_Mime_ContentEncoder
- Interface for all Transfer Encoding schemes.
Table of Contents
- $charset : null|string
- __construct() : mixed
- charsetChanged() : mixed
- Notify this observer that the entity's charset has changed.
- encodeByteStream() : mixed
- Encode $in to $out.
- encodeString() : string
- Encode a given string to produce an encoded string.
- getName() : string
- Get the MIME name of this content encoding scheme.
- standardize() : string
- Make sure CRLF is correct and HT/SPACE are in valid places.
Properties
$charset
private
null|string
$charset
Methods
__construct()
public
__construct([null|string $charset = null ]) : mixed
Parameters
- $charset : null|string = null
Return values
mixed —charsetChanged()
Notify this observer that the entity's charset has changed.
public
charsetChanged(string $charset) : mixed
Parameters
- $charset : string
Return values
mixed —encodeByteStream()
Encode $in to $out.
public
encodeByteStream(Swift_OutputByteStream $os, Swift_InputByteStream $is, int $firstLineOffset, int $maxLineLength) : mixed
Parameters
- $os : Swift_OutputByteStream
-
to read from
- $is : Swift_InputByteStream
-
to write to
- $firstLineOffset : int
- $maxLineLength : int
-
0 indicates the default length for this encoding
Tags
Return values
mixed —encodeString()
Encode a given string to produce an encoded string.
public
encodeString(string $string, int $firstLineOffset, int $maxLineLength) : string
Parameters
- $string : string
- $firstLineOffset : int
-
if first line needs to be shorter
- $maxLineLength : int
-
0 indicates the default length for this encoding
Tags
Return values
string —getName()
Get the MIME name of this content encoding scheme.
public
getName() : string
Return values
string —standardize()
Make sure CRLF is correct and HT/SPACE are in valid places.
protected
standardize(string $string) : string
Parameters
- $string : string