svn: /phpdoc/es/trunk/reference/ array/functions/array-filter.xml memcached/memcached/setmulti.xml spl/arrayiterator/count.xml

From: Date: Wed, 10 Nov 2010 14:55:22 +0000
Subject: svn: /phpdoc/es/trunk/reference/ array/functions/array-filter.xml memcached/memcached/setmulti.xml spl/arrayiterator/count.xml
Groups: php.doc.es 
Request: Send a blank email to doc-es+get-3720@lists.php.net to get a copy of this message
yago Wed, 10 Nov 2010 14:55:22 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=305245 Log: updated to the most recent version. Changed paths: U phpdoc/es/trunk/reference/array/functions/array-filter.xml A phpdoc/es/trunk/reference/memcached/memcached/setmulti.xml U phpdoc/es/trunk/reference/spl/arrayiterator/count.xml Modified: phpdoc/es/trunk/reference/array/functions/array-filter.xml =================================================================== --- phpdoc/es/trunk/reference/array/functions/array-filter.xml 2010-11-10 13:57:09 UTC (rev 305244) +++ phpdoc/es/trunk/reference/array/functions/array-filter.xml 2010-11-10 14:55:22 UTC (rev 305245) @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> <!-- $Revision$ --> -<!-- EN-Revision: 297028 Maintainer: jpberdejo Status: ready --> +<!-- EN-Revision: 305207 Maintainer: yago Status: ready --> <refentry xml:id="function.array-filter" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>array_filter</refname> @@ -81,11 +81,13 @@ <?php function odd($var) { + // Retorna siempre que el número entero sea impar return($var & 1); } function even($var) { + // Retorna siempre que el número sea impar return(!($var & 1)); } Added: phpdoc/es/trunk/reference/memcached/memcached/setmulti.xml =================================================================== --- phpdoc/es/trunk/reference/memcached/memcached/setmulti.xml (rev 0) +++ phpdoc/es/trunk/reference/memcached/memcached/setmulti.xml 2010-11-10 14:55:22 UTC (rev 305245) @@ -0,0 +1,114 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- $Revision$ --> +<!-- EN-Revision: 288721 Maintainer: yago Status: ready --> + +<refentry xml:id="memcached.setmulti" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> + <refnamediv> + <refname>Memcached::setMulti</refname> + <refpurpose>Guarda múltiples ítems</refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <modifier>public</modifier> <type>bool</type><methodname>Memcached::setMulti</methodname> + <methodparam><type>array</type><parameter>items</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>expiration</parameter></methodparam> + </methodsynopsis> + <para> + <function>Memcached::setMulti</function> es similar a + <methodname>Memcached::set</methodname>, pero en lugar de guardar una sola clave/valor + en un ítem, funciona con múltiples ítems especificados en + <parameter>items</parameter>. El tiempo de <parameter>expiration</parameter> + se aplica a todos los ítems a la vez. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>items</parameter></term> + <listitem> + <para> + &memcached.parameter.items; + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>expiration</parameter></term> + <listitem> + <para> + &memcached.parameter.expiration; + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + &return.success; + &memcached.result.getresultcode; + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title>Ejemplo de <function>Memcached::setMulti</function></title> + <programlisting role="php"> +<![CDATA[ +<?php +$m = new Memcached(); +$m->addServer('localhost', 11211); + +$items = array( + 'key1' => 'value1', + 'key2' => 'value2', + 'key3' => 'value3' +); +$m->setMulti($items, time() + 300); +?> +]]> + </programlisting> + </example> + </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><methodname>Memcached::setMultiByKey</methodname></member> + <member><methodname>Memcached::set</methodname></member> + </simplelist> + </para> + </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 +--> Property changes on: phpdoc/es/trunk/reference/memcached/memcached/setmulti.xml ___________________________________________________________________ Added: svn:keywords + Id Rev Revision Date LastChangedDate LastChangedRevision Author LastChangedBy HeadURL URL Added: svn:eol-style + native Modified: phpdoc/es/trunk/reference/spl/arrayiterator/count.xml =================================================================== --- phpdoc/es/trunk/reference/spl/arrayiterator/count.xml 2010-11-10 13:57:09 UTC (rev 305244) +++ phpdoc/es/trunk/reference/spl/arrayiterator/count.xml 2010-11-10 14:55:22 UTC (rev 305245) @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> <!-- $Revision$ --> -<!-- EN-Revision: 290998 Maintainer: yago Status: ready --> +<!-- EN-Revision: 305212 Maintainer: yago Status: ready --> <refentry xml:id="arrayiterator.count" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> @@ -11,7 +11,7 @@ <refsect1 role="description"> &reftitle.description; <methodsynopsis> - <modifier>public</modifier> <type>void</type><methodname>ArrayIterator::count</methodname> + <modifier>public</modifier> <type>int</type><methodname>ArrayIterator::count</methodname> <void /> </methodsynopsis> <para>

« previous php.doc.es (#3720) next »