Public Member Functions | Data Fields | Protected Attributes

Zend_Mime_Part Class Reference

Public Member Functions

 __construct ($content)
 isStream ()
 getEncodedStream ()
 getContent ($EOL=Zend_Mime::LINEEND)
 getHeadersArray ($EOL=Zend_Mime::LINEEND)
 getHeaders ($EOL=Zend_Mime::LINEEND)

Data Fields

 $type = Zend_Mime::TYPE_OCTETSTREAM
 $encoding = Zend_Mime::ENCODING_8BIT
 $id
 $disposition
 $filename
 $description
 $charset
 $boundary
 $location
 $language

Protected Attributes

 $_content
 $_isStream = false

Detailed Description

Definition at line 35 of file Part.php.


Constructor & Destructor Documentation

__construct ( content )

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

Parameters:
mixed$contentString or Stream containing the content

Definition at line 58 of file Part.php.


Member Function Documentation

getContent ( EOL = Zend_Mime::LINEEND )

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

Returns:
String

Definition at line 141 of file Part.php.

getEncodedStream (  )

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

Returns:
stream
Exceptions:
Zend_Mime_Exceptionif not a stream or unable to append filter

Definition at line 92 of file Part.php.

getHeaders ( EOL = Zend_Mime::LINEEND )

Return the headers for this part as a string

Returns:
String

Definition at line 208 of file Part.php.

getHeadersArray ( EOL = Zend_Mime::LINEEND )

Create and return the array of headers for this MIME part

public

Returns:
array

Definition at line 156 of file Part.php.

isStream (  )
Todo:

setters/getters

error checking for setting $type

error checking for setting $encoding

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

Returns:
bool

Definition at line 80 of file Part.php.


The documentation for this class was generated from the following file: