MongoLog::getModule

(PECL mongo >= 1.2.3) Gets the module(s) currently being logged public static int MongoLog::getModule ( void ) This function can be used to see which driver modules are currently being logged. The returned integer may be compared with the MongoLog module constants using bitwise operators to check if specific modules are being logged. <?php if (MongoLog::getModule() & MongoLog::RS) {     echo "logging replica se

MongoWriteBatch::execute

(PECL mongo >= 1.5.0) Executes a batch of write operations final public array MongoWriteBatch::execute ( array $write_options ) Executes the batch of write operations. Parameters: write_options See MongoWriteBatch::__construct. Returns: Returns an array containing statistical information for the full batch. If the batch had to be split into mu

MongoDeleteBatch::__construct

(PECL mongo >= 1.5.0) Description public MongoDeleteBatch::__construct ( MongoCollection $collection [, array $write_options ] ) Constructs a batch of DELETE operations. See MongoWriteBatch. Parameters: collection The MongoCollection to execute the batch on. Its write concern will be copied and used as the default write concern if none is given as $write_options or duri

MongoInsertBatch::__construct

(PECL mongo >= 1.5.0) Description public MongoInsertBatch::__construct ( MongoCollection $collection [, array $write_options ] ) Constructs a batch of INSERT operations. See MongoWriteBatch. Parameters: collection The MongoCollection to execute the batch on. Its write concern will be copied and used as the default write concern if none is given as $write_options or duri

MongoWriteBatch::add

(PECL mongo >= 1.5.0) Adds a write operation to a batch public bool MongoWriteBatch::add ( array $item ) Adds a write operation to the batch. If $item causes the batch to exceed the » maxWriteBatchSize or » maxBsonObjectSize limits, the driver will internally split the batches into multiple write commands upon calling MongoWriteBatch::execute(). Parameters: item An a

MongoUpdateBatch::__construct

(PECL mongo >= 1.5.0) Description public MongoUpdateBatch::__construct ( MongoCollection $collection [, array $write_options ] ) Constructs a batch of UPDATE operations. See MongoWriteBatch. Parameters: collection The MongoCollection to execute the batch on. Its write concern will be copied and used as the default write concern if none is given as $write_options or duri

MongoWriteBatch::__construct

(PECL mongo >= 1.5.0) Creates a new batch of write operations protected MongoWriteBatch::__construct ( MongoCollection $collection [, string $batch_type [, array $write_options ]] ) Constructs a new MongoWriteBatch. Note: This is a protected constructor. Please use one of the classes inheriting MongoWriteBatch. Parameters: collection The MongoCollection to execute the batch on. Its

MongoGridFSCursor::getNext

(PECL mongo >=0.9.0) Return the next file to which this cursor points, and advance the cursor public MongoGridFSFile MongoGridFSCursor::getNext ( void ) Returns: Returns the next file.

MongoGridFSCursor::current

(PECL mongo >=0.9.0) Returns the current file public MongoGridFSFile MongoGridFSCursor::current ( void ) Returns: The current file.

MongoGridFSCursor::key

(PECL mongo >=0.9.0) Returns the current result's filename public string MongoGridFSCursor::key ( void ) Returns: The current result's _id as a string. Changelog: 1.3.0 The document's _id is returned as a string value, since the key should be unique. Pre-1.3.0, filename was returned.