You are here

public function MongoDebugCursor::__call in MongoDB 7

Same name and namespace in other branches
  1. 6 mongodb.module \MongoDebugCursor::__call()

Decorates the standard __call() by debug()-ing its arguments.

Parameters

string $name: The name of the called method.

array $arguments: The arguments for the decorated __call().

Return value

mixed The result of the decorated __call().

File

./mongodb.module, line 231
Contains the main module connecting Drupal to MongoDB.

Class

MongoDebugCursor

Code

public function __call($name, array $arguments) {
  debug($name);
  debug($arguments);
  return call_user_func_array(array(
    $this->collection,
    $name,
  ), $arguments);
}