Zend Framework
1.12
|
Public Member Functions | |
__construct ($content) | |
create a new Mime Part. | |
isStream () | |
check if this part can be read as a stream. | |
getEncodedStream () | |
if this was created with a stream, return a filtered stream for reading the content. | |
getContent ($EOL=Zend_Mime::LINEEND) | |
Get the Content of the current Mime Part in the given encoding. | |
getRawContent () | |
Get the RAW unencoded content from this part. | |
getHeadersArray ($EOL=Zend_Mime::LINEEND) | |
Create and return the array of headers for this MIME part. | |
getHeaders ($EOL=Zend_Mime::LINEEND) | |
Return the headers for this part as a string. | |
Public Attributes | |
$type = Zend_Mime::TYPE_OCTETSTREAM | |
$encoding = Zend_Mime::ENCODING_8BIT | |
$id | |
$disposition | |
$filename | |
$description | |
$charset | |
$boundary | |
$location | |
$language | |
Protected Attributes | |
$_content | |
$_isStream = false | |
__construct | ( | $content | ) |
create a new Mime Part.
The (unencoded) content of the Part as passed as a string or stream
mixed | $content | String or Stream containing the content |
getContent | ( | $EOL = Zend_Mime::LINEEND | ) |
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 reading the content.
very useful for large file attachments.
Zend_Mime_Exception | if not a stream or unable to append filter |
getHeaders | ( | $EOL = Zend_Mime::LINEEND | ) |
Return the headers for this part as a string.
getHeadersArray | ( | $EOL = Zend_Mime::LINEEND | ) |
Create and return the array of headers for this MIME part.
public
getRawContent | ( | ) |
Get the RAW unencoded content from this part.
isStream | ( | ) |
check if this part can be read as a stream.
setters/getters
error checking for setting $type
error checking for setting $encoding
if true, getEncodedStream can be called, otherwise only getContent can be used to fetch the encoded content of the part
|
protected |
|
protected |
$boundary |
$charset |
$description |
$disposition |
$encoding = Zend_Mime::ENCODING_8BIT |
$filename |
$id |
$language |
$location |
$type = Zend_Mime::TYPE_OCTETSTREAM |