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.
$_content = ''
$_isStream = 'false'
$boundary = ''
$charset = ''
$description = ''
$disposition = ''
$encoding = 'Zend_Mime'
$filename = ''
$id = ''
$language = ''
$location = ''
$type = 'Zend_Mime'
__construct(
mixed $content
)
:
create a new Mime Part.
The (unencoded) content of the Part as passed as a string or stream
getContent(
$EOL
=
Zend_Mime
)
:
String
Get the Content of the current Mime Part in the given encoding.
getEncodedStream(
)
:
stream
if this was created with a stream, return a filtered stream for reading the content. very useful for large file attachments.
getHeaders(
$EOL
=
Zend_Mime
)
:
String
Return the headers for this part as a string
getHeadersArray(
$EOL
=
Zend_Mime
)
:
array
Create and return the array of headers for this MIME part
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