cvs: phpdoc-es /reference/ifx/functions ifx-fieldproperties.xml

From: Date: Thu, 04 Aug 2005 15:23:04 +0000
Subject: cvs: phpdoc-es /reference/ifx/functions ifx-fieldproperties.xml
Groups: php.doc.es 
Request: Send a blank email to doc-es+get-1195@lists.php.net to get a copy of this message
javi Thu Aug 4 11:23:04 2005 EDT Modified files: /phpdoc-es/reference/ifx/functions ifx-fieldproperties.xml Log: - Añadido EN-Revision - Actualizado el ejemplo http://cvs.php.net/diff.php/phpdoc-es/reference/ifx/functions/ifx-fieldproperties.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-es/reference/ifx/functions/ifx-fieldproperties.xml diff -u phpdoc-es/reference/ifx/functions/ifx-fieldproperties.xml:1.2 phpdoc-es/reference/ifx/functions/ifx-fieldproperties.xml:1.3 --- phpdoc-es/reference/ifx/functions/ifx-fieldproperties.xml:1.2 Tue Jun 24 22:09:39 2003 +++ phpdoc-es/reference/ifx/functions/ifx-fieldproperties.xml Thu Aug 4 11:23:01 2005 @@ -1,6 +1,7 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- splitted from ./es/functions/ifx.xml, last change in rev 1.1 --> -<!-- last change to 'ifx-fieldproperties' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.5 Maintainer: javi Status: ready --> +<!-- splitted from ./en/functions/ifx.xml, last change in rev 1.2 --> <refentry id="function.ifx-fieldproperties"> <refnamediv> <refname>ifx_fieldproperties</refname> @@ -14,14 +15,16 @@ </methodsynopsis> <para> Dada una consulta representada por <parameter>result_id</parameter> devuelve un - array con los nombres de campo como llaves y las propiedades como datos. + array con los nombres de campo como claves y las propiedades como datos. &false; es devuelto si hubo error. - </para><para> + </para> + <para> Devuelve las propiedades SQL de cada campo como un array. Las propiedades son codificadas as&iacute;: "SQLTYPE;longitud;precisi&oacute;n;escala;ISNULLABLE" siendo SQLTYPE el tipo de dato definido en Informix como puede ser "SQLVCHAR" etc. e ISNULLABLE (puede ser nulo) igual a "Y" s&iacute; o "N" no. </para> + <para> <example> <title>Propiedades de los campos de una consulta SQL</title> <programlisting role="php"> @@ -29,17 +32,16 @@ <?php $properties = ifx_fieldtypes ($resultid); if (! isset($properties)) { - ... error ... + /* ... error ... */ } -for ($i = 0; $i < count($properties); $i++) { - $fname = key ($properties); - printf ("%s:\t type = %s\n", $fname, $properties[$fname]); - next ($properties); +foreach ($properties as $fname => $val) { + echo "$fname:\t propiedad = $val\n"; } ?> ]]> - </programlisting> - </example> + </programlisting> + </example> + </para> </refsect1> </refentry>

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