cvs: phpdoc-es / translation.xml /reference/mysql/functions mysql-unbuffered-query.xml /reference/var ini.xml /reference/var/functions floatval.xml
get-defined-vars.xml get-resource-type.xml
| From: | Leonardo Boshell | Date: | Fri, 10 Oct 2003 08:57:42 +0000 |
| Subject: | cvs: phpdoc-es / translation.xml /reference/mysql/functions mysql-unbuffered-query.xml /reference/var ini.xml /reference/var/functions floatval.xml get-defined-vars.xml get-resource-type.xml |
||
| Groups: | php.doc.es | ||
| Request: | Send a blank email to doc-es+get-338@lists.php.net to get a copy of this message | ||
lboshell Fri Oct 10 04:57:42 2003 EDT
Added files:
/phpdoc-es/reference/var ini.xml
/phpdoc-es/reference/var/functions floatval.xml
get-defined-vars.xml
get-resource-type.xml
Modified files:
/phpdoc-es translation.xml
/phpdoc-es/reference/mysql/functions mysql-unbuffered-query.xml
Log:
Nuevos archivos de reference/var. Correcciones a mysql-unbuffered-query
Index: phpdoc-es/translation.xml diff -u phpdoc-es/translation.xml:1.65 phpdoc-es/translation.xml:1.66 --- phpdoc-es/translation.xml:1.65 Mon Oct 6 04:38:55 2003 +++ phpdoc-es/translation.xml Fri Oct 10 04:57:40 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.65 $ --> +<!-- $Revision: 1.66 $ --> <!DOCTYPE translation SYSTEM "../entities/translation.dtd"> <translation> @@ -32,10 +32,6 @@ <file name="faq/databases.xml" person="webstudio" type="translation" date="11.05.2003"/> <file name="faq/general.xml" person="webstudio" type="translation" date="11.05.2003"/> <file name="faq/html.xml" person="webstudio" type="translation" date="11.05.2003"/> -<file name="reference/var/ini.xml" person="lboshell" type="translation" date="06.10.2003"/> -<file name="reference/var/functions/floatval.xml" person="lboshell" type="translation" date="06.10.2003"/> -<file name="reference/var/functions/get-defined-vars.xml" person="lboshell" type="translation" date="06.10.2003"/> -<file name="reference/var/functions/get-resource-type.xml" person="lboshell" type="translation" date="06.10.2003"/> <file name="reference/var/functions/import-request-variables.xml" person="lboshell" type="translation" date="06.10.2003"/> <file name="reference/var/functions/is-bool.xml" person="lboshell" type="translation" date="06.10.2003"/> <file name="reference/var/functions/is-callable.xml" person="lboshell" type="translation" date="06.10.2003"/> Index: phpdoc-es/reference/mysql/functions/mysql-unbuffered-query.xml diff -u phpdoc-es/reference/mysql/functions/mysql-unbuffered-query.xml:1.1 phpdoc-es/reference/mysql/functions/mysql-unbuffered-query.xml:1.2 --- phpdoc-es/reference/mysql/functions/mysql-unbuffered-query.xml:1.1 Mon Oct 6 04:38:56 2003 +++ phpdoc-es/reference/mysql/functions/mysql-unbuffered-query.xml Fri Oct 10 04:57:41 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <!-- EN-Revision: 1.6 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/mysql.xml, last change in rev 1.2 --> <refentry id="function.mysql-unbuffered-query"> @@ -20,7 +20,7 @@ <para> <function>mysql_unbuffered_query</function> envía la <parameter>consulta</parameter> SQL a MySQL, sin recuperar ni -colocar en búfed las filas de resultado automáticamente, +colocar en búfer las filas de resultado automáticamente, como <function>mysql_query</function> lo hace. Por una parte, esto ahorra una considerable cantidad de memoria con las consultas SQL que producen conjuntos grandes de resultados. Por otra parte, usted puede @@ -35,7 +35,7 @@ <para> Los beneficios de <function>mysql_unbuffered_query</function> vienen por un precio: No puede usar <function>mysql_num_rows</function> -ni<function>mysql_data_seek</function> en un conjunto de resultados +ni <function>mysql_data_seek</function> en un conjunto de resultados devuelto por <function>mysql_unbuffered_query</function>. También tendrá que recuperar todas las filas de resultado de una Index: phpdoc-es/reference/var/ini.xml +++ phpdoc-es/reference/var/ini.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: lboshell Status: ready --> <section id="var.configuration"> &reftitle.runtime; &extension.runtime; <para> <table> <title>Opciones de Configuración de Variables</title> <tgroup cols="3"> <thead> <row> <entry>Nombre</entry> <entry>Por defecto</entry> <entry>Modificable</entry> </row> </thead> <tbody> <row> <entry>unserialize_callback_func</entry> <entry>""</entry> <entry>PHP_INI_ALL</entry> </row> </tbody> </tgroup> </table> Para más detalles y la definición de las constantes PHP_INI_* vea <function>ini_set</function>. </para> &ini.descriptions.title; <para> <variablelist> <varlistentry id="unserialize-callback-func"> <term> <parameter>unserialize_callback_func</parameter> <type>string</type> </term> <listitem> <para> La función de retorno de reversión de seriación será llamada (con el nombre de la clase no definida como parámetro), si el proceso de revertir la seriación encuentra una clase no definida que debería ser instanciada. Una advertencia aparecerá si la función especificada no está definida, o si la función no incluye o implementa la clase faltante. Así que únicamente defina esta entrada si de veras desea implementar tal función de retorno. </para> <para> Vea también <function>unserialize</function>. </para> </listitem> </varlistentry> </variablelist> </para> </section> <!-- 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:"../../../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 --> Index: phpdoc-es/reference/var/functions/floatval.xml +++ phpdoc-es/reference/var/functions/floatval.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.3 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/var.xml, last change in rev 1.66 --> <refentry id="function.floatval"> <refnamediv> <refname>floatval</refname> <refpurpose>Obtener el valor flotante de una variable</refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>float</type><methodname>floatval</methodname> <methodparam><type>mixed</type><parameter>var</parameter></methodparam> </methodsynopsis> <simpara> Devuelve el valor <type>float</type> de <parameter>var</parameter>. </simpara> <para> <parameter>var</parameter> puede ser cualquier tipo escalar. No puede usar <function>floatval</function> en matrices u objetos. <informalexample> <programlisting role="php"> <![CDATA[ <?php $var = '122.34343El'; $valor_flotante_de_var = floatval ($var); print $valor_flotante_de_var; // imprime 122.34343 ?> ]]> </programlisting> </informalexample> </para> <simpara> Vea también <function>intval</function>, <function>strval</function>, <function>settype</function> y <link linkend="language.types.type-juggling">Conversión de Tipos</link>. </simpara> </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:"../../../../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 --> Index: phpdoc-es/reference/var/functions/get-defined-vars.xml +++ phpdoc-es/reference/var/functions/get-defined-vars.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.5 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/var.xml, last change in rev 1.34 --> <refentry id="function.get-defined-vars"> <refnamediv> <refname>get_defined_vars</refname> <refpurpose> Devuelve una matriz con todas la variables definidas </refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>array</type><methodname>get_defined_vars</methodname> <void/> </methodsynopsis> <para> Esta función devuelve una matriz multidimensional que contiene una lista de todas las variables definidas, ya sean variables de entorno, de servidor, o definidas por el usuario. </para> <para> <informalexample> <programlisting role="php"> <![CDATA[ <?php $b = array(1,1,2,3,5,8); $matriz = get_defined_vars(); // imprimir $b print_r($matriz["b"]); /* imprimir ruta al interpretre PHP (si es usado como CGI) * p.ej. /usr/local/bin/php */ echo $matriz["_"]; // imprimir los parametros de la linea de comandos, si existen print_r($matriz["argv"]); // imprimir todas las variables del servidor print_r($matriz["_SERVER"]); // imprimir todas las claves disponibles para las matrices de variables print_r(array_keys(get_defined_vars())); ?> ]]> </programlisting> </informalexample> </para> <para> Vea también <function>get_defined_functions</function> y <function>get_defined_constants</function>. </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:"../../../../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 --> Index: phpdoc-es/reference/var/functions/get-resource-type.xml +++ phpdoc-es/reference/var/functions/get-resource-type.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.4 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/var.xml, last change in rev 1.75 --> <refentry id="function.get-resource-type"> <refnamediv> <refname>get_resource_type</refname> <refpurpose> Devuelve el tipo de recurso </refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>string</type><methodname>get_resource_type</methodname> <methodparam><type>resource</type><parameter>gestor</parameter></methodparam> </methodsynopsis> <para> Esta función devuelve una cadena que representa el tipo del <type>resource</type> pasado a ella. Si el parámetro no es un <type>resource</type> válido, genera un error. </para> <para> <informalexample> <programlisting role="php"> <![CDATA[ <?php // imprime: mysql link $c = mysql_connect(); echo get_resource_type($c)."\n"; // imprime: file $da = fopen("foo", "w"); echo get_resource_type($da)."\n"; // imprime: domxml document $doc = new_xmldoc("1.0"); echo get_resource_type($doc->doc)."\n"; ?> ]]> </programlisting> </informalexample> </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:"../../../../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 -->
Index: phpdoc-es/translation.xml diff -u phpdoc-es/translation.xml:1.65 phpdoc-es/translation.xml:1.66 --- phpdoc-es/translation.xml:1.65 Mon Oct 6 04:38:55 2003 +++ phpdoc-es/translation.xml Fri Oct 10 04:57:40 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.65 $ --> +<!-- $Revision: 1.66 $ --> <!DOCTYPE translation SYSTEM "../entities/translation.dtd"> <translation> @@ -32,10 +32,6 @@ <file name="faq/databases.xml" person="webstudio" type="translation" date="11.05.2003"/> <file name="faq/general.xml" person="webstudio" type="translation" date="11.05.2003"/> <file name="faq/html.xml" person="webstudio" type="translation" date="11.05.2003"/> -<file name="reference/var/ini.xml" person="lboshell" type="translation" date="06.10.2003"/> -<file name="reference/var/functions/floatval.xml" person="lboshell" type="translation" date="06.10.2003"/> -<file name="reference/var/functions/get-defined-vars.xml" person="lboshell" type="translation" date="06.10.2003"/> -<file name="reference/var/functions/get-resource-type.xml" person="lboshell" type="translation" date="06.10.2003"/> <file name="reference/var/functions/import-request-variables.xml" person="lboshell" type="translation" date="06.10.2003"/> <file name="reference/var/functions/is-bool.xml" person="lboshell" type="translation" date="06.10.2003"/> <file name="reference/var/functions/is-callable.xml" person="lboshell" type="translation" date="06.10.2003"/> Index: phpdoc-es/reference/mysql/functions/mysql-unbuffered-query.xml diff -u phpdoc-es/reference/mysql/functions/mysql-unbuffered-query.xml:1.1 phpdoc-es/reference/mysql/functions/mysql-unbuffered-query.xml:1.2 --- phpdoc-es/reference/mysql/functions/mysql-unbuffered-query.xml:1.1 Mon Oct 6 04:38:56 2003 +++ phpdoc-es/reference/mysql/functions/mysql-unbuffered-query.xml Fri Oct 10 04:57:41 2003 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <!-- EN-Revision: 1.6 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/mysql.xml, last change in rev 1.2 --> <refentry id="function.mysql-unbuffered-query"> @@ -20,7 +20,7 @@ <para> <function>mysql_unbuffered_query</function> envía la <parameter>consulta</parameter> SQL a MySQL, sin recuperar ni -colocar en búfed las filas de resultado automáticamente, +colocar en búfer las filas de resultado automáticamente, como <function>mysql_query</function> lo hace. Por una parte, esto ahorra una considerable cantidad de memoria con las consultas SQL que producen conjuntos grandes de resultados. Por otra parte, usted puede @@ -35,7 +35,7 @@ <para> Los beneficios de <function>mysql_unbuffered_query</function> vienen por un precio: No puede usar <function>mysql_num_rows</function> -ni<function>mysql_data_seek</function> en un conjunto de resultados +ni <function>mysql_data_seek</function> en un conjunto de resultados devuelto por <function>mysql_unbuffered_query</function>. También tendrá que recuperar todas las filas de resultado de una Index: phpdoc-es/reference/var/ini.xml +++ phpdoc-es/reference/var/ini.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: lboshell Status: ready --> <section id="var.configuration"> &reftitle.runtime; &extension.runtime; <para> <table> <title>Opciones de Configuración de Variables</title> <tgroup cols="3"> <thead> <row> <entry>Nombre</entry> <entry>Por defecto</entry> <entry>Modificable</entry> </row> </thead> <tbody> <row> <entry>unserialize_callback_func</entry> <entry>""</entry> <entry>PHP_INI_ALL</entry> </row> </tbody> </tgroup> </table> Para más detalles y la definición de las constantes PHP_INI_* vea <function>ini_set</function>. </para> &ini.descriptions.title; <para> <variablelist> <varlistentry id="unserialize-callback-func"> <term> <parameter>unserialize_callback_func</parameter> <type>string</type> </term> <listitem> <para> La función de retorno de reversión de seriación será llamada (con el nombre de la clase no definida como parámetro), si el proceso de revertir la seriación encuentra una clase no definida que debería ser instanciada. Una advertencia aparecerá si la función especificada no está definida, o si la función no incluye o implementa la clase faltante. Así que únicamente defina esta entrada si de veras desea implementar tal función de retorno. </para> <para> Vea también <function>unserialize</function>. </para> </listitem> </varlistentry> </variablelist> </para> </section> <!-- 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:"../../../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 --> Index: phpdoc-es/reference/var/functions/floatval.xml +++ phpdoc-es/reference/var/functions/floatval.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.3 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/var.xml, last change in rev 1.66 --> <refentry id="function.floatval"> <refnamediv> <refname>floatval</refname> <refpurpose>Obtener el valor flotante de una variable</refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>float</type><methodname>floatval</methodname> <methodparam><type>mixed</type><parameter>var</parameter></methodparam> </methodsynopsis> <simpara> Devuelve el valor <type>float</type> de <parameter>var</parameter>. </simpara> <para> <parameter>var</parameter> puede ser cualquier tipo escalar. No puede usar <function>floatval</function> en matrices u objetos. <informalexample> <programlisting role="php"> <![CDATA[ <?php $var = '122.34343El'; $valor_flotante_de_var = floatval ($var); print $valor_flotante_de_var; // imprime 122.34343 ?> ]]> </programlisting> </informalexample> </para> <simpara> Vea también <function>intval</function>, <function>strval</function>, <function>settype</function> y <link linkend="language.types.type-juggling">Conversión de Tipos</link>. </simpara> </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:"../../../../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 --> Index: phpdoc-es/reference/var/functions/get-defined-vars.xml +++ phpdoc-es/reference/var/functions/get-defined-vars.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.5 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/var.xml, last change in rev 1.34 --> <refentry id="function.get-defined-vars"> <refnamediv> <refname>get_defined_vars</refname> <refpurpose> Devuelve una matriz con todas la variables definidas </refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>array</type><methodname>get_defined_vars</methodname> <void/> </methodsynopsis> <para> Esta función devuelve una matriz multidimensional que contiene una lista de todas las variables definidas, ya sean variables de entorno, de servidor, o definidas por el usuario. </para> <para> <informalexample> <programlisting role="php"> <![CDATA[ <?php $b = array(1,1,2,3,5,8); $matriz = get_defined_vars(); // imprimir $b print_r($matriz["b"]); /* imprimir ruta al interpretre PHP (si es usado como CGI) * p.ej. /usr/local/bin/php */ echo $matriz["_"]; // imprimir los parametros de la linea de comandos, si existen print_r($matriz["argv"]); // imprimir todas las variables del servidor print_r($matriz["_SERVER"]); // imprimir todas las claves disponibles para las matrices de variables print_r(array_keys(get_defined_vars())); ?> ]]> </programlisting> </informalexample> </para> <para> Vea también <function>get_defined_functions</function> y <function>get_defined_constants</function>. </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:"../../../../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 --> Index: phpdoc-es/reference/var/functions/get-resource-type.xml +++ phpdoc-es/reference/var/functions/get-resource-type.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.4 Maintainer: lboshell Status: ready --> <!-- splitted from ./en/functions/var.xml, last change in rev 1.75 --> <refentry id="function.get-resource-type"> <refnamediv> <refname>get_resource_type</refname> <refpurpose> Devuelve el tipo de recurso </refpurpose> </refnamediv> <refsect1> <title>Descripción</title> <methodsynopsis> <type>string</type><methodname>get_resource_type</methodname> <methodparam><type>resource</type><parameter>gestor</parameter></methodparam> </methodsynopsis> <para> Esta función devuelve una cadena que representa el tipo del <type>resource</type> pasado a ella. Si el parámetro no es un <type>resource</type> válido, genera un error. </para> <para> <informalexample> <programlisting role="php"> <![CDATA[ <?php // imprime: mysql link $c = mysql_connect(); echo get_resource_type($c)."\n"; // imprime: file $da = fopen("foo", "w"); echo get_resource_type($da)."\n"; // imprime: domxml document $doc = new_xmldoc("1.0"); echo get_resource_type($doc->doc)."\n"; ?> ]]> </programlisting> </informalexample> </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:"../../../../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 -->