Mongo::__construct

(PECL mongo >=0.9.0) The __construct purpose public Mongo::__construct ([ string $server [, array $options ]] ) This method overwrites the MongoClient constructor and turns off acknowledged writes. Please see MongoClient::__construct() for description of the parameters. Exception: Instanciating this class will emit E_DEPRECATED warning, and turn off acknowledged writes. Please use the MongoC

Mongo::getPoolSize

(PECL mongo >=1.2.0) Get pool size for connection pools public static int Mongo::getPoolSize ( void ) Returns: Returns the current pool size. This feature has been DEPRECATED as of version 1.2.3. Relying on this feature is highly discouraged. Please use MongoPool::getSize() instead. Changelog: 1.2.11

MongoLog::getCallback

(PECL mongo >= 1.3.0) Gets the previously set callback function public static callable MongoLog::getCallback ( void ) Retrieves the callback function. Returns: Returns the callback function, or FALSE if not set yet.

MongoLog::setCallback

(PECL mongo >= 1.3.0) Sets a callback function to be invoked for events public static void MongoLog::setCallback ( callable $log_function ) This function will set a callback function to be invoked for events in lieu of emitting of PHP notice. Parameters: log_function The callback function to be invoked on events. It should have the following prototype: log_function

MongoLog::getLevel

(PECL mongo >= 1.2.3) Gets the level(s) currently being logged public static int MongoLog::getLevel ( void ) This function can be used to see which log levels are currently enabled. The returned integer may be compared with the MongoLog level constants using bitwise operators to check for specific log levels. <?php if (MongoLog::getLevel() & MongoLog::FINE) {     echo "lots of logs\n"; } if (MongoLog::getLevel

MongoLog::setModule

(PECL mongo >= 1.2.3) Sets the module(s) to be logged public static void MongoLog::setModule ( int $module ) This function can be used to set which driver modules should be logged. The MongoLog module constants may be used with bitwise operators to specify multiple modules. <?php // first, specify a logging level MongoLog::setLevel(MongoLog::ALL); // log replica set activity MongoLog::setModule(MongoLog::RS); //

MongoPool::getSize

(PECL mongo >= 1.2.3) Get pool size for connection pools public static int MongoPool::getSize ( void ) Returns: Returns the current pool size. Changelog: 1.2.11 Emits E_DEPRECATED when used. Examples: Changing pool size This returns the default pool size, sets a new pool size, then

MongoPool::setSize

(PECL mongo >= 1.2.3) Set the size for future connection pools. public static bool MongoPool::setSize ( int $size ) Sets the max number of connections new pools will be able to create. Parameters: size The max number of connections future pools will be able to create. Negative numbers mean that the pool will spawn an infinite number of connections.

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

MongoPool::info

(PECL mongo >= 1.2.3) Returns information about all connection pools. public array MongoPool::info ( void ) Returns an array of information about all connection pools. Returns: Each connection pool has an identifier, which starts with the host. For each pool, this function shows the following fields: in use The number of connections currently being used by Mongo instances. in pool Th