array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'fr', ), 'this' => array ( 0 => 'mongodb-driver-server.isprimary.php', 1 => 'MongoDB\\Driver\\Server::isPrimary', ), 'up' => array ( 0 => 'class.mongodb-driver-server.php', 1 => 'MongoDB\\Driver\\Server', ), 'prev' => array ( 0 => 'mongodb-driver-server.ispassive.php', 1 => 'MongoDB\\Driver\\Server::isPassive', ), 'next' => array ( 0 => 'mongodb-driver-server.issecondary.php', 1 => 'MongoDB\\Driver\\Server::isSecondary', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/mongodb/mongodb/driver/server/isprimary.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(mongodb >=1.0.0)
MongoDB\Driver\Server::isPrimary — Checks if this server is a primary member of a replica set
Returns whether this server is a » primary member of a replica set.
Cette fonction ne contient aucun paramètre.
Returns true
if this server is a primary member of a replica set, and
false
otherwise.