mongodb\file\Upload $filename

$filename public property Filename to be used for file storage. public string $filename = null

mongodb\file\Upload $length

$length public property Total upload length in bytes. public integer $length = 0

mongodb\file\StreamWrapper stream_write()

stream_write() public method Writes to stream. This method is called in response to fwrite(). See also \yii\mongodb\file\fwrite(). public integer stream_write ( $data )$data string String to be stored into the underlying stream. return integer The number of bytes that were successfully stored.

mongodb\file\Upload $chunkSize

$chunkSize public property Chunk size in bytes. public integer $chunkSize = 261120

mongodb\file\Upload $chunkCount

$chunkCount public property File chunk counts. public integer $chunkCount = 0

mongodb\file\StreamWrapper stream_tell()

stream_tell() public method Retrieve the current position of a stream. This method is called in response to fseek() to determine the current position. See also \yii\mongodb\file\fseek(). public integer stream_tell ( )return integer Should return the current position of the stream.

mongodb\file\StreamWrapper stream_seek()

stream_seek() public method Seeks to specific location in a stream. This method is called in response to fseek(). See also \yii\mongodb\file\fseek(). public boolean stream_seek ( $offset, $whence = SEEK_SET )$offset integer The stream offset to seek to. $whence integer Possible values: SEEK_SET - Set position equal to offset bytes. SEEK_CUR - Set position to current location plus offset. SEEK_END - Set position to end-of-file plus offset. return boolean Return true if the position wa

mongodb\file\StreamWrapper stream_open()

stream_open() public method Opens file. This method is called immediately after the wrapper is initialized (f.e. by fopen() and file_get_contents()). See also \yii\mongodb\file\fopen(). public boolean stream_open ( $path, $mode, $options, &$openedPath )$path string Specifies the URL that was passed to the original function. $mode string Mode used to open the file, as detailed for fopen(). $options integer Additional flags set by the streams API. $openedPath string Real opened p

mongodb\file\StreamWrapper stream_read()

stream_read() public method Reads from stream. This method is called in response to fread() and fgets(). See also \yii\mongodb\file\fread(). public string|false stream_read ( $count )$count integer Count of bytes of data from the current position should be returned. return string|false If there are less than count bytes available, return as many as are available. If no more data is available, return false.

mongodb\file\StreamWrapper stream_flush()

stream_flush() public method This method is called in response to fflush() and when the stream is being closed while any unflushed data has been written to it before. See also \yii\mongodb\file\fflush(). public boolean stream_flush ( )return boolean Whether cached data was successfully stored.