MailMimeParser 2.3

HeaderParser
in package

Reads headers from an input stream, adding them to a PartHeaderContainer.

Tags
author

Zaahid Bateson

Table of Contents

parse()  : self
Reads header lines up to an empty line, adding them to the passed PartHeaderContainer.
addRawHeaderToPart()  : self
Ensures the header isn't empty and contains a colon separator character, then splits it and adds it to the passed PartHeaderContainer.

Methods

parse()

Reads header lines up to an empty line, adding them to the passed PartHeaderContainer.

public parse(resource $handle, PartHeaderContainer $container) : self
Parameters
$handle : resource

The resource handle to read from.

$container : PartHeaderContainer

the container to add headers to.

Return values
self

addRawHeaderToPart()

Ensures the header isn't empty and contains a colon separator character, then splits it and adds it to the passed PartHeaderContainer.

private addRawHeaderToPart(string $header, PartHeaderContainer $headerContainer) : self
Parameters
$header : string

the header line

$headerContainer : PartHeaderContainer

the container

Return values
self

Search results