Mime/Part.php
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.
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_Mime
- Version
- $Id$
Package: Zend_MimeClass representing a MIME part.
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Properties



$_isStream = falseDefault valuefalseDetails- Type
- n/a



$encoding = \Zend_Mime::ENCODING_8BITDefault value\Zend_Mime::ENCODING_8BITDetails- Type
- n/a



$type = \Zend_Mime::TYPE_OCTETSTREAMDefault value\Zend_Mime::TYPE_OCTETSTREAMDetails- Type
- n/a
Methods



__construct(mixed $content) : voidThe (unencoded) content of the Part as passed
as a string or stream
Parameters| Name | Type | Description |
|---|
| $content | mixed | String or Stream containing the content |
|---|



getHeadersArray( $EOL = \Zend_Mime::LINEEND) : arrayCreate and return the array of headers for this MIME part
ParametersReturnsDetails- Access
- public



isStream() : boolcheck 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