The MongoCursorInterface interface

(PECL mongo >=1.5.0)

Introducere

Interface for cursors, which can be used to iterate through results of a database query or command. This interface is implemented by the MongoCursor and MongoCommandCursor classes.

Notă: Similar to Traversable, this interface cannot be implemented in PHP scripts.

Sinopsisul clasei

MongoCursorInterface extends Iterator {
/* Metode */
abstract public batchSize ( int $batchSize ) : MongoCursorInterface
abstract public dead ( ) : bool
abstract public getReadPreference ( ) : array
abstract public info ( ) : array
abstract public setReadPreference ( string $read_preference , array $tags = ? ) : MongoCursorInterface
abstract public timeout ( int $ms ) : MongoCursorInterface
/* Metode moștenite */
abstract public Iterator::current ( ) : mixed
abstract public Iterator::key ( ) : scalar
abstract public Iterator::next ( ) : void
abstract public Iterator::rewind ( ) : void
abstract public Iterator::valid ( ) : bool
}

Cuprins

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top