lithium\data\source\MongoDb::__call()
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
mixedThe return value of the native method specified in $method
.
Source
public function __call($method, $params) {
return call_user_func_array([$this->manager, $method], $params);
}