mirror of
https://github.com/php/doc-es.git
synced 2026-03-26 00:12:06 +01:00
git-svn-id: https://svn.php.net/repository/phpdoc/es/trunk@335303 c90b9560-bf6c-de11-be94-00142212c4b1
125 lines
3.4 KiB
XML
125 lines
3.4 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- $Revision$ -->
|
|
<!-- EN-Revision: cb2e7b70b1354e5468e538720d59c37e273bc98e Maintainer: seros Status: ready -->
|
|
<!-- Reviewed: no -->
|
|
|
|
<refentry xml:id="function.log-cmd-update" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
|
|
<refnamediv>
|
|
<refname>log_cmd_update</refname>
|
|
<refpurpose>Función de retrollamada al actualizar documentos</refpurpose>
|
|
</refnamediv>
|
|
|
|
<refsect1 role="description"><!-- {{{ -->
|
|
&reftitle.description;
|
|
<methodsynopsis role="procedural">
|
|
<methodname>log_cmd_update</methodname>
|
|
<methodparam><type>array</type><parameter>server</parameter></methodparam>
|
|
<methodparam><type>array</type><parameter>writeOptions</parameter></methodparam>
|
|
<methodparam><type>array</type><parameter>updateOptions</parameter></methodparam>
|
|
<methodparam><type>array</type><parameter>protocolOptions</parameter></methodparam>
|
|
</methodsynopsis>
|
|
<para>
|
|
Una función de tipo <type>callable</type>, usada por
|
|
<link linkend="context.mongodb.log-cmd-update">la opción de contexto log_cmd_update</link>,
|
|
al actualizar un documento.
|
|
</para>
|
|
<note>
|
|
<para>
|
|
Esta <emphasis>no</emphasis> es una función real, es solamente un prototipo de
|
|
cómo debería ser la función.
|
|
</para>
|
|
</note>
|
|
</refsect1><!-- }}} -->
|
|
|
|
<refsect1 role="parameters"><!-- {{{ -->
|
|
&reftitle.parameters;
|
|
<variablelist>
|
|
&mongo.context.server;
|
|
&mongo.context.writeoptions;
|
|
<varlistentry>
|
|
<term>
|
|
<parameter>updateOptions</parameter>
|
|
</term>
|
|
<listitem>
|
|
<para>
|
|
<informaltable>
|
|
<tgroup cols="2">
|
|
<thead>
|
|
<row>
|
|
<entry>Clave</entry>
|
|
<entry>Valor</entry>
|
|
</row>
|
|
</thead>
|
|
<tbody>
|
|
<row>
|
|
<entry>multi</entry>
|
|
<entry>Booleano, true si a esta actualización se le permite actualizar todos los criterios coincidentes</entry>
|
|
</row>
|
|
<row>
|
|
<entry>upsert</entry>
|
|
<entry>Booleano, true si el documento debería ser creado si los criterios no coinciden</entry>
|
|
</row>
|
|
<row>
|
|
<entry>q</entry>
|
|
<entry>Array, los criterios de búsqueda</entry>
|
|
</row>
|
|
<row>
|
|
<entry>u</entry>
|
|
<entry>Array, el nuevo/s objeto/modificaciones</entry>
|
|
</row>
|
|
</tbody>
|
|
</tgroup>
|
|
</informaltable>
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
&mongo.context.protocoloptions;
|
|
</variablelist>
|
|
</refsect1><!-- }}} -->
|
|
|
|
<refsect1 role="changelog"><!-- {{{ -->
|
|
&reftitle.changelog;
|
|
<informaltable>
|
|
<tgroup cols="2">
|
|
<thead>
|
|
<row>
|
|
<entry>&Version;</entry>
|
|
<entry>&Description;</entry>
|
|
</row>
|
|
</thead>
|
|
<tbody>
|
|
<row>
|
|
<entry>1.5.0</entry>
|
|
<entry>
|
|
Solamente disponible al conectarse a MongoDB 2.6.0+
|
|
</entry>
|
|
</row>
|
|
</tbody>
|
|
</tgroup>
|
|
</informaltable>
|
|
</refsect1><!-- }}} -->
|
|
|
|
|
|
</refentry>
|
|
|
|
<!-- 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
|
|
-->
|