1178. Class

1178.1. Zend\Mime\Part

Class representing a MIME part.

1178.1.1. Methods

1178.1.1.1. __construct

__construct()

create a new Mime Part. The (unencoded) content of the Part as passed as a string or stream

Parameters:mixed – String or Stream containing the content

1178.1.1.2. isStream

isStream()

check if this part can be read as a stream. if true, getEncodedStream can be called, otherwise only getContent can be used to fetch the encoded content of the part

Return type:bool

1178.1.1.3. getEncodedStream

getEncodedStream()

if this was created with a stream, return a filtered stream for reading the content. very useful for large file attachments.

Parameters:string
Return type:stream
Throws :ExceptionRuntimeException if not a stream or unable to append filter

1178.1.1.4. getContent

getContent()

Get the Content of the current Mime Part in the given encoding.

Parameters:string
Return type:string

1178.1.1.5. getRawContent

getRawContent()

Get the RAW unencoded content from this part

Return type:string

1178.1.1.6. getHeadersArray

getHeadersArray()

Create and return the array of headers for this MIME part

Parameters:string
Return type:array

1178.1.1.7. getHeaders

getHeaders()

Return the headers for this part as a string

Parameters:string
Return type:String