Property | Type | Description | |
---|---|---|---|
$dbname | string | Database name (Horde_Mongo_Client uses this single database by default to ease configuration). |
Method | Description | |
---|---|---|
__construct ( $server = null, array $options = [] ) | ||
checkIndices ( mixed $collection, array $indices ) : boolean | Checks that indices are up-to-date. | |
createIndices ( mixed $collection, array $indices ) | Create indices for the collection. | |
dropDB ( $db ) | ||
selectCollection ( $db, $collection = null ) | ||
selectDB ( $name ) | ||
serialize ( ) | ||
unserialize ( $data ) |
public __construct ( $server = null, array $options = [] ) | ||
$options | array |
public createIndices ( mixed $collection, array $indices ) | ||
$collection | mixed | The collection name or a MongoCollection object. |
$indices | array | The index definition (see ensureIndex()). |
public string $dbname | ||
return | string |