A method dispatcher that allows direct calls to native methods in PHP's `Mongo` object. Read more here: http://php.net/manual/class.mongo.php
For example (assuming this instance is stored in `Connections` as `'mongo'`): {{{// Manually repairs a MongoDB instance Connections::get('mongo')->repairDB($db); // returns null }}}

Parameters

  • string $method The name of native method to call. See the link above for available class methods.
  • array $params A list of parameters to be passed to the native method.

Returns

mixed The return value of the native method specified in `$method`.

Source

						public function __call($method, $params) {
		if ((!$this->server) && !$this->connect()) {
			return null;
		}
		return call_user_func_array(array(&$this->server, $method), $params);
	}