Please wait while we load your page...
 

Announcements

PHP Manual :: The MongoCursorInterface interface



MongoCursor::valid || MongoCursorInterface::batchSize || Core Classes || PHP Manual

(PECL mongo >=1.5.0)

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.

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

MongoCursorInterface extends Iterator {
/* Methods */
abstract public MongoCursorInterface batchSize ( int $batchSize )
abstract public bool dead ( void )
abstract public array getReadPreference ( void )
abstract public array info ( void )
abstract public MongoCursorInterface setReadPreference ( string $read_preference [, array $tags ] )
abstract public MongoCursorInterface timeout ( int $ms )
/* Inherited methods */
abstract public mixed Iterator::current ( void )
abstract public scalar Iterator::key ( void )
abstract public void Iterator::next ( void )
abstract public void Iterator::rewind ( void )
abstract public boolean Iterator::valid ( void )
}


MongoCursor::valid || MongoCursorInterface::batchSize || Core Classes || PHP Manual
Live Chat Not Available