You are here

public function MongoDebugCursor::__call in MongoDB 6

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

File

./mongodb.module, line 177
A library of common mechanisms for modules using MongoDB.

Class

MongoDebugCursor
Class MongoDebugCursor wraps a cursor with debug() instructions.

Code

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