Skip Navigation
Home
|
Video Chat
|
Web Messenger
|
Virtual World
|
Picture Gallery
|
Archive
Search
The MongoGridFSFile class
MongoGridFS::storeUpload
MongoGridfsFile::__construct
GridFS Classes
PHP Manual
The MongoGridFSFile class
(PECL mongo >=0.9.0)
Introduction
A database file object.
Class synopsis
MongoGridFSFile
{
/* Fields */
public
array
$
file
=
NULL
;
protected
MongoGridFS
$
gridfs
=
NULL
;
/* Methods */
public
MongoGridfsFile::__construct
(
MongoGridFS
$gridfs
,
array
$file
)
public
string
getBytes
(
void
)
public
string
getFilename
(
void
)
public
stream
getResource
(
void
)
public
int
getSize
(
void
)
public
int
write
([
string
$filename
=
NULL
] )
}
Table of Contents
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
MongoGridFS::storeUpload
MongoGridfsFile::__construct
GridFS Classes
PHP Manual
Customers Area
|
Contact us
|
Affiliates