PHP Class Sokil\Mongo\GridFSFile

Inheritance: extends Structure, implements Countable
Show file Open project: sokil/php-mongo

Public Methods

Method Description
__construct ( GridFS $gridFS, array | MongoGridFSFile $file = null )
count ( )
delete ( )
dump ( $filename )
getBytes ( )
getFilename ( )
getMd5Checksum ( )
getMongoGridFsFile ( ) : MongoGridFSFile Get instance of native mongo file
getResource ( )
save ( )

Method Details

__construct() public method

public __construct ( GridFS $gridFS, array | MongoGridFSFile $file = null )
$gridFS GridFS instance of GridFS
$file array | MongoGridFSFile instance of File or metadata array

count() public method

public count ( )

delete() public method

public delete ( )

dump() public method

public dump ( $filename )

getBytes() public method

public getBytes ( )

getFilename() public method

public getFilename ( )

getMd5Checksum() public method

public getMd5Checksum ( )

getMongoGridFsFile() public method

Get instance of native mongo file
public getMongoGridFsFile ( ) : MongoGridFSFile
return MongoGridFSFile

getResource() public method

public getResource ( )

save() public method

public save ( )