array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'it', ), 'this' => array ( 0 => 'mongodb-driver-monitoring-commandfailedevent.getserver.php', 1 => 'MongoDB\\Driver\\Monitoring\\CommandFailedEvent::getServer', 2 => 'Returns the Server on which the command was executed', ), 'up' => array ( 0 => 'class.mongodb-driver-monitoring-commandfailedevent.php', 1 => 'MongoDB\\Driver\\Monitoring\\CommandFailedEvent', ), 'prev' => array ( 0 => 'mongodb-driver-monitoring-commandfailedevent.getrequestid.php', 1 => 'MongoDB\\Driver\\Monitoring\\CommandFailedEvent::getRequestId', ), 'next' => array ( 0 => 'mongodb-driver-monitoring-commandfailedevent.getserverconnectionid.php', 1 => 'MongoDB\\Driver\\Monitoring\\CommandFailedEvent::getServerConnectionId', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/mongodb/mongodb/driver/monitoring/commandfailedevent/getserver.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

MongoDB\Driver\Monitoring\CommandFailedEvent::getServer

(mongodb >=1.3.0)

MongoDB\Driver\Monitoring\CommandFailedEvent::getServerReturns the Server on which the command was executed

Avviso

This method has been DEPRECATED as of extension version 1.20.0 and was removed in 2.0. Applications should use MongoDB\Driver\Monitoring\CommandFailedEvent::getHost() and MongoDB\Driver\Monitoring\CommandFailedEvent::getPort() instead.

Descrizione

final public MongoDB\Driver\Monitoring\CommandFailedEvent::getServer(): MongoDB\Driver\Server

Returns the MongoDB\Driver\Server on which the command was executed.

Elenco dei parametri

Questa funzione non contiene parametri.

Valori restituiti

Returns the MongoDB\Driver\Server on which the command was executed.

Errori/Eccezioni

Log delle modifiche

Versione Descrizione
PECL mongodb 2.0.0 This method was removed.

Vedere anche: