svn: /phpdoc/es/trunk/reference/spl/splfixedarray/ construct.xml count.xml current.xml getsize.xml

From: Date: Sat, 19 Nov 2011 20:07:31 +0000
Subject: svn: /phpdoc/es/trunk/reference/spl/splfixedarray/ construct.xml count.xml current.xml getsize.xml
Groups: php.doc.es 
Request: Send a blank email to doc-es+get-5322@lists.php.net to get a copy of this message
seros Sat, 19 Nov 2011 20:07:31 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=319556 Log: Updated to the most recent version Changed paths: U phpdoc/es/trunk/reference/spl/splfixedarray/construct.xml U phpdoc/es/trunk/reference/spl/splfixedarray/count.xml U phpdoc/es/trunk/reference/spl/splfixedarray/current.xml U phpdoc/es/trunk/reference/spl/splfixedarray/getsize.xml Modified: phpdoc/es/trunk/reference/spl/splfixedarray/construct.xml =================================================================== --- phpdoc/es/trunk/reference/spl/splfixedarray/construct.xml 2011-11-19 20:06:56 UTC (rev 319555) +++ phpdoc/es/trunk/reference/spl/splfixedarray/construct.xml 2011-11-19 20:07:31 UTC (rev 319556) @@ -1,13 +1,13 @@ <?xml version="1.0" encoding="UTF-8"?> <!-- $Revision$ --> -<!-- EN-Revision: 315005 Maintainer: andresdzphp Status: ready --> +<!-- EN-Revision: 319552 Maintainer: andresdzphp Status: ready --> <!-- Reviewed: no --> <refentry xml:id="splfixedarray.construct" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>SplFixedArray::__construct</refname> <refpurpose>Construye un nuevo array fijo</refpurpose> </refnamediv> - + <refsect1 role="description"> &reftitle.description; <constructorsynopsis> @@ -15,10 +15,10 @@ <methodparam choice="opt"><type>int</type><parameter>size</parameter><initializer>0</initializer></methodparam> </constructorsynopsis> <para> - Construye un nuevo array fijo vacío. + Inicializa un array fijo con un número de valores &null; igual al tamaño dado por <parameter>size</parameter>. </para> </refsect1> - + <refsect1 role="parameters"> &reftitle.parameters; <para> @@ -28,20 +28,33 @@ <listitem> <para> El tamaño de el array fijo. + Se exige que sea un número entre <literal>0</literal> y <constant>PHP_INT_MAX</constant>. </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> - + <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> &return.void; </para> </refsect1> - + + <refsect1 role="errors"> + &reftitle.errors; + <para> + Lanza una excepción de tipo <classname>InvalidArgumentException</classname> cuando <parameter>size</parameter> + es un número negativo + number. + </para> + <para> + Emite un <constant>E_WARNING</constant> cuando <parameter>size</parameter> no se puede procesar como un número. + </para> + </refsect1> + <refsect1 role="examples"> &reftitle.examples; <para> Modified: phpdoc/es/trunk/reference/spl/splfixedarray/count.xml =================================================================== --- phpdoc/es/trunk/reference/spl/splfixedarray/count.xml 2011-11-19 20:06:56 UTC (rev 319555) +++ phpdoc/es/trunk/reference/spl/splfixedarray/count.xml 2011-11-19 20:07:31 UTC (rev 319556) @@ -1,13 +1,13 @@ <?xml version="1.0" encoding="UTF-8"?> <!-- $Revision$ --> -<!-- EN-Revision: 315005 Maintainer: andresdzphp Status: ready --> +<!-- EN-Revision: 319552 Maintainer: andresdzphp Status: ready --> <!-- Reviewed: no --> <refentry xml:id="splfixedarray.count" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>SplFixedArray::count</refname> - <refpurpose>Devuelve el tamaño de el array</refpurpose> + <refpurpose>Devuelve el tamaño del array</refpurpose> </refnamediv> - + <refsect1 role="description"> &reftitle.description; <methodsynopsis> @@ -15,22 +15,64 @@ <void/> </methodsynopsis> <para> - Devuelve el tamaño de el array. + Devuelve el tamaño del array. </para> </refsect1> - + <refsect1 role="parameters"> &reftitle.parameters; &no.function.parameters; </refsect1> - + <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> - Devuelve el tamaño de el array. + Devuelve el tamaño del array. </para> </refsect1> - + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title>Ejemplo de <function>SplFixedArray::count</function></title> + <programlisting role="php"> +<![CDATA[ +<?php + $array = new SplFixedArray(5); + echo $array->count() . "\n"; + echo count($array) . "\n"; +?> +]]> + </programlisting> + &example.outputs; + <screen> +<![CDATA[ +5 +5 +]]> + </screen> + </example> + </para> + </refsect1> + + <refsect1 role="notes"> + &reftitle.notes; + <para> + Este método es funcionalmente equivalente al método <function>SplFixedArray::getSize</function>. + </para> + <para> + El cómputo de elementos es siempre igual al tamaño del conjunto ya que todos los valores son inicialmente + inicializados con &null;. + </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <simplelist> + <member><function>SplFixedArray::getSize</function></member> + </simplelist> + </refsect1> </refentry> <!-- Keep this comment at the end of the file Modified: phpdoc/es/trunk/reference/spl/splfixedarray/current.xml =================================================================== --- phpdoc/es/trunk/reference/spl/splfixedarray/current.xml 2011-11-19 20:06:56 UTC (rev 319555) +++ phpdoc/es/trunk/reference/spl/splfixedarray/current.xml 2011-11-19 20:07:31 UTC (rev 319556) @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="UTF-8"?> <!-- $Revision$ --> -<!-- EN-Revision: 315005 Maintainer: andresdzphp Status: ready --> +<!-- EN-Revision: 319552 Maintainer: andresdzphp Status: ready --> <!-- Reviewed: no --> <refentry xml:id="splfixedarray.current" xmlns="http://docbook.org/ns/docbook"> <refnamediv> @@ -18,18 +18,27 @@ Obtiene la entrada del elemento array actual. </para> </refsect1> - + <refsect1 role="parameters"> &reftitle.parameters; &no.function.parameters; </refsect1> - + <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> - El valor de el elemento actual. + El valor del elemento actual. </para> </refsect1> + + <refsect1 role="errors"> + &reftitle.errors; + <para> + Lanza una excepción de tipo <classname>RuntimeException</classname> cuando el puntero interno del array apunta a un + índice no válido o está fuera de los límites. + </para> + </refsect1> + </refentry> <!-- Keep this comment at the end of the file Modified: phpdoc/es/trunk/reference/spl/splfixedarray/getsize.xml =================================================================== --- phpdoc/es/trunk/reference/spl/splfixedarray/getsize.xml 2011-11-19 20:06:56 UTC (rev 319555) +++ phpdoc/es/trunk/reference/spl/splfixedarray/getsize.xml 2011-11-19 20:07:31 UTC (rev 319556) @@ -1,13 +1,13 @@ <?xml version="1.0" encoding="UTF-8"?> <!-- $Revision$ --> -<!-- EN-Revision: 315005 Maintainer: andresdzphp Status: ready --> +<!-- EN-Revision: 319552 Maintainer: andresdzphp Status: ready --> <!-- Reviewed: no --> <refentry xml:id="splfixedarray.getsize" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>SplFixedArray::getSize</refname> <refpurpose>Obtiene el tamaño de el array</refpurpose> </refnamediv> - + <refsect1 role="description"> &reftitle.description; <methodsynopsis> @@ -18,19 +18,19 @@ Obtiener el tamaño de el array. </para> </refsect1> - + <refsect1 role="parameters"> &reftitle.parameters; &no.function.parameters; </refsect1> - + <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> Devuelve el tamaño de el array, como un <type>integer</type>. </para> </refsect1> - + <refsect1 role="examples"> &reftitle.examples; <para> @@ -56,7 +56,19 @@ </example> </para> </refsect1> - + <refsect1 role="notes"> + &reftitle.notes; + <para> + Este método es funcionalmente equivalente al método <function>SplFixedArray::count</function> + </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <simplelist> + <member><function>SplFixedArray::count</function></member> + </simplelist> + </refsect1> </refentry> <!-- Keep this comment at the end of the file

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