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 = false
Default valuefalse
Details- Type
- n/a
$encoding = \Zend_Mime::ENCODING_8BIT
Default value\Zend_Mime::ENCODING_8BIT
Details- Type
- n/a
$type = \Zend_Mime::TYPE_OCTETSTREAM
Default value\Zend_Mime::TYPE_OCTETSTREAM
Details- Type
- n/a
Methods
__construct(mixed $content) : void
The (unencoded) content of the Part as passed
as a string or stream
ParametersName | Type | Description |
---|
$content | mixed | String or Stream containing the content |
---|
getHeadersArray( $EOL = \Zend_Mime::LINEEND) : array
Create and return the array of headers for this MIME part
ParametersReturnsDetails- Access
- public
isStream() : bool
check 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