You are here

public function MongoDebugCollection::__call in MongoDB 7

Same name and namespace in other branches
  1. 6 mongodb.module \MongoDebugCollection::__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 194
Contains the main module connecting Drupal to MongoDB.

Class

MongoDebugCollection

Code

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