cvs: phpdoc-es /reference/dbase/functions dbase-get-record-with-names.xml

From: Date: Tue, 05 Jul 2005 18:46:07 +0000
Subject: cvs: phpdoc-es /reference/dbase/functions dbase-get-record-with-names.xml
Groups: php.doc.es 
Request: Send a blank email to doc-es+get-1114@lists.php.net to get a copy of this message
javi Tue Jul 5 14:46:07 2005 EDT Modified files: /phpdoc-es/reference/dbase/functions dbase-get-record-with-names.xml Log: - Añadido EN-Revision - Redactada de nuevo por completo http://cvs.php.net/diff.php/phpdoc-es/reference/dbase/functions/dbase-get-record-with-names.xml?r1=1.1&r2=1.2&ty=u Index: phpdoc-es/reference/dbase/functions/dbase-get-record-with-names.xml diff -u phpdoc-es/reference/dbase/functions/dbase-get-record-with-names.xml:1.1 phpdoc-es/reference/dbase/functions/dbase-get-record-with-names.xml:1.2 --- phpdoc-es/reference/dbase/functions/dbase-get-record-with-names.xml:1.1 Sun Apr 14 20:13:26 2002 +++ phpdoc-es/reference/dbase/functions/dbase-get-record-with-names.xml Tue Jul 5 14:46:05 2005 @@ -1,29 +1,109 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./es/functions/dbase.xml, last change in rev 1.1 --> -<!-- last change to 'dbase-get-record-with-names' in en/ tree in rev 1.2 --> - <refentry id="function.dbase-get-record-with-names"> - <refnamediv> - <refname>dbase_get_record_with_names</refname> - <refpurpose>lee un registro de un fichero dBase como array - asociativo</refpurpose> - </refnamediv> - <refsect1> - <title>Descripci&oacute;n</title> - <methodsynopsis> - <type>array</type><methodname>dbase_get_record_with_names</methodname> - <methodparam><type>int</type><parameter>dbase_identifier</parameter></methodparam> - <methodparam><type>int</type><parameter>record</parameter></methodparam> - </methodsynopsis> - <para> - Devuelve los datos del registro <parameter>record</parameter> en - un array asociativo. El array incluye tambi&eacute;n un elemento con - &iacute;ndice 'deleted' que vale 1 si el registro ha sido marcado para - borrar (ver <function>dbase_delete_record</function>.</para> - <para> - Cada campo se convierte al tipo PHP apropiado. (Las fechas se - transforman en cadenas.)</para> - </refsect1> - </refentry> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.9 Maintainer: javi Status: ready --> +<refentry id="function.dbase-get-record-with-names"> + <refnamediv> + <refname>dbase_get_record_with_names</refname> + <refpurpose> + Obtiene un registro de la base de datos en forma de matriz asociativa + </refpurpose> + </refnamediv> + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>array</type><methodname>dbase_get_record_with_names</methodname> + <methodparam><type>int</type><parameter>dbase_identifier</parameter></methodparam> + <methodparam><type>int</type><parameter>record_number</parameter></methodparam> + </methodsynopsis> + <para> + Obtiene un registro de la base de datos en forma de matriz asociativa. + </para> + </refsect1> + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>dbase_identifier</parameter></term> + <listitem> + <para> + El identificador de base de datos, devuelto por la funci&oacute;n <function>dbase_open</function> + o <function>dbase_create</function>. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>record_number</parameter></term> + <listitem> + <para> + El &iacute;ndice del registro que se quiere recuperar. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + Una matriz asociativa con los valores del registro. La matriz incluye una clave asociativa + llamada <literal>deleted</literal> que tiene un valor igual a 1 si el registro ha + sido marcado para borrarlo (ver <function>dbase_delete_record</function>). + </para> + <para> + Cada campo se convierte al tipo de PHP apropiado, salvo: + <itemizedlist> + <listitem> + <simpara> + Las fechas se dejan como cadenas de texto. + </simpara> + </listitem> + <listitem> + <simpara> + Los enteros que pueden provocar desbordamiento (&gt; 32 bits) se devuelven como cadenas de texto. + </simpara> + </listitem> + </itemizedlist> + </para> + <para> + Si se produce un error, <function>dbase_get_record_with_names</function> devuelve &false;. + </para> + </refsect1> + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title>Listado de todos los usuarios registrados almacenados en la base de datos de ejemplo</title> + <programlisting role="php"> +<![CDATA[ +<?php +// abrir en modo solo lectura +$db = dbase_open('/tmp/test.dbf', 0); + +if ($db) { + $numero_registros = dbase_numrecords($db); + for ($i = 1; $i <= $numero_registros; $i++) { + $row = dbase_get_record_with_names($db, $i); + if ($row['esmiembro'] == 1) { + echo "Miembro #$i: " . trim($row['nombre']) . "\n"; + } + } +} +?> +]]> + </programlisting> + </example> + </para> + </refsect1> + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>dbase_get_record</function></member> + </simplelist> + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables:

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