PHP Class Swift_Mime_ContentEncoder_NativeQpContentEncoder, Halite

Author: Lars Strojny
Inheritance: implements Swift_Mime_ContentEncoder
Show file Open project: HaliteChallenge/Halite Class Usage Examples

Public Methods

Method Description
__construct ( null | string $charset = null )
charsetChanged ( string $charset ) Notify this observer that the entity's charset has changed.
encodeByteStream ( Swift_OutputByteStream $os, Swift_InputByteStream $is, integer $firstLineOffset, integer $maxLineLength ) Encode $in to $out.
encodeString ( string $string, integer $firstLineOffset, integer $maxLineLength ) : string Encode a given string to produce an encoded string.
getName ( ) : string Get the MIME name of this content encoding scheme.

Protected Methods

Method Description
_standardize ( string $string ) : string Make sure CRLF is correct and HT/SPACE are in valid places.

Method Details

__construct() public method

public __construct ( null | string $charset = null )
$charset null | string

_standardize() protected method

Make sure CRLF is correct and HT/SPACE are in valid places.
protected _standardize ( string $string ) : string
$string string
return string

charsetChanged() public method

Notify this observer that the entity's charset has changed.
public charsetChanged ( string $charset )
$charset string

encodeByteStream() public method

Encode $in to $out.
public encodeByteStream ( Swift_OutputByteStream $os, Swift_InputByteStream $is, integer $firstLineOffset, integer $maxLineLength )
$os Swift_OutputByteStream to read from
$is Swift_InputByteStream to write to
$firstLineOffset integer
$maxLineLength integer 0 indicates the default length for this encoding

encodeString() public method

Encode a given string to produce an encoded string.
public encodeString ( string $string, integer $firstLineOffset, integer $maxLineLength ) : string
$string string
$firstLineOffset integer if first line needs to be shorter
$maxLineLength integer 0 indicates the default length for this encoding
return string

getName() public method

Get the MIME name of this content encoding scheme.
public getName ( ) : string
return string