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.
Detailsinteger $_currentPart = '0'The current part being read from.
Detailsresource $_fileHandle = 'null'A handle to the file that is part of the message.
Detailsarray $_parts = 'null'An array of all the parts to be sent. Array members are either a MimeFile or a MimeBodyString object.
Detailsinteger $_totalSize = '0'The size of the MIME message.
Details__construct(
string $xmlString
=
null, string $filePath
=
null, string $fileContentType
=
null
)
:
Create a new MimeMediaStream object.
DetailscloseFileHandle(
)
:
voidClose the internal file that we are streaming to the socket.
DetailsgetContentType(
)
:
stringReturn a Content-type header that includes the current boundary string.
DetailsgetTotalSize(
)
:
integerReturn the total size of the mime message.
Detailsread(
$bytesRequested
)
:
stringRead a specific chunk of the the MIME multipart message.
DetailswrapEntry(
$entry, $fileMimeType
)
:
voidSandwiches the entry body into a MIME message
Details