HumHub Documentation (unofficial)

Base64MimeHeaderEncoder extends Base64Encoder
in package
implements MimeHeaderEncoderInterface

FinalYes
Tags
author

Chris Corbyn

Table of Contents

Interfaces

MimeHeaderEncoderInterface

Methods

encodeString()  : string
Takes an unencoded string and produces a Base64 encoded string from it.
getName()  : string
Get the MIME name of this content encoding scheme.

Methods

encodeString()

Takes an unencoded string and produces a Base64 encoded string from it.

public encodeString(string $string[, string|null $charset = 'utf-8' ][, int $firstLineOffset = 0 ][, int $maxLineLength = 0 ]) : string

If the charset is iso-2022-jp, it uses mb_encode_mimeheader instead of default encodeString, otherwise pass to the parent method.

Parameters
$string : string
$charset : string|null = 'utf-8'
$firstLineOffset : int = 0

if first line needs to be shorter

$maxLineLength : int = 0
  • 0 indicates the default length for this encoding
Return values
string

getName()

Get the MIME name of this content encoding scheme.

public getName() : string
Return values
string

        
On this page

Search results