Mime/Part.php
Package: DefaultAllows for passing content which is already encoded. Usually, the getContent
method from Zend_Mime_Party would encode the content since $this->encoding
denotes the encoding that should happen, not the encoding the content is
already available.
- Parent(s)
- \Zend_Mime_Part
- Author
-
Thorsten Suckow-Homberg
Properties
Methods



__construct(
mixed $content, $alreadyEncoded
=
false
)
:
void
The (unencoded) content of the Part as passed
as a string or stream
Parameters
| Name |
Type |
Description |
| $content |
mixed |
String or Stream containing the content |
| $alreadyEncoded |
|
|



getContent(
$EOL
=
Zend_Mime::LINEEND
)
:
StringGet the Content of the current Mime Part. This class assumes the
content is already encoded when $this->alreadyEncoded is set to true.
Parameters
| Name |
Type |
Description |
| $EOL |
|
|
Returns



getEncodedStream(
)
:
\streamif this was created with a stream, return a filtered stream for
reading the content. very useful for large file attachments.
if $this->_alreadyEncoded is set to true, teh stream will be returned
without further filtering.
Returns
Throws
| Exception |
Description |
| \Zend_Mime_Exception |
if not a stream or unable to append filter |