|
Moodle
2.2.1
http://www.collinsharper.com
|
Public Member Functions | |
| __construct ($xmlString=null, $filePath=null, $fileContentType=null) | |
| read ($bytesRequested) | |
| getTotalSize () | |
| closeFileHandle () | |
| getContentType () | |
Protected Attributes | |
| $_boundaryString = null | |
| $_fileHandle = null | |
| $_currentPart = 0 | |
| $_totalSize = 0 | |
| $_parts = null | |
Definition at line 44 of file MediaMimeStream.php.
| __construct | ( | $ | xmlString = null, |
| $ | filePath = null, |
||
| $ | fileContentType = null |
||
| ) |
Create a new MimeMediaStream object.
| string | $xmlString | The string corresponding to the XML section of the message, typically an atom entry or feed. |
| string | $filePath | The path to the file that constitutes the binary part of the message. |
| string | $fileContentType | The valid internet media type of the file. |
| Zend_Gdata_App_IOException | If the file cannot be read or does not exist. Also if mbstring.func_overload has been set > 1. |
Definition at line 91 of file MediaMimeStream.php.
| closeFileHandle | ( | ) |
Close the internal file that we are streaming to the socket.
Definition at line 172 of file MediaMimeStream.php.
| getContentType | ( | ) |
Return a Content-type header that includes the current boundary string.
Definition at line 184 of file MediaMimeStream.php.
| getTotalSize | ( | ) |
Return the total size of the mime message.
Definition at line 162 of file MediaMimeStream.php.
| read | ( | $ | bytesRequested | ) |
Read a specific chunk of the the MIME multipart message.
| integer | $bufferSize | The size of the chunk that is to be read, must be lower than MAX_BUFFER_SIZE. |
Definition at line 136 of file MediaMimeStream.php.
$_boundaryString = null [protected] |
Definition at line 52 of file MediaMimeStream.php.
$_currentPart = 0 [protected] |
Definition at line 65 of file MediaMimeStream.php.
$_fileHandle = null [protected] |
Definition at line 59 of file MediaMimeStream.php.
$_parts = null [protected] |
Definition at line 78 of file MediaMimeStream.php.
$_totalSize = 0 [protected] |
Definition at line 71 of file MediaMimeStream.php.