Class representing a MIME part.

category Zend
package Zend_Mime

 Methods

create a new Mime Part.

__construct(mixed $content) 

The (unencoded) content of the Part as passed as a string or stream

Parameters

$content

mixed

String or Stream containing the content

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

getContent(string $EOL) : string

Parameters

$EOL

string

Returns

string

if this was created with a stream, return a filtered stream for reading the content.

getEncodedStream($EOL) : \Zend\Mime\stream

very useful for large file attachments.

Parameters

$EOL

Exceptions

\Zend\Mime\Exception\RuntimeException if not a stream or unable to append filter

Returns

\Zend\Mime\stream

Return the headers for this part as a string

getHeaders(string $EOL) : String

Parameters

$EOL

string

Returns

String

Create and return the array of headers for this MIME part

getHeadersArray(string $EOL) : array

access public

Parameters

$EOL

string

Returns

array

Get the RAW unencoded content from this part

getRawContent() : string

Returns

string

check if this part can be read as a stream.

isStream() : bool

if true, getEncodedStream can be called, otherwise only getContent can be used to fetch the encoded content of the part

Returns

bool

 Properties

 

$boundary

$boundary 

 

$charset

$charset 

 

$description

$description 

 

$disposition

$disposition 

 

$encoding

$encoding 

 

$filename

$filename 

 

$id

$id 

 

$language

$language 

 

$location

$location 

 

$type

$type 

 

$content

$content 

 

$isStream

$isStream