MongoId::getInc

(PECL mongo >= 1.0.11) Gets the incremented value to create this id public int MongoId::getInc ( void ) Returns: Returns the incremented value used to create this MongoId.

MongoId::getTimestamp

(PECL mongo >= 1.0.1) Gets the number of seconds since the epoch that this id was created public int MongoId::getTimestamp ( void ) This returns the same thing as running time() when the id is created. Returns: Returns the number of seconds since the epoch that this id was created. There are only four bytes of timestamp stored, so MongoDate is a better choice for storing exact or wide-ranging t

MongoCommandCursor::valid

(PECL mongo >=1.5.0) Checks if the cursor is reading a valid result. public bool MongoCommandCursor::valid ( void ) Returns: TRUE if the current result is not null, and FALSE otherwise. See also: Iterator::valid() -

MongoId::getHostname

(PECL mongo >= 1.0.8) Gets the hostname being used for this machine's ids public static string MongoId::getHostname ( void ) This returns the hostname MongoId is using to generate unique ids. This should be the same value gethostname() returns. It is identical to the function: <?php public static function getHostname() {     return gethostname(); } ?> Returns: Returns the hostnam

MongoId::getPID

(PECL mongo >= 1.0.11) Gets the process ID public int MongoId::getPID ( void ) Extracts the pid from the Mongo ID Returns: Returns the PID of the MongoId.

MongoCommandCursor::timeout

(PECL mongo >=1.6.0) Sets a client-side timeout for this command public MongoCommandCursor MongoCommandCursor::timeout ( int $ms ) A timeout can be set at any time and will affect subsequent data retrieval associated with this cursor, including fetching more results from the database. Parameters: ms The number of milliseconds for the cursor to wait for a response. Use

MongoCommandCursor::setReadPreference

(PECL mongo >=1.6.0) Set the read preference for this command public MongoCommandCursor MongoCommandCursor::setReadPreference ( string $read_preference [, array $tags ] ) Parameters: read_preference The read preference mode: MongoClient::RP_PRIMARY, MongoClient::RP_PRIMARY_PREFERRED, MongoClient::RP_SECONDARY, MongoClient::RP_SECONDARY_PREFERRED, or MongoClient::RP_NEARES

MongoCommandCursor::createFromDocument

(PECL mongo >=1.5.0) Create a new command cursor from an existing command response document public static MongoCommandCursor MongoCommandCursor::createFromDocument ( MongoClient $connection, string $hash, array $document ) Use this method if you have a raw command result with cursor information in it. Note that cursors created with this method cannot be iterated multiple times, as they will lack the original command neces

MongoCommandCursor::info

(PECL mongo >=1.5.0) Gets information about the cursor's creation and iteration public array MongoCommandCursor::info ( void ) This can be called before or after the cursor has started iterating. Returns: Returns the namespace, batch size, limit, skip, flags, query, and projected fields for this cursor. If the cursor has started iterating, additional information about iteration and the connecti

MongoCommandCursor::getReadPreference

(PECL mongo >=1.6.0) Get the read preference for this command public array MongoCommandCursor::getReadPreference ( void ) Returns: This function returns an array describing the read preference. The array contains the values type for the string read preference mode (corresponding to the MongoClient constants), and tagsets containing a list of all tag set criteria. If no tag sets were specified, tag