## Zend_Mime_Part

Description

Class representing a MIME part.

- license: New BSD License
- copyright: Copyright (c) 2006 Zend Technologies USA Inc. (http://www.zend.com)

Located in /Zend/Mime/Part.php (line 45)

Variable Summary
mixed $boundary
mixed $charset
mixed $description
mixed $disposition
mixed $encoding
mixed $filename
mixed $id
mixed $type
mixed $_content
mixed $_isStream
Method Summary
Zend_Mime_Part __construct (mixed $content)
String getContent ()
stream getEncodedStream ()
String getHeaders ([ $EOL = Zend_Mime::LINEEND])
array getHeadersArray ([ $EOL = Zend_Mime::LINEEND])
bool isStream ()
Variables
mixed $boundary (line 54)

- access: public

mixed $charset (line 53)

- access: public

mixed $description (line 52)

- access: public

mixed $disposition (line 50)

- access: public

mixed $encoding = Zend_Mime::ENCODING_8BIT (line 48)

- access: public

mixed $filename (line 51)

- access: public

mixed $id (line 49)

- access: public

mixed $type = Zend_Mime::TYPE_OCTETSTREAM (line 47)

- access: public

mixed $_content (line 55)

- access: protected

mixed $_isStream = false (line 56)

- access: protected

Methods
Constructor __construct (line 66)

create a new Mime Part.

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

- access: public

Zend_Mime_Part __construct (mixed $content)

- mixed $content: String or Stream containing the content

getContent (line 146)

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

- access: public

String getContent ()
getEncodedStream (line 100)

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

- access: public
- throws: Zend_Mime_Exception if not a stream or unable to append filter

stream getEncodedStream ()
getHeaders (line 205)

Return the headers for this part as a string

- access: public

String getHeaders ([ $EOL = Zend_Mime::LINEEND])

- $EOL

getHeadersArray (line 161)

Create and return the array of headers for this MIME part

- access: public

array getHeadersArray ([ $EOL = Zend_Mime::LINEEND])

- $EOL

isStream (line 88)

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

- access: public

bool isStream ()

Documentation generated on Tue, 11 Jul 2006 12:17:52 -0500 by phpDocumentor 1.3.0RC6