Blesta
  • Package
  • Class
  • Tree
  • Deprecated

Packages

  • blesta
    • app
      • components
        • events
          • default
      • controllers
      • models
    • components
      • auth
      • delivery
        • interfax
        • postal
          • methods
      • download
      • email
      • exchange
        • rates
          • foxrate
          • google
            • finance
          • yahoo
            • finance
      • gateway
        • payments
      • gateways
      • invoice
        • delivery
        • templates
      • json
      • modules
      • net
        • http
        • net
          • amazon
            • s3
          • geo
            • ip
      • plugins
      • recaptcha
      • security
      • session
        • cart
      • settingscollection
      • upgrades
      • upload
      • vcard
    • helpers
      • currency
        • format
      • data
        • structure
          • array
          • string
      • text
        • parser
  • com
    • tecnick
      • tcpdf
        • blesta
          • components
            • invoice
              • templates
                • quickbooks
                  • invoice
                • templates
                  • default
  • Crypt
    • AES
    • DES
    • Hash
    • Random
    • RC4
    • Rijndael
    • RSA
    • TerraDES
  • File
    • ANSI
    • ASN1
    • X509
  • Math
    • BigInteger
  • minPHP
    • components
      • input
      • record
    • helpers
      • color
      • data
        • structure
      • date
      • html
      • xml
    • lib
  • Net
    • SFTP
    • SSH1
    • SSH2
  • None
  • PHP
  • PHPMailer
  • Services
    • JSON
  • Swift
    • ByteStream
    • CharacterStream
    • Encoder
    • Events
    • KeyCache
    • Mailer
    • Mime
    • Plugins
    • Transport

Classes

  • Swift_CharacterReader_GenericFixedWidthReader
  • Swift_CharacterReader_UsAsciiReader
  • Swift_CharacterReader_Utf8Reader
  • Swift_CharacterReaderFactory_SimpleCharacterReaderFactory
  • Swift_Encoder_Base64Encoder
  • Swift_Encoder_QpEncoder
  • Swift_Encoder_Rfc2231Encoder
  • Swift_Encoding

Interfaces

  • Swift_CharacterReader
  • Swift_CharacterReaderFactory
  • Swift_Encoder

Class Swift_Encoder_QpEncoder

Handles Quoted Printable (QP) Encoding in Swift Mailer. Possibly the most accurate RFC 2045 QP implementation found in PHP.

Swift_Encoder_QpEncoder implements Swift_Encoder

Direct known subclasses

Swift_Mime_ContentEncoder_QpContentEncoder, Swift_Mime_HeaderEncoder_QpHeaderEncoder

Package: Swift\Encoder
Author: Chris Corbyn
Located at vendors/swiftmailer/lib/classes/Swift/Encoder/QpEncoder.php

Methods summary

public
# __construct( Swift_CharacterStream $charStream, Swift_StreamFilter $filter = null )

Creates a new QpEncoder for the given CharacterStream.

Creates a new QpEncoder for the given CharacterStream.

Parameters

$charStream
Swift_CharacterStream
$charStream to use for reading characters
$filter
Swift_StreamFilter
$filter if input should be canonicalized
public
# __sleep( )
public
# __wakeup( )
protected
# getSafeMapShareId( )
protected
# initSafeMap( )
public string
# encodeString( string $string, integer $firstLineOffset = 0, integer $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.

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.

Parameters

$string
string
$string to encode
$firstLineOffset
integer
$firstLineOffset, optional
$maxLineLength
integer
$maxLineLength, optional, 0 indicates the default of 76 chars

Returns

string

Implementation of

Swift_Encoder::encodeString()
public
# charsetChanged( string $charset )

Updates the charset used.

Updates the charset used.

Parameters

$charset
string
$charset

Implementation of

Swift_Mime_CharsetObserver::charsetChanged()
protected string
# _encodeByteSequence( array $bytes, mixed & $size )

Encode the given byte array into a verbatim QP form.

Encode the given byte array into a verbatim QP form.

Parameters

$bytes
int[]
$bytes
$size

Returns

string
protected int[]
# _nextSequence( integer $size = 4 )

Get the next sequence of bytes to read from the char stream.

Get the next sequence of bytes to read from the char stream.

Parameters

$size
integer
$size number of bytes to read

Returns

int[]
protected string
# _standardize( string $string )

Make sure CRLF is correct and HT/SPACE are in valid places.

Make sure CRLF is correct and HT/SPACE are in valid places.

Parameters

$string
string
$string

Returns

string

Magic methods summary

Properties summary

protected Swift_CharacterStream $_charStream
#

The CharacterStream used for reading characters (as opposed to bytes).

The CharacterStream used for reading characters (as opposed to bytes).

protected Swift_StreamFilter $_filter
#

A filter used if input should be canonicalized.

A filter used if input should be canonicalized.

protected static string[] $_qpMap
#

Pre-computed QP for HUGE optmization.

Pre-computed QP for HUGE optmization.

protected static array $_safeMapShare
#
protected string[] $_safeMap
#

A map of non-encoded ascii characters.

A map of non-encoded ascii characters.

Blesta API documentation generated by ApiGen 2.8.0