mongodb\file\Upload $document

$document public property Additional file document contents. Common GridFS columns: metadata: array, additional data associated with the file. aliases: array, an array of aliases. contentType: string, content type to be stored with the file. public array $document = []

mongodb\file\Upload $collection

$collection public property File collection to be used. public yii\mongodb\file\Collection $collection = null

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_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\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_stat()

stream_stat() public method Retrieve information about a file resource. This method is called in response to stat(). See also \yii\mongodb\file\stat(). public array stream_stat ( )return array File statistic information.

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_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_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