<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.mongodb-driver-server.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'es',
  ),
  'this' => 
  array (
    0 => 'mongodb-driver-server.ispassive.php',
    1 => 'MongoDB\\Driver\\Server::isPassive',
    2 => 'Verifica si el servidor es un miembro pasivo del conjunto de r&eacute;plicas',
  ),
  'up' => 
  array (
    0 => 'class.mongodb-driver-server.php',
    1 => 'MongoDB\\Driver\\Server',
  ),
  'prev' => 
  array (
    0 => 'mongodb-driver-server.ishidden.php',
    1 => 'MongoDB\\Driver\\Server::isHidden',
  ),
  'next' => 
  array (
    0 => 'mongodb-driver-server.isprimary.php',
    1 => 'MongoDB\\Driver\\Server::isPrimary',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'es',
    'path' => 'reference/mongodb/mongodb/driver/server/ispassive.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="mongodb-driver-server.ispassive" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">MongoDB\Driver\Server::isPassive</h1>
  <p class="verinfo">(mongodb &gt;=1.0.0)</p><p class="refpurpose"><span class="refname">MongoDB\Driver\Server::isPassive</span> &mdash; <span class="dc-title">Verifica si el servidor es un miembro pasivo del conjunto de réplicas</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-mongodb-driver-server.ispassive-description">
  <h3 class="title">Descripción</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">final</span> <span class="modifier">public</span> <span class="methodname"><strong>MongoDB\Driver\Server::isPassive</strong></span>(): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

  <p class="para rdfs-comment">
   Devuelve si el servidor es un
   <a href="https://www.mongodb.com/docs/manual/reference/glossary/#term-passive-member" class="link external">&raquo;&nbsp;miembro pasivo</a>
    de un conjunto de réplicas (i.e. su prioridad es <code class="literal">0</code>).
  </p>

 </div>


 <div class="refsect1 parameters" id="refsect1-mongodb-driver-server.ispassive-parameters">
  <h3 class="title">Parámetros</h3>
  <p class="para">Esta función no contiene ningún parámetro.</p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-mongodb-driver-server.ispassive-returnvalues">
  <h3 class="title">Valores devueltos</h3>
  <p class="para">
   Devuelve <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> si el servidor es un miembro pasivo de un conjunto de réplicas,
    y <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> en caso contrario.
  </p>
 </div>


 <div class="refsect1 errors" id="refsect1-mongodb-driver-server.ispassive-errors">
  <h3 class="title">Errores/Excepciones</h3>
  <ul class="simplelist">
   <li>Lanza una excepción <span class="classname"><strong class="classname">MongoDB\Driver\InvalidArgumentException</strong></span> en caso de error durante el análisis de un argumento.</li>
  </ul>
 </div>


 <div class="refsect1 seealso" id="refsect1-mongodb-driver-server.ispassive-seealso">
  <h3 class="title">Ver también</h3>
  <ul class="simplelist">
   <li><span class="function"><a href="mongodb-driver-server.getinfo.php" class="function" rel="rdfs-seeAlso">MongoDB\Driver\Server::getInfo()</a> - Devuelve un array de informaci&oacute;n que describe este servidor</span></li>
  </ul>
 </div>


</div><?php manual_footer($setup); ?>