PHP Class MongoGridFSCursor

Inheritance: extends MongoCursor
Afficher le fichier Open project: alcaeus/mongo-php-adapter Class Usage Examples

Méthodes publiques

Свойство Type Description
$slaveOkay

Protected Properties

Свойство Type Description
$gridfs

Méthodes publiques

Méthode 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

Method Details

__construct() public méthode

Create a new cursor
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

current() public méthode

Returns the current file
public current ( ) : MongoGridFSFile
Résultat MongoGridFSFile The current file

key() public méthode

Returns the current result's filename
public key ( ) : string
Résultat string The current results filename

Property Details

$gridfs protected_oe property

protected $gridfs

$slaveOkay public_oe static_oe property

public static $slaveOkay