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.

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::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::__construct

(PECL mongo >= 0.8.0) Creates a new id public MongoId::__construct ([ string|MongoId $id = NULL ] ) Parameters: id A string (must be 24 hexadecimal characters) or a MongoId instance. Returns: Returns a new id. Changelog: 1.4.0 An exception is thrown when passed invalid string

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() -

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::rewind

(PECL mongo >=1.5.0) Executes the command and resets the cursor to the start of the result set public array MongoCommandCursor::rewind ( void ) If the cursor has already started iteration, the command will be re-executed. Returns: The raw server result document. Exception: Throws MongoConnectionException if it cannot reach the database and MongoCursorTimeoutExc

MongoCommandCursor::next

(PECL mongo >=1.5.0) Advances the cursor to the next result public void MongoCommandCursor::next ( void ) Returns: NULL. Exception: Throws MongoConnectionException if it cannot reach the database and MongoCursorTimeoutException if the timeout is exceeded. See also: Iterator::next() -

MongoCommandCursor::key

(PECL mongo >=1.5.0) Returns the current result's index within the result set public int MongoCommandCursor::key ( void ) Returns: The current result's index within the result set. See also: Iterator::key() -