<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>MongoDB context option listing</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="context.phar.html">Phar context options</a></div> <div class="next" style="text-align: right; float: right;"><a href="context.params.html">Context parameters</a></div> <div class="up"><a href="context.html">Context options and parameters</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="context.mongodb" class="refentry"> <div class="refnamediv"> <h1 class="refname">MongoDB context options</h1> <p class="refpurpose"><span class="refname">MongoDB context options</span> — <span class="dc-title">MongoDB context option listing</span></p> </div> <div class="refsect1 description" id="refsect1-context.mongodb-description"> <h3 class="title">Description</h3> <p class="para"> Context options for <em>mongodb://</em> transports. </p> </div> <div class="refsect1 options" id="refsect1-context.mongodb-options"> <h3 class="title">Options</h3> <p class="para"> <dl> <dt id="context.mongodb.log-cmd-insert"> <code class="parameter">log_cmd_insert</code> <span class="type"><a href="language.types.callable.html" class="type callable">callable</a></span> </dt> <dd> <p class="para"> A callback function called when inserting a document, see <span class="function"><a href="function.log-cmd-insert.html" class="function">log_cmd_insert()</a></span>. </p> </dd> <dt id="context.mongodb.log-cmd-delete"> <code class="parameter">log_cmd_delete</code> <span class="type"><a href="language.types.callable.html" class="type callable">callable</a></span> </dt> <dd> <p class="para"> A callback function called when deleting a document, see <span class="function"><a href="function.log-cmd-delete.html" class="function">log_cmd_delete()</a></span>. </p> </dd> <dt id="context.mongodb.log-cmd-update"> <code class="parameter">log_cmd_update</code> <span class="type"><a href="language.types.callable.html" class="type callable">callable</a></span> </dt> <dd> <p class="para"> A callback function called when updating a document, see <span class="function"><a href="function.log-cmd-update.html" class="function">log_cmd_update()</a></span>. </p> </dd> <dt id="context.mongodb.log-write-batch"> <code class="parameter">log_write_batch</code> <span class="type"><a href="language.types.callable.html" class="type callable">callable</a></span> </dt> <dd> <p class="para"> A callback function called when executing a Write Batch, see <span class="function"><a href="function.log-write-batch.html" class="function">log_write_batch()</a></span>. </p> </dd> <dt id="context.mongodb.log-reply"> <code class="parameter">log_reply</code> <span class="type"><a href="language.types.callable.html" class="type callable">callable</a></span> </dt> <dd> <p class="para"> A callback function called when reading a reply from MongoDB, see <span class="function"><a href="function.log-reply.html" class="function">log_reply()</a></span>. </p> </dd> <dt id="context.mongodb.log-getmore"> <code class="parameter">log_getmore</code> <span class="type"><a href="language.types.callable.html" class="type callable">callable</a></span> </dt> <dd> <p class="para"> A callback function called when retrieving more results from a MongoDB cursor, see <span class="function"><a href="function.log-getmore.html" class="function">log_getmore()</a></span>. </p> </dd> <dt id="context.mongodb.log-killcursor"> <code class="parameter">log_killcursor</code> <span class="type"><a href="language.types.callable.html" class="type callable">callable</a></span> </dt> <dd> <p class="para"> A callback function called executing a killcursor opcode, see <span class="function"><a href="function.log-killcursor.html" class="function">log_killcursor()</a></span>. </p> </dd> </dl> </p> </div> <div class="refsect1 changelog" id="refsect1-context.mongodb-changelog"> <h3 class="title">Changelog</h3> <p class="para"> <table class="doctable informaltable"> <thead> <tr> <th>Version</th> <th>Description</th> </tr> </thead> <tbody class="tbody"> <tr> <td>pecl/mongo 1.5.0</td> <td> Added Write API Context options </td> </tr> </tbody> </table> </p> </div> <div class="refsect1 seealso" id="refsect1-context.mongodb-seealso"> <h3 class="title">See Also</h3> <p class="para"> <ul class="simplelist"> <li class="member"><a href="context.socket.html" class="xref">Socket context options</a></li> <li class="member"><a href="context.ssl.html" class="xref">SSL context options</a></li> </ul> </p> </div> </div><hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="context.phar.html">Phar context options</a></div> <div class="next" style="text-align: right; float: right;"><a href="context.params.html">Context parameters</a></div> <div class="up"><a href="context.html">Context options and parameters</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>