Mime/Part.php
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.
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Mime
- Version
- $Id: Part.php 24593 2012-01-05 20:35:02Z matthew $
\Zend_Mime_Part
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Properties
Methods


__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 |
- Access
- public