Mime/Part.php

Show: inherited
Table of Contents

\Conjoon_Mime_Part

Package: Default

Allows for passing content which is already encoded. Usually, the getContent method from Zend_Mime_Party would encode the content since $this->encoding denotes the encoding that should happen, not the encoding the content is already available.

Parent(s)
\Zend_Mime_Part
Author
Thorsten Suckow-Homberg  

Properties

Propertyprotected  $_alreadyEncoded= 'false'
Default valuefalseDetails
Type
n/a

Methods

methodpublic__construct( mixed $content,  $alreadyEncoded = false ) : void

create a new Mime Part.

The (unencoded) content of the Part as passed as a string or stream

Parameters
Name Type Description
$content mixed

String or Stream containing the content

$alreadyEncoded
methodpublicgetContent(  $EOL = Zend_Mime::LINEEND ) : String

Get the Content of the current Mime Part. This class assumes the content is already encoded when $this->alreadyEncoded is set to true.

Parameters
Name Type Description
$EOL
Returns
Type Description
String
methodpublicgetEncodedStream( ) : \stream

if this was created with a stream, return a filtered stream for reading the content. very useful for large file attachments.

if $this->_alreadyEncoded is set to true, teh stream will be returned without further filtering.

Returns
Type Description
\stream
Throws
Exception Description
\Zend_Mime_Exception if not a stream or unable to append filter
Documentation was generated by DocBlox 0.18.1.