You are here

class MongodbDummy in MongoDB 7

Hierarchy

Expanded class hierarchy of MongodbDummy

File

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

View source
class MongodbDummy {

  /**
   * A fake connection.
   *
   * @var \Mongo\Mongo
   */
  public $connection;

  /**
   * Pretend to return a collection.
   *
   * @return \MongodbDummy
   *   The returned value is actually a new MongodbDummy instance.
   */
  public function selectCollection() {
    return new MongodbDummy();
  }

  /**
   * Magic __call accepting any method name and doing nothing.
   *
   * @param string $name
   *   Ignored.
   * @param array $arguments
   *   All arguments are ignored.
   */
  public function __call($name, array $arguments) {
  }

}

Members

Namesort descending Modifiers Type Description Overrides
MongodbDummy::$connection public property A fake connection.
MongodbDummy::selectCollection public function Pretend to return a collection.
MongodbDummy::__call public function Magic __call accepting any method name and doing nothing.