MongoLog::setLevel

(PECL mongo >= 1.2.3) Sets the level(s) to be logged public static void MongoLog::setLevel ( int $level ) This function can be used to control logging verbosity and the types of activities that should be logged. The MongoLog level constants may be used with bitwise operators to specify multiple levels. <?php // first, specify a logging module MongoLog::setModule(MongoLog::CON); // log messages for every level Mon

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

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

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

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

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

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.

MongoGridFSFile::write

(PECL mongo >=0.9.0) Writes this file to the filesystem public int MongoGridFSFile::write ([ string $filename = NULL ] ) Parameters: filename The location to which to write the file. If none is given, the stored filename will be used. Returns: Returns the number of bytes written. Examples: