From 3b30f904dbfd0e0ca8a5c11481137b764397c2f6 Mon Sep 17 00:00:00 2001 From: Hannes Magnusson Date: Wed, 28 Nov 2012 04:23:05 +0000 Subject: [PATCH] Document MongoClient::getConnections() git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@328520 c90b9560-bf6c-de11-be94-00142212c4b1 --- .../mongo/mongoclient/getconnections.xml | 113 ++++++++++++++++++ 1 file changed, 113 insertions(+) create mode 100644 reference/mongo/mongoclient/getconnections.xml diff --git a/reference/mongo/mongoclient/getconnections.xml b/reference/mongo/mongoclient/getconnections.xml new file mode 100644 index 0000000000..fc6aad2395 --- /dev/null +++ b/reference/mongo/mongoclient/getconnections.xml @@ -0,0 +1,113 @@ + + + + + + MongoClient::getConnections + Return info about all open connections + + + + &reftitle.description; + + public static voidMongoClient::getConnections + + + + Returns an array of all open connections, and information about each of the + servers + + + + + + &reftitle.parameters; + &no.function.parameters; + + + + &reftitle.returnvalues; + + An array of open connections. + + + + + &reftitle.examples; + + <methodname>MongoClient::getConnections</methodname> example + +getConnections()); +?> +]]> + + &example.outputs.similar; + + + array(3) { + ["hash"]=> + string(26) "localhost:27017;-;X;56052" + ["server"]=> + array(3) { + ["host"]=> + string(10) "localhost" + ["port"]=> + int(27017) + ["pid"]=> + int(56052) + } + ["connection"]=> + array(8) { + ["last_ping"]=> + int(1354076401) + ["last_ismaster"]=> + int(0) + ["ping_ms"]=> + int(0) + ["connection_type"]=> + int(1) + ["connection_type_desc"]=> + string(10) "STANDALONE" + ["max_bson_size"]=> + int(16777216) + ["tag_count"]=> + int(0) + ["tags"]=> + array(0) { + } + } + } +} +]]> + + + + + + + +