Hoa central
Static Public Member Functions | List of all members
Hoa\Mail\Content\Encoder\Encoder Interface Reference
Inheritance diagram for Hoa\Mail\Content\Encoder\Encoder:

Static Public Member Functions

static encode ($string, $isHeaderValue=false)
 
static decode ($string, $isHeaderValue=false)
 

Detailed Description

Interface .

Interface for encoders and decoders. Decoding must always target UTF-8.

Definition at line 49 of file Encoder.php.

Member Function Documentation

static Hoa\Mail\Content\Encoder\Encoder::decode (   $string,
  $isHeaderValue = false 
)
static

Decode a string.

Parameters
string$stringString to decode.
bool$isHeaderValueWhether the string is a header value.
Returns
string

Implemented in Hoa\Mail\Content\Encoder\QuotedPrintable, and Hoa\Mail\Content\Encoder\Base64.

static Hoa\Mail\Content\Encoder\Encoder::encode (   $string,
  $isHeaderValue = false 
)
static

Encode a string.

Parameters
string$stringString to encode.
bool$isHeaderValueWhether the string is a header value.
Returns
string

Implemented in Hoa\Mail\Content\Encoder\Base64, and Hoa\Mail\Content\Encoder\QuotedPrintable.


The documentation for this interface was generated from the following file: