PHP 클래스 Phalcon\Db\Adapter\MongoDB\GridFS\ReadableStream

파일 보기 프로젝트 열기: phalcon/incubator 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( CollectionWrapper $collectionWrapper, stdClass $file ) Constructs a readable GridFS stream.
close ( )
downloadNumBytes ( integer $numBytes ) : string Read bytes from the stream.
downloadToStream ( resource $destination ) Writes the contents of this GridFS file to a writable stream.
getFile ( )
getId ( )
getSize ( )
isEOF ( )

비공개 메소드들

메소드 설명
advanceChunks ( )
initEmptyBuffer ( )

메소드 상세

__construct() 공개 메소드

Constructs a readable GridFS stream.
public __construct ( CollectionWrapper $collectionWrapper, stdClass $file )
$collectionWrapper CollectionWrapper GridFS collection wrapper
$file stdClass GridFS file document

close() 공개 메소드

public close ( )

downloadNumBytes() 공개 메소드

Note: this method may return a string smaller than the requested length if data is not available to be read.
public downloadNumBytes ( integer $numBytes ) : string
$numBytes integer Number of bytes to read
리턴 string

downloadToStream() 공개 메소드

Writes the contents of this GridFS file to a writable stream.
public downloadToStream ( resource $destination )
$destination resource Writable stream

getFile() 공개 메소드

public getFile ( )

getId() 공개 메소드

public getId ( )

getSize() 공개 메소드

public getSize ( )

isEOF() 공개 메소드

public isEOF ( )