프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$dbname | string | Database name (Horde_Mongo_Client uses this single database by default to ease configuration). |
메소드 | 설명 | |
---|---|---|
__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 createIndices ( mixed $collection, array $indices ) | ||
$collection | mixed | The collection name or a MongoCollection object. |
$indices | array | The index definition (see ensureIndex()). |
public string $dbname | ||
리턴 | string |