« MongoGridFS::storeUpload
MongoGridfsFile::__construct »
PHP Manual
GridFS Classes
The MongoGridFSFile class
The MongoGridFSFile class
(PECL mongo >=0.9.0)
简介
A database file object.
类摘要
MongoGridFSFile
{
/* Fields */
public
array
$
file
=
null
;
protected
MongoGridFS
$
gridfs
=
null
;
/* 方法 */
public
MongoGridfsFile::__construct
(
MongoGridFS
$gridfs
,
array
$file
)
public
getBytes
( ) :
string
public
getFilename
( ) :
string
public
getResource
( ) :
resource
public
getSize
( ) :
int
public
write
(
string
$filename
=
null
) :
int
}
目录
MongoGridfsFile::__construct
— Create a new GridFS file
MongoGridFSFile::getBytes
— Returns this file's contents as a string of bytes
MongoGridFSFile::getFilename
— Returns this file's filename
MongoGridFSFile::getResource
— Returns a resource that can be used to read the stored file
MongoGridFSFile::getSize
— Returns this file's size
MongoGridFSFile::write
— Writes this file to the filesystem