Downloads
Documentation
Get Involved
Help
Getting Started
Introduction
A simple tutorial
Language Reference
Basic syntax
Types
Variables
Constants
Expressions
Operators
Control Structures
Functions
Classes and Objects
Namespaces
Enumerations
Errors
Exceptions
Fibers
Generators
Attributes
References Explained
Predefined Variables
Predefined Exceptions
Predefined Interfaces and Classes
Predefined Attributes
Context options and parameters
Supported Protocols and Wrappers
Security
Introduction
General considerations
Installed as CGI binary
Installed as an Apache module
Session Security
Filesystem Security
Database Security
Error Reporting
User Submitted Data
Hiding PHP
Keeping Current
Features
HTTP authentication with PHP
Cookies
Sessions
Dealing with XForms
Handling file uploads
Using remote files
Connection handling
Persistent Database Connections
Command line usage
Garbage Collection
DTrace Dynamic Tracing
Function Reference
Affecting PHP's Behaviour
Audio Formats Manipulation
Authentication Services
Command Line Specific Extensions
Compression and Archive Extensions
Cryptography Extensions
Database Extensions
Date and Time Related Extensions
File System Related Extensions
Human Language and Character Encoding Support
Image Processing and Generation
Mail Related Extensions
Mathematical Extensions
Non-Text MIME Output
Process Control Extensions
Other Basic Extensions
Other Services
Search Engine Extensions
Server Specific Extensions
Session Extensions
Text Processing
Variable and Type Related Extensions
Web Services
Windows Only Extensions
XML Manipulation
GUI Extensions
Keyboard Shortcuts
?
This help
j
Next menu item
k
Previous menu item
g p
Previous man page
g n
Next man page
G
Scroll to bottom
g g
Scroll to top
g h
Goto homepage
g s
Goto search
(current page)
/
Focus search box
MongoDB\Driver\Manager »
« Script Injection Attacks
Manuel PHP
Référence des fonctions
Extensions sur les bases de données
Extensions spécifiques des fabricants de bases de données
MongoDB
Change language:
English
Brazilian Portuguese
Chinese (Simplified)
French
German
Japanese
Korean
Romanian
Russian
Spanish
Turkish
Other
Edit
Report a Bug
MongoDB driver classes
MongoDB\Driver\Manager
— The MongoDB\Driver\Manager class
MongoDB\Driver\Manager::addSubscriber
— Registers a monitoring event subscriber with this Manager
MongoDB\Driver\Manager::__construct
— Create new MongoDB Manager
MongoDB\Driver\Manager::createClientEncryption
— Create a new ClientEncryption object
MongoDB\Driver\Manager::executeBulkWrite
— Execute one or more write operations
MongoDB\Driver\Manager::executeCommand
— Execute a database command
MongoDB\Driver\Manager::executeQuery
— Execute a database query
MongoDB\Driver\Manager::executeReadCommand
— Execute a database command that reads
MongoDB\Driver\Manager::executeReadWriteCommand
— Execute a database command that reads and writes
MongoDB\Driver\Manager::executeWriteCommand
— Execute a database command that writes
MongoDB\Driver\Manager::getEncryptedFieldsMap
— Return the encryptedFieldsMap auto encryption option for the Manager
MongoDB\Driver\Manager::getReadConcern
— Return the ReadConcern for the Manager
MongoDB\Driver\Manager::getReadPreference
— Return the ReadPreference for the Manager
MongoDB\Driver\Manager::getServers
— Retourner les serveurs auxquels ce gestionnaire est connecté
MongoDB\Driver\Manager::getWriteConcern
— Return the WriteConcern for the Manager
MongoDB\Driver\Manager::removeSubscriber
— Unregisters a monitoring event subscriber with this Manager
MongoDB\Driver\Manager::selectServer
— Select a server matching a read preference
MongoDB\Driver\Manager::startSession
— Start a new client session for use with this client
MongoDB\Driver\Command
— The MongoDB\Driver\Command class
MongoDB\Driver\Command::__construct
— Crée une nouvelle commande
MongoDB\Driver\Query
— La classe MongoDB\Driver\Query
MongoDB\Driver\Query::__construct
— Create a new Query
MongoDB\Driver\BulkWrite
— The MongoDB\Driver\BulkWrite class
MongoDB\Driver\BulkWrite::__construct
— Create a new BulkWrite
MongoDB\Driver\BulkWrite::count
— Count number of write operations in the bulk
MongoDB\Driver\BulkWrite::delete
— Add a delete operation to the bulk
MongoDB\Driver\BulkWrite::insert
— Add an insert operation to the bulk
MongoDB\Driver\BulkWrite::update
— Add an update operation to the bulk
MongoDB\Driver\Session
— The MongoDB\Driver\Session class
MongoDB\Driver\Session::abortTransaction
— Aborts a transaction
MongoDB\Driver\Session::advanceClusterTime
— Advances the cluster time for this session
MongoDB\Driver\Session::advanceOperationTime
— Advances the operation time for this session
MongoDB\Driver\Session::commitTransaction
— Commits a transaction
MongoDB\Driver\Session::__construct
— Create a new Session (not used)
MongoDB\Driver\Session::endSession
— Terminates a session
MongoDB\Driver\Session::getClusterTime
— Returns the cluster time for this session
MongoDB\Driver\Session::getLogicalSessionId
— Returns the logical session ID for this session
MongoDB\Driver\Session::getOperationTime
— Returns the operation time for this session
MongoDB\Driver\Session::getServer
— Returns the server to which this session is pinned
MongoDB\Driver\Session::getTransactionOptions
— Returns options for the currently running transaction
MongoDB\Driver\Session::getTransactionState
— Returns the current transaction state for this session
MongoDB\Driver\Session::isDirty
— Returns whether the session has been marked as dirty
MongoDB\Driver\Session::isInTransaction
— Returns whether a multi-document transaction is in progress
MongoDB\Driver\Session::startTransaction
— Starts a transaction
MongoDB\Driver\ClientEncryption
— The MongoDB\Driver\ClientEncryption class
MongoDB\Driver\ClientEncryption::addKeyAltName
— Adds an alternate name to a key document
MongoDB\Driver\ClientEncryption::__construct
— Create a new ClientEncryption object
MongoDB\Driver\ClientEncryption::createDataKey
— Creates a key document
MongoDB\Driver\ClientEncryption::decrypt
— Decrypt a value
MongoDB\Driver\ClientEncryption::deleteKey
— Deletes a key document
MongoDB\Driver\ClientEncryption::encrypt
— Encrypt a value
MongoDB\Driver\ClientEncryption::encryptExpression
— Encrypts a match or aggregate expression
MongoDB\Driver\ClientEncryption::getKey
— Gets a key document
MongoDB\Driver\ClientEncryption::getKeyByAltName
— Gets a key document by an alternate name
MongoDB\Driver\ClientEncryption::getKeys
— Gets all key documents
MongoDB\Driver\ClientEncryption::removeKeyAltName
— Removes an alternate name from a key document
MongoDB\Driver\ClientEncryption::rewrapManyDataKey
— Rewraps data keys
MongoDB\Driver\ServerApi
— The MongoDB\Driver\ServerApi class
MongoDB\Driver\ServerApi::bsonSerialize
— Returns an object for BSON serialization
MongoDB\Driver\ServerApi::__construct
— Create a new ServerApi instance
MongoDB\Driver\ServerApi::serialize
— Serialize a ServerApi
MongoDB\Driver\ServerApi::unserialize
— Unserialize a ServerApi
MongoDB\Driver\WriteConcern
— La classe MongoDB\Driver\WriteConcern
MongoDB\Driver\WriteConcern::bsonSerialize
— Returns an object for BSON serialization
MongoDB\Driver\WriteConcern::__construct
— Construit un WriteConcern
MongoDB\Driver\WriteConcern::getJournal
— Returns the WriteConcern's "journal" option
MongoDB\Driver\WriteConcern::getW
— Returns the WriteConcern's "w" option
MongoDB\Driver\WriteConcern::getWtimeout
— Returns the WriteConcern's "wtimeout" option
MongoDB\Driver\WriteConcern::isDefault
— Checks if this is the default write concern
MongoDB\Driver\WriteConcern::serialize
— Serialize a WriteConcern
MongoDB\Driver\WriteConcern::unserialize
— Unserialize a WriteConcern
MongoDB\Driver\ReadPreference
— La classe MongoDB\Driver\ReadPreference
MongoDB\Driver\ReadPreference::bsonSerialize
— Returns an object for BSON serialization
MongoDB\Driver\ReadPreference::__construct
— Créer un nouveau ReadPreference
MongoDB\Driver\ReadPreference::getHedge
— Returns the ReadPreference's "hedge" option
MongoDB\Driver\ReadPreference::getMaxStalenessSeconds
— Returns the ReadPreference's "maxStalenessSeconds" option
MongoDB\Driver\ReadPreference::getMode
— Returns the ReadPreference's "mode" option
MongoDB\Driver\ReadPreference::getModeString
— Returns the ReadPreference's "mode" option as a string
MongoDB\Driver\ReadPreference::getTagSets
— Returns the ReadPreference's "tagSets" option
MongoDB\Driver\ReadPreference::serialize
— Serialize a ReadPreference
MongoDB\Driver\ReadPreference::unserialize
— Unserialize a ReadPreference
MongoDB\Driver\ReadConcern
— The MongoDB\Driver\ReadConcern class
MongoDB\Driver\ReadConcern::bsonSerialize
— Returns an object for BSON serialization
MongoDB\Driver\ReadConcern::__construct
— Create a new ReadConcern
MongoDB\Driver\ReadConcern::getLevel
— Returns the ReadConcern's "level" option
MongoDB\Driver\ReadConcern::isDefault
— Checks if this is the default read concern
MongoDB\Driver\ReadConcern::serialize
— Serialize a ReadConcern
MongoDB\Driver\ReadConcern::unserialize
— Unserialize a ReadConcern
MongoDB\Driver\Cursor
— La classe MongoDB\Driver\Cursor
MongoDB\Driver\Cursor::__construct
— Créer un nouveau curseur (non utilisé)
MongoDB\Driver\Cursor::current
— Returns the current element
MongoDB\Driver\Cursor::getId
— Retourne l'ID de ce curseur
MongoDB\Driver\Cursor::getServer
— Retourne le serveur associé à ce curseur
MongoDB\Driver\Cursor::isDead
— Vérifie si le curseur est épuisé ou peut avoir des résultats supplémentaires
MongoDB\Driver\Cursor::key
— Returns the current result's index within the cursor
MongoDB\Driver\Cursor::next
— Advances the cursor to the next result
MongoDB\Driver\Cursor::rewind
— Rewind the cursor to the first result
MongoDB\Driver\Cursor::setTypeMap
— Défini un type de carte à utiliser pour la désérialisation BSON
MongoDB\Driver\Cursor::toArray
— Retourne un tableau contenant tous les résultats pour ce curseur
MongoDB\Driver\Cursor::valid
— Checks if the current position in the cursor is valid
MongoDB\Driver\CursorId
— La classe MongoDB\Driver\CursorId
MongoDB\Driver\CursorId::__construct
— Créer un nouveau CursorId (non utilisé)
MongoDB\Driver\CursorId::serialize
— Serialize a CursorId
MongoDB\Driver\CursorId::__toString
— Représentation sous forme de chaîne de l'ID de curseur
MongoDB\Driver\CursorId::unserialize
— Unserialize a CursorId
MongoDB\Driver\CursorInterface
— The MongoDB\Driver\CursorInterface interface
MongoDB\Driver\CursorInterface::getId
— Returns the ID for this cursor
MongoDB\Driver\CursorInterface::getServer
— Returns the server associated with this cursor
MongoDB\Driver\CursorInterface::isDead
— Checks if the cursor may have additional results
MongoDB\Driver\CursorInterface::setTypeMap
— Sets a type map to use for BSON unserialization
MongoDB\Driver\CursorInterface::toArray
— Returns an array containing all results for this cursor
MongoDB\Driver\Server
— La classe MongoDB\Driver\Server
MongoDB\Driver\Server::__construct
— Créer un nouveau serveur (non utilisé)
MongoDB\Driver\Server::executeBulkWrite
— Exécute une ou plusieurs opérations d'écriture sur ce serveur
MongoDB\Driver\Server::executeCommand
— Exécute une commande de base de données sur ce serveur
MongoDB\Driver\Server::executeQuery
— Exécute une requête de base de données sur ce serveur
MongoDB\Driver\Server::executeReadCommand
— Execute a database command that reads on this server
MongoDB\Driver\Server::executeReadWriteCommand
— Execute a database command that reads and writes on this server
MongoDB\Driver\Server::executeWriteCommand
— Execute a database command that writes on this server
MongoDB\Driver\Server::getHost
— Retourne le nom d'hôte du serveur
MongoDB\Driver\Server::getInfo
— Retourne un tableau d'informations décrivant ce serveur
MongoDB\Driver\Server::getLatency
— Retourne la latence de ce serveur en millisecondes
MongoDB\Driver\Server::getPort
— Retourne le port sur lequel le serveur écoute
MongoDB\Driver\Server::getServerDescription
— Returns a ServerDescription for this server
MongoDB\Driver\Server::getTags
— Returns an array of tags describing this server in a replica set
MongoDB\Driver\Server::getType
— Retourne un entier représentant le type du serveur
MongoDB\Driver\Server::isArbiter
— Checks if this server is an arbiter member of a replica set
MongoDB\Driver\Server::isHidden
— Checks if this server is a hidden member of a replica set
MongoDB\Driver\Server::isPassive
— Vérifie si le serveur est un membre passif du jeu de réplication
MongoDB\Driver\Server::isPrimary
— Checks if this server is a primary member of a replica set
MongoDB\Driver\Server::isSecondary
— Checks if this server is a secondary member of a replica set
MongoDB\Driver\ServerDescription
— The MongoDB\Driver\ServerDescription class
MongoDB\Driver\ServerDescription::getHelloResponse
— Returns the server's most recent "hello" response
MongoDB\Driver\ServerDescription::getHost
— Returns the hostname of this server
MongoDB\Driver\ServerDescription::getLastUpdateTime
— Returns the server's last update time in microseconds
MongoDB\Driver\ServerDescription::getPort
— Returns the port on which this server is listening
MongoDB\Driver\ServerDescription::getRoundTripTime
— Returns the server's round trip time in milliseconds
MongoDB\Driver\ServerDescription::getType
— Returns a string denoting the type of this server
MongoDB\Driver\TopologyDescription
— The MongoDB\Driver\TopologyDescription class
MongoDB\Driver\TopologyDescription::getServers
— Returns the servers in the topology
MongoDB\Driver\TopologyDescription::getType
— Returns a string denoting the type of this topology
MongoDB\Driver\TopologyDescription::hasReadableServer
— Returns whether the topology has a readable server
MongoDB\Driver\TopologyDescription::hasWritableServer
— Returns whether the topology has a writable server
MongoDB\Driver\WriteConcernError
— La classe MongoDB\Driver\WriteConcernError
MongoDB\Driver\WriteConcernError::getCode
— Retourne le code d'erreur de WriteConcernError
MongoDB\Driver\WriteConcernError::getInfo
— Retourne le document de métadonnées pour WriteConcernError
MongoDB\Driver\WriteConcernError::getMessage
— Renvoie le message d'erreur du WriteConcernError
MongoDB\Driver\WriteError
— La classe MongoDB\Driver\WriteError
MongoDB\Driver\WriteError::getCode
— Retourne le code d'erreur de WriteError
MongoDB\Driver\WriteError::getIndex
— Retourne l'index de l'opération d'écriture correspondant à ce WriteError
MongoDB\Driver\WriteError::getInfo
— Retourne le document de métadonnées pour WriteError
MongoDB\Driver\WriteError::getMessage
— Renvoie le message d'erreur du WriteError
MongoDB\Driver\WriteResult
— La classe MongoDB\Driver\WriteResult
MongoDB\Driver\WriteResult::getDeletedCount
— Renvoie le nombre de documents supprimés
MongoDB\Driver\WriteResult::getInsertedCount
— Renvoie le nombre de documents insérés (à l'exception de Upserts)
MongoDB\Driver\WriteResult::getMatchedCount
— Renvoie le nombre de documents sélectionnés pour la mise à jour
MongoDB\Driver\WriteResult::getModifiedCount
— Renvoie le nombre de documents existants mis à jour
MongoDB\Driver\WriteResult::getServer
— Retourne le serveur associé à ce résultat d'écriture
MongoDB\Driver\WriteResult::getUpsertedCount
— Renvoie le nombre de documents insérés par un upsert
MongoDB\Driver\WriteResult::getUpsertedIds
— Retourne un tableau d'identificateurs pour les documents upserted
MongoDB\Driver\WriteResult::getWriteConcernError
— Retourne toute erreur de WriteConcern qui s'est produite
MongoDB\Driver\WriteResult::getWriteErrors
— Retourne toutes les erreurs d'écriture qui se sont produites
MongoDB\Driver\WriteResult::isAcknowledged
— Retourne si l'écriture a été reconnue
add a note
User Contributed Notes
1 note
up
down
3
mike at eastghost dot com
¶
5 years ago
The 'high level' driver is here
https://docs.mongodb.com/php-library/current/reference/
add a note