Inheritances
Files
Overview
FRAMES
NO FRAMES

Class Zend_Mime_Part

Zend_Mime
|- class Zend_Mime_Part
Defined in line 35 of file Mime/Part.php.
Class representing a MIME part.
CategoryZend
PackageZend_Mime
CopyrightCopyright (c) 2005-2009 Zend Technologies USA Inc. (http://www.zend.com)
Licensehttp://framework.zend.com/license/new-bsd New BSD License

Summary

Instance fields
# $_content
# $_isStream
+ $boundary
+ $charset
+ $description
+ $disposition
+ $encoding
+ $filename
+ $id
+ $language
+ $location
+ $type
Instance methods
+ __construct() create a new Mime Part.
+ getContent() Get the Content of the current Mime Part in the given encoding
+ getEncodedStream() if this was created with a stream, return a filtered stream for
+ getHeaders() Return the headers for this part as a string
+ getHeadersArray() Create and return the array of headers for this MIME part
+ isStream() check if this part can be read as a stream.

Details

Instance fields

$_content
protected $_content
$_isStream
protected $_isStream = false
$boundary
public $boundary
$charset
public $charset
$description
public $description
$disposition
public $disposition
$encoding
public $encoding = Zend_Mime::ENCODING_8BIT
$filename
public $filename
$id
public $id
$language
public $language
$location
public $location
$type
public $type = Zend_Mime::TYPE_OCTETSTREAM

Instance methods

__construct()
public function __construct( $content)
create a new Mime Part.
The (unencoded) content of the Part as passed
as a string or stream
Parameters
mixed $content String or Stream containing the content
getContent()
public function getContent( $EOL = Zend_Mime::LINEEND)
Get the Content of the current Mime Part in the given encoding.
Parameters
$EOL
Returns String
getEncodedStream()
public function getEncodedStream( )
if this was created with a stream, return a filtered stream for
reading the content. very useful for large file attachments.
Returns stream
Throws Zend_Mime_Exception if not a stream or unable to append filter
getHeaders()
public function getHeaders( $EOL = Zend_Mime::LINEEND)
Return the headers for this part as a string
Parameters
$EOL
Returns String
getHeadersArray()
public function getHeadersArray( $EOL = Zend_Mime::LINEEND)
Create and return the array of headers for this MIME part
Parameters
$EOL
Returns array
Access public
isStream()
public function 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
Returns bool