mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-26 22:08:55 +00:00

See https://github.com/phpdocbrbridge/bridge/blob/master/src/revbumper.php for automatic tool for translations. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@342988 c90b9560-bf6c-de11-be94-00142212c4b1
64 lines
2 KiB
XML
64 lines
2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- $Revision$ -->
|
|
|
|
<reference xml:id="mongo.context" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
<title>Stream Context Options</title>
|
|
|
|
<partintro>
|
|
<para xml:id="mongo.context.options">
|
|
The PHP MongoDB extension provides <link linkend="context">Stream Context Support</link>
|
|
using the <link linkend="context.mongodb">mongodb</link> context.
|
|
</para>
|
|
|
|
<para>
|
|
A stream context must be created with <function>stream_context_create</function> and passed to the <methodname>MongoClient::__construct</methodname> before the actual connection to MongoDB is made.
|
|
It is not possible to apply a stream context to already created streams.
|
|
</para>
|
|
|
|
<para>
|
|
Additional context options and parameters, such as <link linkend="context.ssl">ssl</link>
|
|
and <link linkend="context.params">notification parameters</link>, are also supported.
|
|
</para>
|
|
|
|
<para>
|
|
The MongoDB context options provide a rich interface to log network traffic between the driver and the MongoDB servers.
|
|
This interface can be used to provide query logging, profiler, debuggers, or anything that would need to inspect the underlaying
|
|
commands and protocol options.
|
|
</para>
|
|
|
|
<simplesect role="seealso">
|
|
&reftitle.seealso;
|
|
<simplelist>
|
|
<member><xref linkend="context.ssl" /></member>
|
|
<member><xref linkend="context.socket" /></member>
|
|
<member><xref linkend="context.params" /></member>
|
|
</simplelist>
|
|
</simplesect>
|
|
|
|
</partintro>
|
|
|
|
&reference.mongo.entities.context;
|
|
|
|
</reference>
|
|
|
|
<!-- Keep this comment at the end of the file
|
|
Local variables:
|
|
mode: sgml
|
|
sgml-omittag:t
|
|
sgml-shorttag:t
|
|
sgml-minimize-attributes:nil
|
|
sgml-always-quote-attributes:t
|
|
sgml-indent-step:1
|
|
sgml-indent-data:t
|
|
indent-tabs-mode:nil
|
|
sgml-parent-document:nil
|
|
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
|
|
sgml-exposed-tags:nil
|
|
sgml-local-catalogs:nil
|
|
sgml-local-ecat-files:nil
|
|
End:
|
|
vim600: syn=xml fen fdm=syntax fdl=2 si
|
|
vim: et tw=78 syn=sgml
|
|
vi: ts=1 sw=1
|
|
-->
|
|
|