class MongoDebugCursor in MongoDB 6
Same name and namespace in other branches
- 7 mongodb.module \MongoDebugCursor
Class MongoDebugCursor wraps a cursor with debug() instructions.
Hierarchy
- class \MongoDebugCursor
Expanded class hierarchy of MongoDebugCursor
File
- ./
mongodb.module, line 156 - A library of common mechanisms for modules using MongoDB.
View source
class MongoDebugCursor {
/**
* The cursor wrapped by this instance.
*
* @var \MongoCursor
*/
protected $cursor;
/**
* Constructor.
*
* @param MongoCursor $cursor
* The cursor to wrap.
*/
public function __construct(MongoCursor $cursor) {
$this->cursor = $cursor;
}
/**
* {@inheritdoc}
*/
public function __call($name, $arguments) {
debug($name);
debug($arguments);
return call_user_func_array(array(
$this->cursor,
$name,
), $arguments);
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
MongoDebugCursor:: |
protected | property | The cursor wrapped by this instance. | |
MongoDebugCursor:: |
public | function | ||
MongoDebugCursor:: |
public | function | Constructor. |