« MongoGridFS::storeUpload
MongoGridfsFile::__construct »
PHP Manual
Clase GridFS
The MongoGridFSFile class
The MongoGridFSFile class
(PECL mongo >=0.9.0)
Introducere
A database file object.
Sinopsisul clasei
MongoGridFSFile
{
/* Fields */
public
array
$
file
=
NULL
;
protected
MongoGridFS
$
gridfs
=
NULL
;
/* Metode */
public
MongoGridfsFile::__construct
(
MongoGridFS
$gridfs
,
array
$file
)
public
getBytes
(
void
) :
string
public
getFilename
(
void
) :
string
public
getResource
(
void
) :
resource
public
getSize
(
void
) :
int
public
write
([
string
$filename
=
NULL
] ) :
int
}
Cuprins
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