Property | Type | Description | |
---|---|---|---|
$slaveOkay |
Property | Type | Description | |
---|---|---|---|
$gridfs |
Method | Description | |
---|---|---|
__construct ( MongoGridFS $gridfs, MongoClient $connection, string $ns, array $query = [], array $fields = [] ) | Create a new cursor | |
current ( ) : MongoGridFSFile | Returns the current file | |
key ( ) : string | Returns the current result's filename |
public __construct ( MongoGridFS $gridfs, MongoClient $connection, string $ns, array $query = [], array $fields = [] ) | ||
$gridfs | MongoGridFS | Related GridFS collection |
$connection | MongoClient | Database connection |
$ns | string | Full name of database and collection |
$query | array | Database query |
$fields | array | Fields to return |
public current ( ) : MongoGridFSFile | ||
return | MongoGridFSFile | The current file |