Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
Class representing a MIME part.

__construct(
mixed $content
)
:
void
create a new Mime Part.
The (unencoded) content of the Part as passed as a string or stream
Name | Type | Description |
---|---|---|
$content | mixed | String or Stream containing the content |

getContent(
$EOL
=
Zend_Mime::LINEEND
)
:
String
Get the Content of the current Mime Part in the given encoding.
Name | Type | Description |
---|---|---|
$EOL |
Type | Description |
---|---|
String |

getEncodedStream(
)
:
\stream
if this was created with a stream, return a filtered stream for reading the content. very useful for large file attachments.
Type | Description |
---|---|
\stream |
Exception | Description |
---|---|
\Zend_Mime_Exception | if not a stream or unable to append filter |

getHeaders(
$EOL
=
Zend_Mime::LINEEND
)
:
String
Return the headers for this part as a string
Name | Type | Description |
---|---|---|
$EOL |
Type | Description |
---|---|
String |

getHeadersArray(
$EOL
=
Zend_Mime::LINEEND
)
:
array
Create and return the array of headers for this MIME part
Name | Type | Description |
---|---|---|
$EOL |
Type | Description |
---|---|
array |

getRawContent(
)
:
string
Get the RAW unencoded content from this part
Type | Description |
---|---|
string |