cvs: phpdoc-fr /reference/ovrimos/functions ovrimos-close.xml ovrimos-commit.xml ovrimos-connect.xml ovrimos-cursor.xml ovrimos-exec.xml
ovrimos-execute.xml ovrimos-fetch-into.xml ovrimos-fetch-row.xml ovrimos-field-len.xml ovrimos-field-name.xml ovrimos-field-num.xml
ovrimos-field-type.xml ovrimos-free-result.xml ovrimos-longreadlen.xml ovrimos-num-fields.xml ovrimos-num-rows.xml ovrimos-prepare.xml
ovrimos-result-all.xml ovrimos-result.xml ovrimos-rollback.xml

From: Date: Sun, 25 Mar 2007 10:24:53 +0000
Subject: cvs: phpdoc-fr /reference/ovrimos/functions ovrimos-close.xml ovrimos-commit.xml ovrimos-connect.xml ovrimos-cursor.xml ovrimos-exec.xml
ovrimos-execute.xml ovrimos-fetch-into.xml ovrimos-fetch-row.xml ovrimos-field-len.xml ovrimos-field-name.xml ovrimos-field-num.xml
ovrimos-field-type.xml ovrimos-free-result.xml ovrimos-longreadlen.xml ovrimos-num-fields.xml ovrimos-num-rows.xml ovrimos-prepare.xml
ovrimos-result-all.xml ovrimos-result.xml ovrimos-rollback.xml
Groups: php.doc.fr 
Request: Send a blank email to doc-fr+get-5277@lists.php.net to get a copy of this message
yannick Sun Mar 25 10:24:53 2007 UTC Modified files: /phpdoc-fr/reference/ovrimos/functions ovrimos-close.xml ovrimos-commit.xml ovrimos-connect.xml ovrimos-cursor.xml ovrimos-execute.xml ovrimos-exec.xml ovrimos-fetch-into.xml ovrimos-fetch-row.xml ovrimos-field-len.xml ovrimos-field-name.xml ovrimos-field-num.xml ovrimos-field-type.xml ovrimos-free-result.xml ovrimos-longreadlen.xml ovrimos-num-fields.xml ovrimos-num-rows.xml ovrimos-prepare.xml ovrimos-result-all.xml ovrimos-result.xml ovrimos-rollback.xml Log: sync with EN

http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/ovrimos/functions/ovrimos-close.xml?r1=1.9&r2=1.10&diff_format=u Index: phpdoc-fr/reference/ovrimos/functions/ovrimos-close.xml diff -u phpdoc-fr/reference/ovrimos/functions/ovrimos-close.xml:1.9 phpdoc-fr/reference/ovrimos/functions/ovrimos-close.xml:1.10 --- phpdoc-fr/reference/ovrimos/functions/ovrimos-close.xml:1.9 Sun Feb 20 14:53:28 2005 +++ phpdoc-fr/reference/ovrimos/functions/ovrimos-close.xml Sun Mar 25 10:24:53 2007 @@ -1,24 +1,59 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.9 $ --> -<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> -<!-- Reviewed: yes --> - <refentry id="function.ovrimos-close"> - <refnamediv> - <refname>ovrimos_close</refname> - <refpurpose>Ferme une connexion Ovrimos</refpurpose> - </refnamediv> - <refsect1> - &reftitle.description; - <methodsynopsis> - <type>void</type><methodname>ovrimos_close</methodname> - <methodparam><type>int</type><parameter>connection</parameter></methodparam> - </methodsynopsis> - <para> - <function>ovrimos_close</function> ferme la connexion au serveur - Ovrimos. Toutes les transactions non validées sont annulées. - </para> - </refsect1> - </refentry> +<!-- $Revision: 1.10 $ --> +<!-- EN-Revision: 1.6 Maintainer: yannick Status: ready --> +<!-- Reviewed: no --> + +<refentry id="function.ovrimos-close"> + <refnamediv> + <refname>ovrimos_close</refname> + <refpurpose>Ferme une connexion Ovrimos</refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>void</type><methodname>ovrimos_close</methodname> + <methodparam><type>int</type><parameter>connection</parameter></methodparam> + </methodsynopsis> + <para> + Ferme la connexion Ovrimos spécifiée. Toutes les transactions non validées sont annulées. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>connection</parameter></term> + <listitem> + <para> + L'identifiant de connexion Ovrimos, retourné par la fonction + <function>ovrimos_connect</function>. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + &return.void; + </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>ovrimos_connect</function></member> + </simplelist> + </para> + </refsect1> + +</refentry> <!-- Keep this comment at the end of the file Local variables: @@ -39,4 +74,4 @@ vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> +--> \ No newline at end of file http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/ovrimos/functions/ovrimos-commit.xml?r1=1.8&r2=1.9&diff_format=u Index: phpdoc-fr/reference/ovrimos/functions/ovrimos-commit.xml diff -u phpdoc-fr/reference/ovrimos/functions/ovrimos-commit.xml:1.8 phpdoc-fr/reference/ovrimos/functions/ovrimos-commit.xml:1.9 --- phpdoc-fr/reference/ovrimos/functions/ovrimos-commit.xml:1.8 Sun Feb 20 14:53:28 2005 +++ phpdoc-fr/reference/ovrimos/functions/ovrimos-commit.xml Sun Mar 25 10:24:53 2007 @@ -1,25 +1,59 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.8 $ --> -<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.9 $ --> +<!-- EN-Revision: 1.6 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> - <refentry id="function.ovrimos-commit"> - <refnamediv> - <refname>ovrimos_commit</refname> - <refpurpose>Valide une transaction Ovrimos</refpurpose> - </refnamediv> - <refsect1> - &reftitle.description; - <methodsynopsis> - <type>bool</type><methodname>ovrimos_commit</methodname> - <methodparam><type>int</type><parameter>connection_id</parameter></methodparam> - </methodsynopsis> - <para> - <function>ovrimos_commit</function> exécute la transaction préparée - sur la connexion <parameter>connection_id</parameter>. - &return.success; - </para> - </refsect1> - </refentry> + +<refentry id="function.ovrimos-commit"> + <refnamediv> + <refname>ovrimos_commit</refname> + <refpurpose>Valide une transaction Ovrimos</refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>bool</type><methodname>ovrimos_commit</methodname> + <methodparam><type>int</type><parameter>connection_id</parameter></methodparam> + </methodsynopsis> + <para> + Valide une transaction Ovrimos. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>connection_id</parameter></term> + <listitem> + <para> + L'identifiant de connexion Ovrimos, retourné par la fonction + <function>ovrimos_connect</function>. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + &return.success; + </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>ovrimos_rollback</function></member> + </simplelist> + </para> + </refsect1> + +</refentry> <!-- Keep this comment at the end of the file Local variables: @@ -40,4 +74,4 @@ vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> +--> \ No newline at end of file http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/ovrimos/functions/ovrimos-connect.xml?r1=1.9&r2=1.10&diff_format=u Index: phpdoc-fr/reference/ovrimos/functions/ovrimos-connect.xml diff -u phpdoc-fr/reference/ovrimos/functions/ovrimos-connect.xml:1.9 phpdoc-fr/reference/ovrimos/functions/ovrimos-connect.xml:1.10 --- phpdoc-fr/reference/ovrimos/functions/ovrimos-connect.xml:1.9 Sun Feb 20 14:53:28 2005 +++ phpdoc-fr/reference/ovrimos/functions/ovrimos-connect.xml Sun Mar 25 10:24:53 2007 @@ -1,44 +1,90 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.9 $ --> -<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> -<!-- Reviewed: yes --> - <refentry id="function.ovrimos-connect"> - <refnamediv> - <refname>ovrimos_connect</refname> - <refpurpose>Connexion à un serveur</refpurpose> - </refnamediv> - <refsect1> - &reftitle.description; - <methodsynopsis> - <type>int</type><methodname>ovrimos_connect</methodname> - <methodparam><type>string</type><parameter>host</parameter></methodparam> - <methodparam><type>string</type><parameter>db</parameter></methodparam> - <methodparam><type>string</type><parameter>user</parameter></methodparam> - <methodparam><type>string</type><parameter>password</parameter></methodparam> - </methodsynopsis> - <para> - <function>ovrimos_connect</function> se connecte à un serveur - Ovrimos. - </para> - <para> - <function>ovrimos_connect</function> retourne un identifiant de connexion, - supérieur à 0, ou 0 en cas d'échec.<parameter>host</parameter> - est l'adresse IP de l'hôte Ovrimos, et <parameter>db</parameter> est soit - le nom d'une base de données, soit une chaîne contenant - le numéro de port. - </para> - <para> - <example> - <title>Exemple avec <function>ovrimos_connect</function></title> - <programlisting role="php"> +<!-- $Revision: 1.10 $ --> +<!-- EN-Revision: 1.7 Maintainer: yannick Status: ready --> +<!-- Reviewed: no --> + +<refentry id="function.ovrimos-connect"> + <refnamediv> + <refname>ovrimos_connect</refname> + <refpurpose>Connexion à un serveur</refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>int</type><methodname>ovrimos_connect</methodname> + <methodparam><type>string</type><parameter>host</parameter></methodparam> + <methodparam><type>string</type><parameter>dborport</parameter></methodparam> + <methodparam><type>string</type><parameter>user</parameter></methodparam> + <methodparam><type>string</type><parameter>password</parameter></methodparam> + </methodsynopsis> + <para> + Connexion à un serveur spécifié. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>host</parameter></term> + <listitem> + <para> + Le nom de l'hôte ou l'adresse IP. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>dborport</parameter></term> + <listitem> + <para> + Soit le nom de la base de données, soit le numéro du port de connexion. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>user</parameter></term> + <listitem> + <para> + Le nom d'utilisateur. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>password</parameter></term> + <listitem> + <para> + Le mot de passe associé à l'utilisateur <parameter>user</parameter>. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + Retourne un identifiant de connexion (supérieur à 0) en cas de succès, + ou &zero; si une erreur survient. + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title>Exemple avec <function>ovrimos_connect</function></title> + <programlisting role="php"> <![CDATA[ <?php -$conn = ovrimos_connect("server.domain.com", "8001", "admin", "password"); +$conn = ovrimos_connect("server.example.com", "8001", "admin", "password"); if ($conn != 0) { - echo 'Connexion établie!'; - $res=ovrimos_exec($conn, "select table_id, table_name from sys.tables"); + echo "Connexion ok!"; + $res = ovrimos_exec($conn, "select table_id, table_name from sys.tables"); if ($res != 0) { - echo 'Requête effectuée!'; + echo "Requête ok!"; ovrimos_result_all($res); ovrimos_free_result($res); } @@ -46,13 +92,21 @@ } ?> ]]> - </programlisting> - </example> - L'exemple ci-dessus montre comment se connecter à une base de données - et afficher le contenu d'une table. - </para> - </refsect1> - </refentry> + </programlisting> + </example> + </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>ovrimos_close</function></member> + </simplelist> + </para> + </refsect1> + +</refentry> <!-- Keep this comment at the end of the file Local variables: @@ -73,4 +127,4 @@ vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> +--> \ No newline at end of file http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/ovrimos/functions/ovrimos-cursor.xml?r1=1.8&r2=1.9&diff_format=u Index: phpdoc-fr/reference/ovrimos/functions/ovrimos-cursor.xml diff -u phpdoc-fr/reference/ovrimos/functions/ovrimos-cursor.xml:1.8 phpdoc-fr/reference/ovrimos/functions/ovrimos-cursor.xml:1.9 --- phpdoc-fr/reference/ovrimos/functions/ovrimos-cursor.xml:1.8 Sun Feb 20 14:53:28 2005 +++ phpdoc-fr/reference/ovrimos/functions/ovrimos-cursor.xml Sun Mar 25 10:24:53 2007 @@ -1,25 +1,52 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.8 $ --> -<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.9 $ --> +<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> - <refentry id="function.ovrimos-cursor"> - <refnamediv> - <refname>ovrimos_cursor</refname> - <refpurpose>Retourne le nom du curseur Ovrimos</refpurpose> - </refnamediv> - <refsect1> - &reftitle.description; - <methodsynopsis> - <type>string</type><methodname>ovrimos_cursor</methodname> - <methodparam><type>int</type><parameter>result_id</parameter></methodparam> - </methodsynopsis> - <para> - <function>ovrimos_cursor</function> retourne le nom du curseur. - Pratique, lorsqu'on veut faire des modifications ou des effacements - avec des curseurs déjà positionnés. - </para> - </refsect1> - </refentry> + +<refentry id="function.ovrimos-cursor"> + <refnamediv> + <refname>ovrimos_cursor</refname> + <refpurpose>Retourne le nom du curseur Ovrimos</refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>string</type><methodname>ovrimos_cursor</methodname> + <methodparam><type>int</type><parameter>result_id</parameter></methodparam> + </methodsynopsis> + <para> + Retourne le nom du curseur Ovrimos. Pratique, lorsqu'on veut faire des + modifications ou des effacements avec des curseurs déjà positionnés. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>result_id</parameter></term> + <listitem> + <para> + Un identifiant de résultat, retourné par la fonction + <function>ovrimos_execute</function> ou la fonction + <function>ovrimos_exec</function>. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + Retourne le nom, sous la forme d'une &string;, ou &false; + si une erreur survient. + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: @@ -40,4 +67,4 @@ vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> +--> \ No newline at end of file http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/ovrimos/functions/ovrimos-execute.xml?r1=1.10&r2=1.11&diff_format=u Index: phpdoc-fr/reference/ovrimos/functions/ovrimos-execute.xml diff -u phpdoc-fr/reference/ovrimos/functions/ovrimos-execute.xml:1.10 phpdoc-fr/reference/ovrimos/functions/ovrimos-execute.xml:1.11 --- phpdoc-fr/reference/ovrimos/functions/ovrimos-execute.xml:1.10 Sun Feb 20 14:53:28 2005 +++ phpdoc-fr/reference/ovrimos/functions/ovrimos-execute.xml Sun Mar 25 10:24:53 2007 @@ -1,31 +1,69 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.10 $ --> -<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.11 $ --> +<!-- EN-Revision: 1.6 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> - <refentry id="function.ovrimos-execute"> - <refnamediv> - <refname>ovrimos_execute</refname> - <refpurpose>Exécute une requête Ovrimos préparée</refpurpose> - </refnamediv> - <refsect1> - &reftitle.description; - <methodsynopsis> - <type>bool</type><methodname>ovrimos_execute</methodname> - <methodparam><type>int</type><parameter>result_id</parameter></methodparam> - <methodparam choice="opt"><type>array</type><parameter>parameters_array</parameter></methodparam> - </methodsynopsis> - <para> - <function>ovrimos_execute</function> sert à exécuter une requête SQL. - &return.success; - Si la requête préparée contient des paramètres (des points d'interrogation dans la - requête), un nombre correct de paramètres doit être passé dans le tableau - <parameter>parameters_array</parameter>. Notez - que <function>ovrimos_execute</function> ne - suit pas les conventions &php; qui placent les noms des paramètres - entre crochets. L'auteur n'a pas pu s'y faire. - </para> - </refsect1> - </refentry> + +<refentry id="function.ovrimos-execute"> + <refnamediv> + <refname>ovrimos_execute</refname> + <refpurpose>Exécute une requête Ovrimos préparée</refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>bool</type><methodname>ovrimos_execute</methodname> + <methodparam><type>int</type><parameter>result_id</parameter></methodparam> + <methodparam choice="opt"><type>array</type><parameter>parameters_array</parameter></methodparam> + </methodsynopsis> + <para> + Exécute une requête Ovrimos préparée. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>result_id</parameter></term> + <listitem> + <para> + Un identifiant de résultat Ovrimos, préparé par la fonction + <function>ovrimos_prepare</function>. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>parameters_array</parameter></term> + <listitem> + <para> + Si la requête préparée contient des paramètres (des points d'interrogation dans la + requête), un nombre correct de paramètres doit être passé dans le tableau. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + &return.success; + </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>ovrimos_prepare</function></member> + </simplelist> + </para> + </refsect1> + +</refentry> <!-- Keep this comment at the end of the file Local variables: @@ -46,4 +84,4 @@ vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> +--> \ No newline at end of file http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/ovrimos/functions/ovrimos-exec.xml?r1=1.9&r2=1.10&diff_format=u Index: phpdoc-fr/reference/ovrimos/functions/ovrimos-exec.xml diff -u phpdoc-fr/reference/ovrimos/functions/ovrimos-exec.xml:1.9 phpdoc-fr/reference/ovrimos/functions/ovrimos-exec.xml:1.10 --- phpdoc-fr/reference/ovrimos/functions/ovrimos-exec.xml:1.9 Sun Dec 11 20:54:49 2005 +++ phpdoc-fr/reference/ovrimos/functions/ovrimos-exec.xml Sun Mar 25 10:24:53 2007 @@ -1,27 +1,73 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.9 $ --> -<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.10 $ --> +<!-- EN-Revision: 1.6 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> - <refentry id="function.ovrimos-exec"> - <refnamediv> - <refname>ovrimos_exec</refname> - <refpurpose>Exécute une requête SQL</refpurpose> - </refnamediv> - <refsect1> - &reftitle.description; - <methodsynopsis> - <type>int</type><methodname>ovrimos_exec</methodname> - <methodparam><type>int</type><parameter>connection_id</parameter></methodparam> - <methodparam><type>string</type><parameter>query</parameter></methodparam> - </methodsynopsis> - <para> - <function>ovrimos_exec</function> exécute une requête SQL - (sélection ou modification), et retourne un identifiant de résultat - result_id (ou bien &false;, en cas d'échec). Évidemment, la - requête SQL ne doit pas contenir de paramètres. - </para> - </refsect1> - </refentry> + +<refentry id="function.ovrimos-exec"> + <refnamediv> + <refname>ovrimos_exec</refname> + <refpurpose>Exécute une requête SQL</refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>int</type><methodname>ovrimos_exec</methodname> + <methodparam><type>int</type><parameter>connection_id</parameter></methodparam> + <methodparam><type>string</type><parameter>query</parameter></methodparam> + </methodsynopsis> + <para> + Exécute une requête SQL (sélection ou modification), et retourne + un identifiant de résultat. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>connection_id</parameter></term> + <listitem> + <para> + Un identifiant de connexion Ovrimos, retourné par la fonction + <function>ovrimos_connect</function>. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>query</parameter></term> + <listitem> + <para> + La requête SQL. Évidemment, la requête SQL ne doit pas contenir de paramètres. + Utilisez la fonction <function>ovrimos_prepare</function> + pour les requêtes préparées. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + Retourne l'identifiant de résultat, sous la forme d'un &integer;, + ou &false; si une erreur survient. + </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>ovrimos_execute</function></member> + <member><function>ovrimos_prepare</function></member> + </simplelist> + </para> + </refsect1> + +</refentry> <!-- Keep this comment at the end of the file Local variables: @@ -42,4 +88,4 @@ vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> +--> \ No newline at end of file http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/ovrimos/functions/ovrimos-fetch-into.xml?r1=1.11&r2=1.12&diff_format=u Index: phpdoc-fr/reference/ovrimos/functions/ovrimos-fetch-into.xml diff -u phpdoc-fr/reference/ovrimos/functions/ovrimos-fetch-into.xml:1.11 phpdoc-fr/reference/ovrimos/functions/ovrimos-fetch-into.xml:1.12 --- phpdoc-fr/reference/ovrimos/functions/ovrimos-fetch-into.xml:1.11 Sun Feb 20 14:53:28 2005 +++ phpdoc-fr/reference/ovrimos/functions/ovrimos-fetch-into.xml Sun Mar 25 10:24:53 2007 @@ -1,61 +1,151 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.11 $ --> -<!-- EN-Revision: 1.6 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.12 $ --> +<!-- EN-Revision: 1.9 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> - <refentry id="function.ovrimos-fetch-into"> - <refnamediv> - <refname>ovrimos_fetch_into</refname> - <refpurpose>Lit une ligne dans un résultat Ovrimos</refpurpose> - </refnamediv> - <refsect1> - &reftitle.description; - <methodsynopsis> - <type>bool</type><methodname>ovrimos_fetch_into</methodname> - <methodparam><type>int</type><parameter>result_id</parameter></methodparam> - <methodparam><type>array</type><parameter role="reference">result_array</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>how</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter>rownumber</parameter></methodparam> - </methodsynopsis> - <para> - <function>ovrimos_fetch_into</function> lit une ligne dans le - résultat <parameter>result_id</parameter>, qui doit être passé - en référence. La ligne qui sera lue est déterminée par les deux - paramètres <parameter>how</parameter> et - <parameter>rownumber</parameter>. - <parameter>how</parameter> peut prendre les valeurs de - <literal>Next</literal> (suivant, valeur par défaut), - <literal>Prev</literal> (précédent), - <literal>First</literal> (premier), - <literal>Last</literal> (dernier), - <literal>Absolute</literal> (position absolue). La - casse de <parameter>how</parameter> - n'est pas prise en compte. <parameter>rownumber</parameter> - est optionnel, sauf dans le cas d'<literal>Absolute</literal>. - &return.success; - </para> - <para> - <example> - <title>Lit un exemple</title> - <programlisting role="php"> + +<refentry id="function.ovrimos-fetch-into"> + <refnamediv> + <refname>ovrimos_fetch_into</refname> + <refpurpose>Lit une ligne dans un résultat Ovrimos</refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>bool</type><methodname>ovrimos_fetch_into</methodname> + <methodparam><type>int</type><parameter>result_id</parameter></methodparam> + <methodparam><type>array</type><parameter role="reference">result_array</parameter></methodparam> + <methodparam choice="opt"><type>string</type><parameter>how</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>rownumber</parameter></methodparam> + </methodsynopsis> + <para> + Lit une ligne depuis le jeu de résultats fourni, dans le tableau + <parameter>result_array</parameter>. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>result_id</parameter></term> + <listitem> + <para> + Un identifiant de résultat, retourné par la fonction + <function>ovrimos_execute</function> ou la fonction + <function>ovrimos_exec</function>. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>result_array</parameter></term> + <listitem> + <para> + Vous devez passer un tableau par référence. Il sera complété par les + valeurs récupérées. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>how</parameter></term> + <listitem> + <para> + Détermine la façon dont les lignes sont récupérées. Peut être une + des chaînes suivantes (la casse n'est pas significatif) : + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>Option</entry> + <entry>Notes</entry> + </row> + </thead> + <tbody> + <row> + <entry><literal>Next</literal></entry> + <entry> + Suivant par rapport à la position courante. + C'est la valeur par défaut. + </entry> + </row> + <row> + <entry><literal>Prev</literal></entry> + <entry> + Précédent par rapport à la position courante. + </entry> + </row> + <row> + <entry><literal>First</literal></entry> + <entry> + Premier. + </entry> + </row> + <row> + <entry><literal>Last</literal></entry> + <entry> + Dernier. + </entry> + </row> + <row> + <entry><literal>Absolute</literal></entry> + <entry> + Position absolue, par rapport au premier. + Nécessite le paramètre <parameter>rownumber</parameter>. + </entry> + </row> + </tbody> + </tgroup> + </informaltable> + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>rownumber</parameter></term> + <listitem> + <para> + Le numéro de la ligne, en commançant à 0. Seulement nécessaire + lorsque <parameter>how</parameter> est défini à + <literal>Absolute</literal>. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + &return.success; + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title>Exemple de récupération</title> + <programlisting role="php"> <![CDATA[ <?php $conn=ovrimos_connect("neptune", "8001", "admin", "password"); if ($conn!=0) { - echo 'Connexion établie!'; - $res=ovrimos_exec($conn, "SELECT table_id, table_name FROM sys.tables"); + echo "Connexion ok!"; + $res=ovrimos_exec($conn, "select table_id, table_name from sys.tables"); if ($res != 0) { - echo 'Requête effectuée!'; + echo "Requête ok!"; if (ovrimos_fetch_into($res, &$row)) { - list ($table_id, $table_name) = $row; - echo "table_id=".$table_id.", table_name=".$table_name."\n"; + list($table_id, $table_name) = $row; + echo "table_id=" . $table_id . ", table_name=" . $table_name . "\n"; if (ovrimos_fetch_into($res, &$row)) { - list ($table_id, $table_name) = $row; - echo "table_id=".$table_id.", table_name=".$table_name."\n"; + list($table_id, $table_name) = $row; + echo "table_id=" . $table_id . ", table_name=" . $table_name . "\n"; } else { - echo "Next: erreur\n"; + echo "Suivant : erreur\n"; } } else { - echo "First: erreur\n"; + echo "Premier : erreur\n"; } ovrimos_free_result($res); } @@ -63,12 +153,21 @@ } ?> ]]> - </programlisting> - </example> - Cet exemple lit une ligne. - </para> - </refsect1> - </refentry> + </programlisting> + </example> + </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>ovrimos_fetch_row</function></member> + </simplelist> + </para> + </refsect1> + +</refentry> <!-- Keep this comment at the end of the file Local variables: @@ -89,4 +188,4 @@ vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> +--> \ No newline at end of file http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/ovrimos/functions/ovrimos-fetch-row.xml?r1=1.10&r2=1.11&diff_format=u Index: phpdoc-fr/reference/ovrimos/functions/ovrimos-fetch-row.xml diff -u phpdoc-fr/reference/ovrimos/functions/ovrimos-fetch-row.xml:1.10 phpdoc-fr/reference/ovrimos/functions/ovrimos-fetch-row.xml:1.11 --- phpdoc-fr/reference/ovrimos/functions/ovrimos-fetch-row.xml:1.10 Sun Feb 20 14:53:28 2005 +++ phpdoc-fr/reference/ovrimos/functions/ovrimos-fetch-row.xml Sun Mar 25 10:24:53 2007 @@ -1,50 +1,143 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.10 $ --> -<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> -<!-- Reviewed: yes --> - <refentry id="function.ovrimos-fetch-row"> - <refnamediv> - <refname>ovrimos_fetch_row</refname> - <refpurpose>Lit une ligne dans un résultat Ovrimos</refpurpose> - </refnamediv> - <refsect1> - &reftitle.description; - <methodsynopsis> - <type>bool</type><methodname>ovrimos_fetch_row</methodname> - <methodparam><type>int</type><parameter>result_id</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter>how</parameter></methodparam> - <methodparam choice="opt"><type>int</type><parameter>row_number</parameter></methodparam> - </methodsynopsis> - <para> - <function>ovrimos_fetch_row</function> lit une ligne dans un résultat. - Les colonnes doivent être lues par un autre appel. - &return.success; - </para> - <para> - <example> - <title>Exemple de lecture de ligne Ovrimos</title> - <programlisting role="php"> +<!-- $Revision: 1.11 $ --> +<!-- EN-Revision: 1.7 Maintainer: yannick Status: ready --> +<!-- Reviewed: no --> + +<refentry id="function.ovrimos-fetch-row"> + <refnamediv> + <refname>ovrimos_fetch_row</refname> + <refpurpose>Lit une ligne dans un résultat Ovrimos</refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>bool</type><methodname>ovrimos_fetch_row</methodname> + <methodparam><type>int</type><parameter>result_id</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>how</parameter></methodparam> + <methodparam choice="opt"><type>int</type><parameter>row_number</parameter></methodparam> + </methodsynopsis> + <para> + Lit une ligne depuis un jeu de résultat. Les valeurs des colonnes peuvent récupérées + avec d'autres appels. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>result_id</parameter></term> + <listitem> + <para> + Un identifiant de résultat, retourné par la fonction + <function>ovrimos_execute</function> ou la fonction + <function>ovrimos_exec</function>. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>how</parameter></term> + <listitem> + <para> + Détermine la façon dont les lignes sont récupérées. Peut être une + des chaînes suivantes (la casse n'est pas significative) : + <informaltable> + <tgroup cols="2"> + <thead> + <row> + <entry>Option</entry> + <entry>Notes</entry> + </row> + </thead> + <tbody> + <row> + <entry><literal>Next</literal></entry> + <entry> + Suivant, par rapport à la position courante. + C'est la valeur par défaut. + </entry> + </row> + <row> + <entry><literal>Prev</literal></entry> + <entry> + Précédent, par rapport à la position courante. + </entry> + </row> + <row> + <entry><literal>First</literal></entry> + <entry> + Premier. + </entry> + </row> + <row> + <entry><literal>Last</literal></entry> + <entry> + Dernier. + </entry> + </row> + <row> + <entry><literal>Absolute</literal></entry> + <entry> + Position absolue, par rapport au premier. + Nécessite le paramètre <parameter>rownumber</parameter>. + </entry> + </row> + </tbody> + </tgroup> + </informaltable> + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>rownumber</parameter></term> + <listitem> + <para> + Le numéro de la ligne, en commançant à 0. Seulement + nécessaire lorsque <parameter>how</parameter> est défini à + <literal>Absolute</literal>. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + &return.success; + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title>Exemple de récupération d'une ligne</title> + <programlisting role="php"> <![CDATA[ <?php $conn = ovrimos_connect("remote.host", "8001", "admin", "password"); if ($conn != 0) { - echo 'Connexion établie!'; + echo "Connexion ok!"; $res=ovrimos_exec($conn, "select table_id, table_name from sys.tables"); if ($res != 0) { - echo 'Requête effectuée!'; + echo "Requête ok!"; if (ovrimos_fetch_row($res, "First")) { $table_id = ovrimos_result($res, 1); $table_name = ovrimos_result($res, 2); - echo "table_id=".$table_id.", table_name=".$table_name."\n"; + echo "table_id=" . $table_id . ", table_name=" . $table_name . "\n"; if (ovrimos_fetch_row($res, "Next")) { $table_id = ovrimos_result($res, "table_id"); $table_name = ovrimos_result($res, "table_name"); - echo "table_id=".$table_id.", table_name=".$table_name."\n"; + echo "table_id=" . $table_id . ", table_name=" . $table_name . "\n"; } else { - echo "Next: erreur\n"; + echo "Suivant : erreur\n"; } } else { - echo "First: erreur\n"; + echo "Premier : erreur\n"; } ovrimos_free_result($res); } @@ -52,12 +145,22 @@ } ?> ]]> - </programlisting> - </example> - Cet exemple lit une ligne et l'affiche. - </para> - </refsect1> - </refentry> + </programlisting> + </example> + Récupérera une ligne et affichera le résultat. + </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>ovrimos_fetch_into</function></member> + </simplelist> + </para> + </refsect1> + +</refentry> <!-- Keep this comment at the end of the file Local variables: @@ -78,4 +181,4 @@ vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> +--> \ No newline at end of file http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/ovrimos/functions/ovrimos-field-len.xml?r1=1.8&r2=1.9&diff_format=u Index: phpdoc-fr/reference/ovrimos/functions/ovrimos-field-len.xml diff -u phpdoc-fr/reference/ovrimos/functions/ovrimos-field-len.xml:1.8 phpdoc-fr/reference/ovrimos/functions/ovrimos-field-len.xml:1.9 --- phpdoc-fr/reference/ovrimos/functions/ovrimos-field-len.xml:1.8 Sun Feb 20 14:53:28 2005 +++ phpdoc-fr/reference/ovrimos/functions/ovrimos-field-len.xml Sun Mar 25 10:24:53 2007 @@ -1,26 +1,72 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.8 $ --> -<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.9 $ --> +<!-- EN-Revision: 1.6 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> - <refentry id="function.ovrimos-field-len"> - <refnamediv> - <refname>ovrimos_field_len</refname> - <refpurpose>Retourne la taille d'une colonne Ovrimos</refpurpose> - </refnamediv> - <refsect1> - &reftitle.description; - <methodsynopsis> - <type>int</type><methodname>ovrimos_field_len</methodname> - <methodparam><type>int</type><parameter>result_id</parameter></methodparam> - <methodparam><type>int</type><parameter>field_number</parameter></methodparam> - </methodsynopsis> - <para> - <function>ovrimos_field_len</function> retourne la taille de la - colonne numéro <parameter>field_number</parameter>, dans le résultat - <parameter>result_id</parameter>. - </para> - </refsect1> - </refentry> + +<refentry id="function.ovrimos-field-len"> + <refnamediv> + <refname>ovrimos_field_len</refname> + <refpurpose>Retourne la taille d'une colonne Ovrimos</refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>int</type><methodname>ovrimos_field_len</methodname> + <methodparam><type>int</type><parameter>result_id</parameter></methodparam> + <methodparam><type>int</type><parameter>field_number</parameter></methodparam> + </methodsynopsis> + <para> + Retourne la taille d'une colonne Ovrimos spécifiée. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>result_id</parameter></term> + <listitem> + <para> + Un identifiant de résultat, retourné par la fonction + <function>ovrimos_execute</function> ou la fonction + <function>ovrimos_exec</function>. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>field_number</parameter></term> + <listitem> + <para> + Le numéro du champ. La numérotation commence à 1. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + Retourne la taille, sous la forme d'un &integer;, ou &false; + si une erreur survient. + </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>ovrimos_field_name</function></member> + <member><function>ovrimos_field_num</function></member> + <member><function>ovrimos_field_type</function></member> + </simplelist> + </para> + </refsect1> + +</refentry> <!-- Keep this comment at the end of the file Local variables: @@ -41,4 +87,4 @@ vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> +--> \ No newline at end of file http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/ovrimos/functions/ovrimos-field-name.xml?r1=1.8&r2=1.9&diff_format=u Index: phpdoc-fr/reference/ovrimos/functions/ovrimos-field-name.xml diff -u phpdoc-fr/reference/ovrimos/functions/ovrimos-field-name.xml:1.8 phpdoc-fr/reference/ovrimos/functions/ovrimos-field-name.xml:1.9 --- phpdoc-fr/reference/ovrimos/functions/ovrimos-field-name.xml:1.8 Sun Feb 20 14:53:28 2005 +++ phpdoc-fr/reference/ovrimos/functions/ovrimos-field-name.xml Sun Mar 25 10:24:53 2007 @@ -1,26 +1,72 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.8 $ --> -<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.9 $ --> +<!-- EN-Revision: 1.6 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> - <refentry id="function.ovrimos-field-name"> - <refnamediv> - <refname>ovrimos_field_name</refname> - <refpurpose>Retourne le nom d'une colonne Ovrimos</refpurpose> - </refnamediv> - <refsect1> - &reftitle.description; - <methodsynopsis> - <type>string</type><methodname>ovrimos_field_name</methodname> - <methodparam><type>int</type><parameter>result_id</parameter></methodparam> - <methodparam><type>int</type><parameter>field_number</parameter></methodparam> - </methodsynopsis> - <para> - <function>ovrimos_field_name</function> retourne le nom d'une colonne - à partir de son numéro de colonne <parameter>field_number</parameter>, - (la première colonne est à 1). - </para> - </refsect1> - </refentry> + +<refentry id="function.ovrimos-field-name"> + <refnamediv> + <refname>ovrimos_field_name</refname> + <refpurpose>Retourne le nom d'une colonne Ovrimos</refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>string</type><methodname>ovrimos_field_name</methodname> + <methodparam><type>int</type><parameter>result_id</parameter></methodparam> + <methodparam><type>int</type><parameter>field_number</parameter></methodparam> + </methodsynopsis> + <para> + Retourne le nom d'une colonne Ovrimos à un index spécifié. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>result_id</parameter></term> + <listitem> + <para> + Un identifiant de résultat, retourné par la fonction + <function>ovrimos_execute</function> ou la fonction + <function>ovrimos_exec</function>. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>field_number</parameter></term> + <listitem> + <para> + Le numéro du champ. La numérotation commence à 1. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + Retourne le nom du champ, sous la forme d'une &string;, ou + &false; si une erreur survient. + </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>ovrimos_field_len</function></member> + <member><function>ovrimos_field_num</function></member> + <member><function>ovrimos_field_type</function></member> + </simplelist> + </para> + </refsect1> + +</refentry> <!-- Keep this comment at the end of the file Local variables: @@ -41,4 +87,4 @@ vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> +--> \ No newline at end of file http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/ovrimos/functions/ovrimos-field-num.xml?r1=1.9&r2=1.10&diff_format=u Index: phpdoc-fr/reference/ovrimos/functions/ovrimos-field-num.xml diff -u phpdoc-fr/reference/ovrimos/functions/ovrimos-field-num.xml:1.9 phpdoc-fr/reference/ovrimos/functions/ovrimos-field-num.xml:1.10 --- phpdoc-fr/reference/ovrimos/functions/ovrimos-field-num.xml:1.9 Sun Feb 20 14:53:28 2005 +++ phpdoc-fr/reference/ovrimos/functions/ovrimos-field-num.xml Sun Mar 25 10:24:53 2007 @@ -1,26 +1,72 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.9 $ --> -<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.10 $ --> +<!-- EN-Revision: 1.6 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> - <refentry id="function.ovrimos-field-num"> - <refnamediv> - <refname>ovrimos_field_num</refname> - <refpurpose>Retourne le numéro de colonne Ovrimos</refpurpose> - </refnamediv> - <refsect1> - &reftitle.description; - <methodsynopsis> - <type>int</type><methodname>ovrimos_field_num</methodname> - <methodparam><type>int</type><parameter>result_id</parameter></methodparam> - <methodparam><type>string</type><parameter>field_name</parameter></methodparam> - </methodsynopsis> - <para> - <function>ovrimos_field_num</function> retourne le numéro de la colonne - <parameter>field_name</parameter> (la numérotation commence à 1), dans - <parameter>result_id</parameter> ou &false; en cas d'erreur. - </para> - </refsect1> - </refentry> + +<refentry id="function.ovrimos-field-num"> + <refnamediv> + <refname>ovrimos_field_num</refname> + <refpurpose>Retourne le numéro de colonne Ovrimos</refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>int</type><methodname>ovrimos_field_num</methodname> + <methodparam><type>int</type><parameter>result_id</parameter></methodparam> + <methodparam><type>string</type><parameter>field_name</parameter></methodparam> + </methodsynopsis> + <para> + Retourne le numéro de colonne Ovrimos spécifiée. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>result_id</parameter></term> + <listitem> + <para> + Un identifiant de résultat, retourné par la fonction + <function>ovrimos_execute</function> ou la fonction + <function>ovrimos_exec</function>. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>field_name</parameter></term> + <listitem> + <para> + Le nom du champ. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + Retourne l'index, en commançant à 1, ou &false; si une + erreur survient. + </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>ovrimos_field_len</function></member> + <member><function>ovrimos_field_name</function></member> + <member><function>ovrimos_field_type</function></member> + </simplelist> + </para> + </refsect1> + +</refentry> <!-- Keep this comment at the end of the file Local variables: @@ -41,4 +87,4 @@ vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> +--> \ No newline at end of file http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/ovrimos/functions/ovrimos-field-type.xml?r1=1.8&r2=1.9&diff_format=u Index: phpdoc-fr/reference/ovrimos/functions/ovrimos-field-type.xml diff -u phpdoc-fr/reference/ovrimos/functions/ovrimos-field-type.xml:1.8 phpdoc-fr/reference/ovrimos/functions/ovrimos-field-type.xml:1.9 --- phpdoc-fr/reference/ovrimos/functions/ovrimos-field-type.xml:1.8 Sun Feb 20 14:53:28 2005 +++ phpdoc-fr/reference/ovrimos/functions/ovrimos-field-type.xml Sun Mar 25 10:24:53 2007 @@ -1,28 +1,72 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.8 $ --> -<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.9 $ --> +<!-- EN-Revision: 1.6 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> - <refentry id="function.ovrimos-field-type"> - <refnamediv> - <refname>ovrimos_field_type</refname> - <refpurpose> - Retourne le type numérique d'une colonne Ovrimos - </refpurpose> - </refnamediv> - <refsect1> - &reftitle.description; - <methodsynopsis> - <type>int</type><methodname>ovrimos_field_type</methodname> - <methodparam><type>int</type><parameter>result_id</parameter></methodparam> - <methodparam><type>int</type><parameter>field_number</parameter></methodparam> - </methodsynopsis> - <para> - <function>ovrimos_field_type</function> retourne le type numérique - d'une colonne, identifiée par son numéro <parameter>field_number</parameter> - dans le résultat <parameter>result_id</parameter>. - </para> - </refsect1> - </refentry> + +<refentry id="function.ovrimos-field-type"> + <refnamediv> + <refname>ovrimos_field_type</refname> + <refpurpose>Retourne le type numérique d'une colonne Ovrimos</refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>int</type><methodname>ovrimos_field_type</methodname> + <methodparam><type>int</type><parameter>result_id</parameter></methodparam> + <methodparam><type>int</type><parameter>field_number</parameter></methodparam> + </methodsynopsis> + <para> + Retourne le type numérique d'une colonne Ovrimos. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>result_id</parameter></term> + <listitem> + <para> + Un identifiant de résultat, retourné par la fonction + <function>ovrimos_execute</function> ou la fonction + <function>ovrimos_exec</function>. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>field_number</parameter></term> + <listitem> + <para> + Un index, en commençant à 0. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + Retourne le type du champ, sous la forme d'un &integer;, ou + &false; si une erreur survient. + </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>ovrimos_field_len</function></member> + <member><function>ovrimos_field_name</function></member> + <member><function>ovrimos_field_num</function></member> + </simplelist> + </para> + </refsect1> + +</refentry> <!-- Keep this comment at the end of the file Local variables: @@ -43,4 +87,4 @@ vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> +--> \ No newline at end of file http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/ovrimos/functions/ovrimos-free-result.xml?r1=1.9&r2=1.10&diff_format=u Index: phpdoc-fr/reference/ovrimos/functions/ovrimos-free-result.xml diff -u phpdoc-fr/reference/ovrimos/functions/ovrimos-free-result.xml:1.9 phpdoc-fr/reference/ovrimos/functions/ovrimos-free-result.xml:1.10 --- phpdoc-fr/reference/ovrimos/functions/ovrimos-free-result.xml:1.9 Sun Feb 20 14:53:28 2005 +++ phpdoc-fr/reference/ovrimos/functions/ovrimos-free-result.xml Sun Mar 25 10:24:53 2007 @@ -1,27 +1,50 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.9 $ --> -<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.10 $ --> +<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> - <refentry id="function.ovrimos-free-result"> - <refnamediv> - <refname>ovrimos_free_result</refname> - <refpurpose> - Libère les ressources utilisées par un résultat Ovrimos - </refpurpose> - </refnamediv> - <refsect1> - &reftitle.description; - <methodsynopsis> - <type>bool</type><methodname>ovrimos_free_result</methodname> - <methodparam><type>int</type><parameter>result_id</parameter></methodparam> - </methodsynopsis> - <para> - <function>ovrimos_free_result</function> libère toutes les - ressources prises par le résultat <parameter>result_id</parameter>. - <function>ovrimos_free_result</function> retourne &true;. - </para> - </refsect1> - </refentry> + +<refentry id="function.ovrimos-free-result"> + <refnamediv> + <refname>ovrimos_free_result</refname> + <refpurpose>Libère les ressources utilisées par un résultat Ovrimos</refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>bool</type><methodname>ovrimos_free_result</methodname> + <methodparam><type>int</type><parameter>result_id</parameter></methodparam> + </methodsynopsis> + <para> + Libère les ressources utilisées par un résultat Ovrimos. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>result_id</parameter></term> + <listitem> + <para> + Un identifiant de résultat, retourné par la fonction + <function>ovrimos_execute</function> ou la fonction + <function>ovrimos_exec</function>. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + Retourne &true;. + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: @@ -42,4 +65,4 @@ vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> +--> \ No newline at end of file http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/ovrimos/functions/ovrimos-longreadlen.xml?r1=1.9&r2=1.10&diff_format=u Index: phpdoc-fr/reference/ovrimos/functions/ovrimos-longreadlen.xml diff -u phpdoc-fr/reference/ovrimos/functions/ovrimos-longreadlen.xml:1.9 phpdoc-fr/reference/ovrimos/functions/ovrimos-longreadlen.xml:1.10 --- phpdoc-fr/reference/ovrimos/functions/ovrimos-longreadlen.xml:1.9 Sun Feb 20 14:53:28 2005 +++ phpdoc-fr/reference/ovrimos/functions/ovrimos-longreadlen.xml Sun Mar 25 10:24:53 2007 @@ -1,30 +1,60 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.9 $ --> -<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.10 $ --> +<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> - <refentry id="function.ovrimos-longreadlen"> - <refnamediv> - <refname>ovrimos_longreadlen</refname> - <refpurpose> - Indique la taille des données à lire dans une colonne de grande taille - </refpurpose> - </refnamediv> - <refsect1> - &reftitle.description; - <methodsynopsis> - <type>bool</type><methodname>ovrimos_longreadlen</methodname> - <methodparam><type>int</type><parameter>result_id</parameter></methodparam> - <methodparam><type>int</type><parameter>length</parameter></methodparam> - </methodsynopsis> - <para> - <function>ovrimos_longreadlen</function> indique le nombre d'octets - qui seront lus dans une colonne de grande taille (<literal>long varchar</literal> - et <literal>long varbinary</literal>). Par défaut, 0. - <function>ovrimos_longreadlen</function> assigne cette valeur - au résultat courant. <function>ovrimos_longreadlen</function> retourne &true;. - </para> - </refsect1> - </refentry> + +<refentry id="function.ovrimos-longreadlen"> + <refnamediv> + <refname>ovrimos_longreadlen</refname> + <refpurpose>Indique la taille des données à lire dans une colonne de grande taille</refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>bool</type><methodname>ovrimos_longreadlen</methodname> + <methodparam><type>int</type><parameter>result_id</parameter></methodparam> + <methodparam><type>int</type><parameter>length</parameter></methodparam> + </methodsynopsis> + <para> + Indique le nombre d'octets qui seront lus dans une colonne de grande + taille (<literal>long varchar</literal> et <literal>long varbinary</literal>). + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>result_id</parameter></term> + <listitem> + <para> + Un identifiant de résultat, retourné par la fonction + <function>ovrimos_execute</function> ou la fonction + <function>ovrimos_exec</function>. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>length</parameter></term> + <listitem> + <para> + Le nombre d'octets à récupérer. Par défaut, &zero;. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + Retourne &true;. + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: @@ -45,4 +75,4 @@ vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> +--> \ No newline at end of file http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/ovrimos/functions/ovrimos-num-fields.xml?r1=1.8&r2=1.9&diff_format=u Index: phpdoc-fr/reference/ovrimos/functions/ovrimos-num-fields.xml diff -u phpdoc-fr/reference/ovrimos/functions/ovrimos-num-fields.xml:1.8 phpdoc-fr/reference/ovrimos/functions/ovrimos-num-fields.xml:1.9 --- phpdoc-fr/reference/ovrimos/functions/ovrimos-num-fields.xml:1.8 Sun Feb 20 14:53:28 2005 +++ phpdoc-fr/reference/ovrimos/functions/ovrimos-num-fields.xml Sun Mar 25 10:24:53 2007 @@ -1,24 +1,61 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.8 $ --> -<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.9 $ --> +<!-- EN-Revision: 1.6 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> - <refentry id="function.ovrimos-num-fields"> - <refnamediv> - <refname>ovrimos_num_fields</refname> - <refpurpose>Retourne le nombre de colonnes Ovrimos</refpurpose> - </refnamediv> - <refsect1> - &reftitle.description; - <methodsynopsis> - <type>int</type><methodname>ovrimos_num_fields</methodname> - <methodparam><type>int</type><parameter>result_id</parameter></methodparam> - </methodsynopsis> - <para> - <function>ovrimos_num_fields</function> indique le nombre de colonnes - du résultat <parameter>result_id</parameter>. - </para> - </refsect1> - </refentry> + +<refentry id="function.ovrimos-num-fields"> + <refnamediv> + <refname>ovrimos_num_fields</refname> + <refpurpose>Retourne le nombre de colonnes Ovrimos</refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>int</type><methodname>ovrimos_num_fields</methodname> + <methodparam><type>int</type><parameter>result_id</parameter></methodparam> + </methodsynopsis> + <para> + Retourne le nombre de colonnes dans l'identifiant de résultat spécifié. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>result_id</parameter></term> + <listitem> + <para> + Un identifiant de résultat, retourné par la fonction + <function>ovrimos_execute</function> ou la fonction + <function>ovrimos_exec</function>. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + Retourne le nombre de colonnes, sous la forme d'un &integer;, ou + &false; si une erreur survient. + </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>ovrimos_num_rows</function></member> + </simplelist> + </para> + </refsect1> + +</refentry> <!-- Keep this comment at the end of the file Local variables: @@ -39,4 +76,4 @@ vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> +--> \ No newline at end of file http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/ovrimos/functions/ovrimos-num-rows.xml?r1=1.8&r2=1.9&diff_format=u Index: phpdoc-fr/reference/ovrimos/functions/ovrimos-num-rows.xml diff -u phpdoc-fr/reference/ovrimos/functions/ovrimos-num-rows.xml:1.8 phpdoc-fr/reference/ovrimos/functions/ovrimos-num-rows.xml:1.9 --- phpdoc-fr/reference/ovrimos/functions/ovrimos-num-rows.xml:1.8 Sun Feb 20 14:53:28 2005 +++ phpdoc-fr/reference/ovrimos/functions/ovrimos-num-rows.xml Sun Mar 25 10:24:53 2007 @@ -1,26 +1,61 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.8 $ --> -<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.9 $ --> +<!-- EN-Revision: 1.6 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> - <refentry id="function.ovrimos-num-rows"> - <refnamediv> - <refname>ovrimos_num_rows</refname> - <refpurpose> - Retourne le nombre de lignes affectées par une modification Ovrimos - </refpurpose> - </refnamediv> - <refsect1> - &reftitle.description; - <methodsynopsis> - <type>int</type><methodname>ovrimos_num_rows</methodname> - <methodparam><type>int</type><parameter>result_id</parameter></methodparam> - </methodsynopsis> - <para> - <function>ovrimos_num_rows</function> retourne le nombre de lignes - affectées par une requête SQL d'UPDATE. - </para> - </refsect1> - </refentry> + +<refentry id="function.ovrimos-num-rows"> + <refnamediv> + <refname>ovrimos_num_rows</refname> + <refpurpose>Retourne le nombre de lignes affectées par une modification Ovrimos</refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>int</type><methodname>ovrimos_num_rows</methodname> + <methodparam><type>int</type><parameter>result_id</parameter></methodparam> + </methodsynopsis> + <para> + Retourne le nombre de lignes affectées par une modification Ovrimos. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>result_id</parameter></term> + <listitem> + <para> + Un identifiant de résultat, retourné par la fonction + <function>ovrimos_execute</function> ou la fonction + <function>ovrimos_exec</function>. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + Retourne le nombre de lignes, sous la forme d'un &integer;, ou + &false; si une erreur survient. + </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>ovrimos_num_fields</function></member> + </simplelist> + </para> + </refsect1> + +</refentry> <!-- Keep this comment at the end of the file Local variables: @@ -41,4 +76,4 @@ vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> +--> \ No newline at end of file http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/ovrimos/functions/ovrimos-prepare.xml?r1=1.9&r2=1.10&diff_format=u Index: phpdoc-fr/reference/ovrimos/functions/ovrimos-prepare.xml diff -u phpdoc-fr/reference/ovrimos/functions/ovrimos-prepare.xml:1.9 phpdoc-fr/reference/ovrimos/functions/ovrimos-prepare.xml:1.10 --- phpdoc-fr/reference/ovrimos/functions/ovrimos-prepare.xml:1.9 Sun Feb 20 14:53:28 2005 +++ phpdoc-fr/reference/ovrimos/functions/ovrimos-prepare.xml Sun Mar 25 10:24:53 2007 @@ -1,61 +1,96 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.9 $ --> -<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.10 $ --> +<!-- EN-Revision: 1.6 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> - <refentry id="function.ovrimos-prepare"> - <refnamediv> - <refname>ovrimos_prepare</refname> - <refpurpose>Prépare une requête SQL Ovrimos</refpurpose> - </refnamediv> - <refsect1> - &reftitle.description; - <methodsynopsis> - <type>int</type><methodname>ovrimos_prepare</methodname> - <methodparam><type>int</type><parameter>connection_id</parameter></methodparam> - <methodparam><type>string</type><parameter>query</parameter></methodparam> - </methodsynopsis> - <para> - <function>ovrimos_prepare</function> prépare une requête SQL - et retourne un identifiant de résultat - (ou &false; en cas d'échec). - </para> - <para> - <example> - <title> - Connexion à un serveur Ovrimos SQL Server et préparation - d'une requête - </title> - <programlisting role="php"> + +<refentry id="function.ovrimos-prepare"> + <refnamediv> + <refname>ovrimos_prepare</refname> + <refpurpose>Prépare une requête SQL Ovrimos</refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>int</type><methodname>ovrimos_prepare</methodname> + <methodparam><type>int</type><parameter>connection_id</parameter></methodparam> + <methodparam><type>string</type><parameter>query</parameter></methodparam> + </methodsynopsis> + <para> + Prépare une requête SQL Ovrimos. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>connection_id</parameter></term> + <listitem> + <para> + Un identifiant de connexion Ovrimos, retourné par + la fonction <function>ovrimos_connect</function>. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>query</parameter></term> + <listitem> + <para> + La requête SQL. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + Retourne un identifiant de résultat en cas de succès, ou + &false; si une erreur survient. + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title>Exemple avec <function>ovrimos_prepare</function></title> + <programlisting role="php"> <![CDATA[ <?php $conn=ovrimos_connect("db_host", "8001", "admin", "password"); if ($conn!=0) { - echo 'Connexion établie!'; + echo "Connexion ok!"; + + // Prepare the statement $res=ovrimos_prepare($conn, "select table_id, table_name from sys.tables where table_id=1"); if ($res != 0) { - echo 'Préparation faite!'; + echo "Préparation ok!"; + // Execute the prepared statement if (ovrimos_execute($res)) { - echo "Exécution réussie!\n"; + echo "Exécution ok!\n"; ovrimos_result_all($res); } else { - echo 'Exécution manquée!'; + echo "Erreur lors de l'exécution !"; } ovrimos_free_result($res); } else { - echo "Préparation manquée!\n"; + echo "Erreur lors de la préparation !\n"; } ovrimos_close($conn); } ?> ]]> - </programlisting> - </example> - Cet exemple montre comment se connecter à un serveur Ovrimos SQL Server, - comment préparer une requête SQL et l'exécuter. - </para> - </refsect1> - </refentry> + </programlisting> + </example> + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: @@ -76,4 +111,4 @@ vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> +--> \ No newline at end of file http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/ovrimos/functions/ovrimos-result-all.xml?r1=1.11&r2=1.12&diff_format=u Index: phpdoc-fr/reference/ovrimos/functions/ovrimos-result-all.xml diff -u phpdoc-fr/reference/ovrimos/functions/ovrimos-result-all.xml:1.11 phpdoc-fr/reference/ovrimos/functions/ovrimos-result-all.xml:1.12 --- phpdoc-fr/reference/ovrimos/functions/ovrimos-result-all.xml:1.11 Sun Feb 20 14:53:28 2005 +++ phpdoc-fr/reference/ovrimos/functions/ovrimos-result-all.xml Sun Mar 25 10:24:53 2007 @@ -1,82 +1,111 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.11 $ --> -<!-- EN-Revision: 1.6 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.12 $ --> +<!-- EN-Revision: 1.8 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> - <refentry id="function.ovrimos-result-all"> - <refnamediv> - <refname>ovrimos_result_all</refname> - <refpurpose> - Affiche un résultat Ovrimos sous forme de table HTML - </refpurpose> - </refnamediv> - <refsect1> - &reftitle.description; - <methodsynopsis> - <type>int</type><methodname>ovrimos_result_all</methodname> - <methodparam><type>int</type><parameter>result_id</parameter></methodparam> - <methodparam choice="opt"><type>string</type><parameter>format</parameter></methodparam> - </methodsynopsis> - <para> - <function>ovrimos_result_all</function> affiche le résultat de la requête - représentée par <parameter>result_id</parameter>. - <function>ovrimos_result_all</function> retourne le nombre de lignes - générées. - </para> - <para> - <example> - <title> - Prépare une requête, l'exécute sur Ovrimos - et affiche le résultat - </title> - <programlisting role="php"> + +<refentry id="function.ovrimos-result-all"> + <refnamediv> + <refname>ovrimos_result_all</refname> + <refpurpose>Affiche un résultat Ovrimos sous forme de tableau HTML</refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>int</type><methodname>ovrimos_result_all</methodname> + <methodparam><type>int</type><parameter>result_id</parameter></methodparam> + <methodparam choice="opt"><type>string</type><parameter>format</parameter></methodparam> + </methodsynopsis> + <para> + Affiche un résultat Ovrimos sous forme de tableau HTML. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>result_id</parameter></term> + <listitem> + <para> + Un identifiant de résultat, retourné par la fonction + <function>ovrimos_execute</function> ou la fonction + <function>ovrimos_exec</function>. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>format</parameter></term> + <listitem> + <para> + Attributs HTML optionnels pour les éléments du tableau généré. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + Retourne le nombre de lignes générées dans le tableau. + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title>Prépare une requête, l'exécute sur Ovrimos et affiche le résultat.</title> + <programlisting role="php"> <![CDATA[ <?php $conn = ovrimos_connect("db_host", "8001", "admin", "password"); if ($conn != 0) { - echo 'Connexion établie!'; + echo "Connexion ok!"; $res = ovrimos_prepare($conn, "select table_id, table_name from sys.tables where table_id = 7"); if ($res != 0) { - echo 'Préparation faite!'; + echo "Préparation ok!"; if (ovrimos_execute($res, array(3))) { - echo "Exécution réussie!\n"; + echo "Exécution ok!\n"; ovrimos_result_all($res); } else { - echo 'Exécution manquée!'; + echo "Erreur lors de l'exécution !"; } ovrimos_free_result($res); } else { - echo "Préparation manquée!\n"; + echo "Erreur lors de la préparation !\n"; } ovrimos_close($conn); } ?> ]]> - </programlisting> - </example> - Cet exemple exécute une requête SQL et affiche le résultat sous forme - d'une table HTML. - </para> - <para> - <example> - <title><function>ovrimos_result_all</function> avec meta-information</title> - <programlisting role="php"> + </programlisting> + </example> + </para> + <para> + <example> + <title><function>ovrimos_result_all</function> avec meta-information</title> + <programlisting role="php"> <![CDATA[ <?php $conn = ovrimos_connect("db_host", "8001", "admin", "password"); if ($conn != 0) { - echo 'Connexion établie!'; + echo "Connexion ok!"; $res = ovrimos_exec($conn, "select table_id, table_name from sys.tables where table_id = 1"); if ($res != 0) { - echo "Requête effectuée! cursor=" . ovrimos_cursor($res) . "\n"; + echo "Requête ok! curseur=" . ovrimos_cursor($res) . "\n"; $colnb = ovrimos_num_fields($res); - echo "Output columns=".$colnb."\n"; - for ($i=1; $i<=$colnb; $i++) { + echo "Colonnes affichées=" . $colnb . "\n"; + for ($i=1; $i <= $colnb; $i++) { $name = ovrimos_field_name($res, $i); $type = ovrimos_field_type($res, $i); $len = ovrimos_field_len($res, $i); - echo "Colonne ".$i." nom=".$name." type=".$type." longueur=".$len."\n"; + echo "Colonne " . $i . " nom=" . $name . " type=" . $type . " taille=" . $len . "\n"; } ovrimos_result_all($res); ovrimos_free_result($res); @@ -85,33 +114,11 @@ } ?> ]]> - </programlisting> - </example> - </para> - <para> - <example> - <title>Exemple avec <function>ovrimos_result_all</function></title> - <programlisting role="php"> -<![CDATA[ -<?php -$conn = ovrimos_connect("db_host", "8001", "admin", "password"); -if ($conn != 0) { - echo 'Connexion établie!'; - $res = ovrimos_exec($conn, "update test set i=5"); - if ($res != 0) { - echo 'Requête effectuée!'; - echo ovrimos_num_rows($res)." lignes affectées\n"; - ovrimos_free_result($res); - } - ovrimos_close($conn); -} -?> -]]> - </programlisting> - </example> - </para> - </refsect1> - </refentry> + </programlisting> + </example> + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: @@ -132,4 +139,4 @@ vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> +--> \ No newline at end of file http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/ovrimos/functions/ovrimos-result.xml?r1=1.9&r2=1.10&diff_format=u Index: phpdoc-fr/reference/ovrimos/functions/ovrimos-result.xml diff -u phpdoc-fr/reference/ovrimos/functions/ovrimos-result.xml:1.9 phpdoc-fr/reference/ovrimos/functions/ovrimos-result.xml:1.10 --- phpdoc-fr/reference/ovrimos/functions/ovrimos-result.xml:1.9 Sun Feb 20 14:53:28 2005 +++ phpdoc-fr/reference/ovrimos/functions/ovrimos-result.xml Sun Mar 25 10:24:53 2007 @@ -1,29 +1,60 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.9 $ --> -<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.10 $ --> +<!-- EN-Revision: 1.5 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> - <refentry id="function.ovrimos-result"> - <refnamediv> - <refname>ovrimos_result</refname> - <refpurpose>Lit le contenu d'une colonne Ovrimos</refpurpose> - </refnamediv> - <refsect1> - &reftitle.description; - <methodsynopsis> - <type>string</type><methodname>ovrimos_result</methodname> - <methodparam><type>int</type><parameter>result_id</parameter></methodparam> - <methodparam><type>mixed</type><parameter>field</parameter></methodparam> - </methodsynopsis> - <para> - <function>ovrimos_result</function> lit le contenu de la colonne - <parameter>field</parameter> dans le résultat - <parameter>result_id</parameter>. <parameter>field</parameter> peut - être le nom de la colonne (une chaîne) ou bien le numéro - de la colonne (la première colonne est alors 1). - <function>ovrimos_result</function> retourne &false; en cas d'échec. - </para> - </refsect1> - </refentry> + +<refentry id="function.ovrimos-result"> + <refnamediv> + <refname>ovrimos_result</refname> + <refpurpose>Lit le contenu d'une colonne Ovrimos</refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>string</type><methodname>ovrimos_result</methodname> + <methodparam><type>int</type><parameter>result_id</parameter></methodparam> + <methodparam><type>mixed</type><parameter>field</parameter></methodparam> + </methodsynopsis> + <para> + Lit le contenu de la colonne <parameter>field</parameter>. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>result_id</parameter></term> + <listitem> + <para> + Un identifiant de résultat, retourné par la fonction + <function>ovrimos_execute</function> ou la fonction + <function>ovrimos_exec</function>. + </para> + </listitem> + </varlistentry> + <varlistentry> + <term><parameter>field</parameter></term> + <listitem> + <para> + Soit une &string; représentant le nom du champ, soit son index (en commençant à 1). + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + Retourne le nom de la colonne, sous la forme d'une &string;, + ou &false; si une erreur survient. + </para> + </refsect1> +</refentry> <!-- Keep this comment at the end of the file Local variables: @@ -44,4 +75,4 @@ vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> +--> \ No newline at end of file http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/ovrimos/functions/ovrimos-rollback.xml?r1=1.8&r2=1.9&diff_format=u Index: phpdoc-fr/reference/ovrimos/functions/ovrimos-rollback.xml diff -u phpdoc-fr/reference/ovrimos/functions/ovrimos-rollback.xml:1.8 phpdoc-fr/reference/ovrimos/functions/ovrimos-rollback.xml:1.9 --- phpdoc-fr/reference/ovrimos/functions/ovrimos-rollback.xml:1.8 Sun Feb 20 14:53:28 2005 +++ phpdoc-fr/reference/ovrimos/functions/ovrimos-rollback.xml Sun Mar 25 10:24:53 2007 @@ -1,25 +1,59 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.8 $ --> -<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.9 $ --> +<!-- EN-Revision: 1.7 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> - <refentry id="function.ovrimos-rollback"> - <refnamediv> - <refname>ovrimos_rollback</refname> - <refpurpose>Annule une transaction</refpurpose> - </refnamediv> - <refsect1> - &reftitle.description; - <methodsynopsis> - <type>bool</type><methodname>ovrimos_rollback</methodname> - <methodparam><type>int</type><parameter>connection_id</parameter></methodparam> - </methodsynopsis> - <para> - <function>ovrimos_rollback</function> annule la transaction préparée sur - la connexion <parameter>connection_id</parameter>. - &return.success; - </para> - </refsect1> - </refentry> + +<refentry id="function.ovrimos-rollback"> + <refnamediv> + <refname>ovrimos_rollback</refname> + <refpurpose>Annule une transaction</refpurpose> + </refnamediv> + + <refsect1 role="description"> + &reftitle.description; + <methodsynopsis> + <type>bool</type><methodname>ovrimos_rollback</methodname> + <methodparam><type>int</type><parameter>connection_id</parameter></methodparam> + </methodsynopsis> + <para> + Annule la transaction courante. + </para> + </refsect1> + + <refsect1 role="parameters"> + &reftitle.parameters; + <para> + <variablelist> + <varlistentry> + <term><parameter>connection_id</parameter></term> + <listitem> + <para> + Un identifiant de connexion Ovrimos, retourné par la fonction + <function>ovrimos_connect</function>. + </para> + </listitem> + </varlistentry> + </variablelist> + </para> + </refsect1> + + <refsect1 role="returnvalues"> + &reftitle.returnvalues; + <para> + &return.success; + </para> + </refsect1> + + <refsect1 role="seealso"> + &reftitle.seealso; + <para> + <simplelist> + <member><function>ovrimos_commit</function></member> + </simplelist> + </para> + </refsect1> + +</refentry> <!-- Keep this comment at the end of the file Local variables: @@ -40,4 +74,4 @@ vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> +--> \ No newline at end of file
« previous php.doc.fr (#5277) next »