TYPO3
7.6
|
Public Member Functions | |
__construct (Swift_CharacterStream $charStream, Swift_StreamFilter $filter=null) | |
__sleep () | |
__wakeup () | |
encodeString ($string, $firstLineOffset=0, $maxLineLength=0) | |
charsetChanged ($charset) | |
__clone () | |
Protected Member Functions | |
getSafeMapShareId () | |
initSafeMap () | |
_encodeByteSequence (array $bytes, &$size) | |
_nextSequence ($size=4) | |
_standardize ($string) | |
Protected Attributes | |
$_charStream | |
$_filter | |
$_safeMap = array() | |
Static Protected Attributes | |
static | $_qpMap |
static | $_safeMapShare = array() |
Handles Quoted Printable (QP) Encoding in Swift Mailer.
Possibly the most accurate RFC 2045 QP implementation found in PHP.
Definition at line 18 of file QpEncoder.php.
__construct | ( | Swift_CharacterStream | $charStream, |
Swift_StreamFilter | $filter = null |
||
) |
Creates a new QpEncoder for the given CharacterStream.
Swift_CharacterStream | $charStream | to use for reading characters |
Swift_StreamFilter | $filter | if input should be canonicalized |
Definition at line 109 of file QpEncoder.php.
References $_safeMap, getSafeMapShareId(), and initSafeMap().
__clone | ( | ) |
__sleep | ( | ) |
Definition at line 121 of file QpEncoder.php.
__wakeup | ( | ) |
Definition at line 126 of file QpEncoder.php.
References $_safeMap, getSafeMapShareId(), and initSafeMap().
|
protected |
Encode the given byte array into a verbatim QP form.
integer[] | $bytes | |
int | $size |
Definition at line 232 of file QpEncoder.php.
Referenced by Swift_Mime_ContentEncoder_QpContentEncoder\encodeByteStream(), and encodeString().
|
protected |
Get the next sequence of bytes to read from the char stream.
int | $size | number of bytes to read |
Definition at line 256 of file QpEncoder.php.
Referenced by Swift_Mime_ContentEncoder_QpContentEncoder\encodeByteStream(), and encodeString().
|
protected |
Make sure CRLF is correct and HT/SPACE are in valid places.
string | $string |
Definition at line 268 of file QpEncoder.php.
Referenced by encodeString().
charsetChanged | ( | $charset | ) |
Updates the charset used.
string | $charset |
Implements Swift_Mime_CharsetObserver.
Definition at line 219 of file QpEncoder.php.
encodeString | ( | $string, | |
$firstLineOffset = 0 , |
|||
$maxLineLength = 0 |
|||
) |
Takes an unencoded string and produces a QP encoded string from it.
QP encoded strings have a maximum line length of 76 characters. If the first line needs to be shorter, indicate the difference with $firstLineOffset.
string | $string | to encode |
int | $firstLineOffset,optional | |
int | $maxLineLength,optional | 0 indicates the default of 76 chars |
Implements Swift_Encoder.
Definition at line 162 of file QpEncoder.php.
References _encodeByteSequence(), _nextSequence(), and _standardize().
|
protected |
Definition at line 136 of file QpEncoder.php.
Referenced by __construct(), and __wakeup().
|
protected |
Definition at line 141 of file QpEncoder.php.
Referenced by __construct(), and __wakeup().
|
protected |
Definition at line 25 of file QpEncoder.php.
Referenced by __clone().
|
protected |
Definition at line 32 of file QpEncoder.php.
|
staticprotected |
Definition at line 39 of file QpEncoder.php.
|
protected |
Definition at line 101 of file QpEncoder.php.
Referenced by __construct(), and __wakeup().
|
staticprotected |
Definition at line 94 of file QpEncoder.php.