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.
A streaming Media MIME class that allows for buffered read operations.
string $_boundaryString = 'null'
A valid MIME boundary.
integer $_currentPart = '0'
The current part being read from.
resource $_fileHandle = 'null'
A handle to the file that is part of the message.
array $_parts = 'null'
An array of all the parts to be sent. Array members are either a MimeFile or a MimeBodyString object.
integer $_totalSize = '0'
The size of the MIME message.
__construct(
string $xmlString
=
null, string $filePath
=
null, string $fileContentType
=
null
)
:
Create a new MimeMediaStream object.
closeFileHandle(
)
:
void
Close the internal file that we are streaming to the socket.
getContentType(
)
:
string
Return a Content-type header that includes the current boundary string.
getTotalSize(
)
:
integer
Return the total size of the mime message.
read(
$bytesRequested
)
:
string
Read a specific chunk of the the MIME multipart message.
wrapEntry(
$entry, $fileMimeType
)
:
void
Sandwiches the entry body into a MIME message