PHP Class Horde_Mongo_Client, horde

Author: Michael Slusarz ([email protected])
Inheritance: extends MongoClient, implements Serializable
Afficher le fichier Open project: horde/horde Class Usage Examples

Méthodes publiques

Свойство Type Description
$dbname string Database name (Horde_Mongo_Client uses this single database by default to ease configuration).

Méthodes publiques

Méthode 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 )

Method Details

__construct() public méthode

public __construct ( $server = null, array $options = [] )
$options array

checkIndices() public méthode

Checks that indices are up-to-date.
public checkIndices ( mixed $collection, array $indices ) : boolean
$collection mixed The collection name or a MongoCollection object.
$indices array The index definition (see ensureIndex()).
Résultat boolean True if the indices are up-to-date.

createIndices() public méthode

Create indices for the collection.
public createIndices ( mixed $collection, array $indices )
$collection mixed The collection name or a MongoCollection object.
$indices array The index definition (see ensureIndex()).

dropDB() public méthode

Deprecation:
public dropDB ( $db )

selectCollection() public méthode

public selectCollection ( $db, $collection = null )

selectDB() public méthode

public selectDB ( $name )

serialize() public méthode

public serialize ( )

unserialize() public méthode

public unserialize ( $data )

Property Details

$dbname public_oe property

Database name (Horde_Mongo_Client uses this single database by default to ease configuration).
public string $dbname
Résultat string