MailMimeParser 0.4

ConvertStreamFilter extends php_user_filter

Table of Contents

STREAM_FILTER_NAME  = 'mmp-convert.*'
Name used when registering with stream_filter_register.
$fnFilterName  : string
$leftover  : string
filter()  : int
Filter implementation converts calls the relevant encode/decode filter and chunk_split if needed, before returning PSFS_PASS_ON.
onCreate()  : bool
Sets up which function should be called.
getFilteredBucket()  : mixed
Sets up a remainder of read bytes if one of the last two bytes read is an '=' since quoted_printable_decode wouldn't work if one read operation ends with "=3" and the next begins with "D" for example.

Constants

STREAM_FILTER_NAME

Name used when registering with stream_filter_register.

public mixed STREAM_FILTER_NAME = 'mmp-convert.*'

Properties

Methods

filter()

Filter implementation converts calls the relevant encode/decode filter and chunk_split if needed, before returning PSFS_PASS_ON.

public filter(resource $in, resource $out, int &$consumed, bool $closing) : int
Parameters
$in : resource
$out : resource
$consumed : int
$closing : bool
Return values
int

onCreate()

Sets up which function should be called.

public onCreate() : bool
Return values
bool

getFilteredBucket()

Sets up a remainder of read bytes if one of the last two bytes read is an '=' since quoted_printable_decode wouldn't work if one read operation ends with "=3" and the next begins with "D" for example.

private getFilteredBucket(string $data) : mixed
Parameters
$data : string
Return values
mixed

Search results