cvs: peardoc /fr/package/database/db/db-common affectedrows.xml autoexecute.xml autoprepare.xml createsequence.xml disconnect.xml dropsequence.xml
execute.xml executemultiple.xml freeprepared.xml getall.xml getassoc.xml getcol.xml getlistof.xml getone.xml getrow.xml limitquery.xml nextid.xml
prepare.xml setfetchmode.xml

From: Date: Fri, 16 Dec 2005 17:06:46 +0000
Subject: cvs: peardoc /fr/package/database/db/db-common affectedrows.xml autoexecute.xml autoprepare.xml createsequence.xml disconnect.xml dropsequence.xml
execute.xml executemultiple.xml freeprepared.xml getall.xml getassoc.xml getcol.xml getlistof.xml getone.xml getrow.xml limitquery.xml nextid.xml
prepare.xml setfetchmode.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-7317@lists.php.net to get a copy of this message
yannick Fri Dec 16 17:06:46 2005 EDT Modified files: /peardoc/fr/package/database/db/db-common affectedrows.xml autoexecute.xml autoprepare.xml createsequence.xml disconnect.xml dropsequence.xml executemultiple.xml execute.xml freeprepared.xml getall.xml getassoc.xml getcol.xml getlistof.xml getone.xml getrow.xml limitquery.xml nextid.xml prepare.xml setfetchmode.xml Log: sync with EN

http://cvs.php.net/viewcvs.cgi/peardoc/fr/package/database/db/db-common/affectedrows.xml?r1=1.5&r2=1.6&diff_format=u Index: peardoc/fr/package/database/db/db-common/affectedrows.xml diff -u peardoc/fr/package/database/db/db-common/affectedrows.xml:1.5 peardoc/fr/package/database/db/db-common/affectedrows.xml:1.6 --- peardoc/fr/package/database/db/db-common/affectedrows.xml:1.5 Sun Nov 7 18:02:37 2004 +++ peardoc/fr/package/database/db/db-common/affectedrows.xml Fri Dec 16 17:06:46 2005 @@ -1,13 +1,13 @@ <?xml version="1.0" encoding="iso-8859-1" ?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.24 Maintainer: didou Status: ready --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.25 Maintainer: didou Status: ready --> <refentry id="package.database.db.db-common.affectedrows"> <refnamediv> <refname>DB_common::affectedRows()</refname> <refpurpose>Trouve le nombre de lignes affect&eacute;es</refpurpose> </refnamediv> - + <refsynopsisdiv> <funcsynopsis> <funcprototype> @@ -16,7 +16,7 @@ </funcprototype> </funcsynopsis> </refsynopsisdiv> - + <refsect1 id="package.database.db.db-common.affectedrows.desc"> &title.desc; <para> @@ -34,7 +34,7 @@ &class.db-error; en cas d'echec </para> </refsect1> - + <refsect1 id="package.database.db.db-common.affectedrows.throws"> &title.throws; <para> @@ -84,7 +84,7 @@ // En supposant que vous avez un objet DB valide nomm&eacute; $db... $res =& $db->query('DELETE * FROM clients'); -if (DB::isError($res)) { +if (PEAR::isError($res)) { die($res->getMessage()); } @@ -94,7 +94,7 @@ </programlisting> </example> </refsect1> - + <refsect1 id="package.database.db.db-common.affectedrows.see"> &title.see; <para> @@ -113,6 +113,7 @@ </para> </refsect1> </refentry> + <!-- Keep this comment at the end of the file Local variables: mode: sgml @@ -131,4 +132,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/viewcvs.cgi/peardoc/fr/package/database/db/db-common/autoexecute.xml?r1=1.5&r2=1.6&diff_format=u Index: peardoc/fr/package/database/db/db-common/autoexecute.xml diff -u peardoc/fr/package/database/db/db-common/autoexecute.xml:1.5 peardoc/fr/package/database/db/db-common/autoexecute.xml:1.6 --- peardoc/fr/package/database/db/db-common/autoexecute.xml:1.5 Sun Nov 7 18:34:42 2004 +++ peardoc/fr/package/database/db/db-common/autoexecute.xml Fri Dec 16 17:06:46 2005 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1" ?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.33 Maintainer: didou Status: ready --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.35 Maintainer: didou Status: ready --> <refentry id="package.database.db.db-common.autoexecute"> <refnamediv> @@ -199,6 +199,15 @@ <refsect1 id="package.database.db.db-common.autoexecute.note"> &title.note; &note.notstatic; + <warning> + <para> + La valeur pass&eacute;e au param&egrave;tre <parameter>$data</parameter> + doit &ecirc;tre lit&eacute;ral. + Ne soumettez pas des fonctions SQL (par exemple, <literal>CURDATE()</literal>). + Les fonctions SQL qui doivent &ecirc;tre ex&eacute;cut&eacute;es au moment de l'ex&eacute;cution doivent + &ecirc;tre mises dans une requ&ecirc;te pr&eacute;par&eacute;e. + </para> + </warning> </refsect1> <refsect1 id="package.database.db.db-common.autoexecute.example"> @@ -220,7 +229,7 @@ $res = $db->autoExecute($table_name, $fields_values, DB_AUTOQUERY_INSERT); -if (DB::isError($res)) { +if (PEAR::isError($res)) { die($res->getMessage()); } ?> @@ -243,7 +252,7 @@ $res = $db->autoExecute($table_name, $fields_values, DB_AUTOQUERY_UPDATE, "country = 'Japan'"); -if (DB::isError($res)) { +if (PEAR::isError($res)) { die($res->getMessage()); } ?> @@ -289,4 +298,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/viewcvs.cgi/peardoc/fr/package/database/db/db-common/autoprepare.xml?r1=1.4&r2=1.5&diff_format=u Index: peardoc/fr/package/database/db/db-common/autoprepare.xml diff -u peardoc/fr/package/database/db/db-common/autoprepare.xml:1.4 peardoc/fr/package/database/db/db-common/autoprepare.xml:1.5 --- peardoc/fr/package/database/db/db-common/autoprepare.xml:1.4 Sun Nov 7 18:34:42 2004 +++ peardoc/fr/package/database/db/db-common/autoprepare.xml Fri Dec 16 17:06:46 2005 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1" ?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.33 Maintainer: didou Status: ready --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.34 Maintainer: didou Status: ready --> <refentry id="package.database.db.db-common.autoprepare"> <refnamediv> @@ -213,13 +213,13 @@ $sth = $db->autoPrepare($table_name, $table_fields, DB_AUTOQUERY_INSERT); -if (DB::isError($sth)) { +if (PEAR::isError($sth)) { die($sth->getMessage()); } $res =& $db->execute($sth, $table_values); -if (DB::isError($res)) { +if (PEAR::isError($res)) { die($res->getMessage()); } ?> @@ -240,13 +240,13 @@ $sth = $db->autoPrepare($table_name, $table_fields, DB_AUTOQUERY_UPDATE, "country = 'Japan'"); -if (DB::isError($sth)) { +if (PEAR::isError($sth)) { die($sth->getMessage()); } $res =& $db->execute($sth, $table_values); -if (DB::isError($res)) { +if (PEAR::isError($res)) { die($res->getMessage()); } ?> @@ -274,6 +274,7 @@ </para> </refsect1> </refentry> + <!-- Keep this comment at the end of the file Local variables: mode: sgml @@ -292,4 +293,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/viewcvs.cgi/peardoc/fr/package/database/db/db-common/createsequence.xml?r1=1.4&r2=1.5&diff_format=u Index: peardoc/fr/package/database/db/db-common/createsequence.xml diff -u peardoc/fr/package/database/db/db-common/createsequence.xml:1.4 peardoc/fr/package/database/db/db-common/createsequence.xml:1.5 --- peardoc/fr/package/database/db/db-common/createsequence.xml:1.4 Sun Nov 7 19:42:12 2004 +++ peardoc/fr/package/database/db/db-common/createsequence.xml Fri Dec 16 17:06:46 2005 @@ -1,13 +1,13 @@ <?xml version="1.0" encoding="iso-8859-1" ?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.19 Maintainer: didou Status: ready --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.21 Maintainer: didou Status: ready --> <refentry id="package.database.db.db-common.createsequence"> <refnamediv> <refname>DB_common::createSequence()</refname> <refpurpose>Cr&eacute;&eacute; une nouvelle s&eacute;quence</refpurpose> </refnamediv> - + <refsynopsisdiv> <funcsynopsis> <funcprototype> @@ -18,7 +18,7 @@ </funcprototype> </funcsynopsis> </refsynopsisdiv> - + <refsect1 id="package.database.db.db-common.createsequence.desc"> &title.desc; <para> @@ -26,7 +26,7 @@ linkend="package.database.db.intro-sequences"><quote>Introduction - S&eacute;quences</quote></link> </para> </refsect1> - + <refsect1 id="package.database.db.db-common.createsequence.parameter"> &title.param; <para> @@ -40,12 +40,18 @@ <para> nom de la nouvelle s&eacute;quence &agrave; cr&eacute;er </para> + <para> + Pour r&eacute;soudre les probl&egrave;mes avec les divers syst&egrave;mes de bases + de donn&eacute;es, les noms des s&eacute;quences doivent commencer par une lettre et + ne doivent contenir que des lettres, des nombres et des caract&egrave;res de soulignement + (underscore). + </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> - + <refsect1 id="package.database.db.db-common.createsequence.return"> &title.returns; <para> @@ -53,7 +59,7 @@ ou un objet &class.db-error; en cas d'echec. </para> </refsect1> - + <refsect1 id="package.database.db.db-common.createsequence.throws"> &title.throws; <para> @@ -85,7 +91,7 @@ </table> </para> </refsect1> - + <refsect1 id="package.database.db.db-common.createsequence.note"> &title.note; &note.notstatic; @@ -112,7 +118,7 @@ // En supposant que vous avez un objet DB valide nomm&eacute; $db... $tmp = $db->createSequence('mySequence'); -if (DB::isError($tmp)) { +if (PEAR::isError($tmp)) { die($tmp->getMessage()); } ?> @@ -153,4 +159,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/viewcvs.cgi/peardoc/fr/package/database/db/db-common/disconnect.xml?r1=1.3&r2=1.4&diff_format=u Index: peardoc/fr/package/database/db/db-common/disconnect.xml diff -u peardoc/fr/package/database/db/db-common/disconnect.xml:1.3 peardoc/fr/package/database/db/db-common/disconnect.xml:1.4 --- peardoc/fr/package/database/db/db-common/disconnect.xml:1.3 Tue Jul 6 21:11:26 2004 +++ peardoc/fr/package/database/db/db-common/disconnect.xml Fri Dec 16 17:06:46 2005 @@ -1,13 +1,13 @@ <?xml version="1.0" encoding="iso-8859-1" ?> -<!-- $Revision: 1.3 $ --> -<!-- EN-Revision: 1.19 Maintainer: didou Status: ready --> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.20 Maintainer: didou Status: ready --> <refentry id="package.database.db.db-common.disconnect"> <refnamediv> <refname>DB_common::disconnect()</refname> <refpurpose>Termine la connexion &agrave; la base de donn&eacute;es</refpurpose> </refnamediv> - + <refsynopsisdiv> <funcsynopsis> <funcprototype> @@ -16,26 +16,26 @@ </funcprototype> </funcsynopsis> </refsynopsisdiv> - + <refsect1 id="package.database.db.db-common.disconnect.desc"> &title.desc; <para> Termine la connexion &agrave; la base de donn&eacute;es. </para> </refsect1> - + <refsect1 id="package.database.db.db-common.disconnect.return"> &title.returns; <para> &type.bool; - &return.success; </para> </refsect1> - + <refsect1 id="package.database.db.db-common.disconnect.note"> &title.note; &note.notstatic; </refsect1> - + <refsect1 id="package.database.db.db-common.disconnect.example"> &title.example; <example> @@ -46,7 +46,7 @@ require_once 'DB.php'; $db =& DB::connect('pgsql://someuser:apasswd@localhost/thedb'); -if (DB::isError($db)) { +if (PEAR::isError($db)) { die($db->getMessage()); } @@ -56,7 +56,7 @@ </programlisting> </example> </refsect1> - + <refsect1 id="package.database.db.db-common.disconnect.see"> &title.see; <para> @@ -67,7 +67,7 @@ </para> </refsect1> </refentry> - + <!-- Keep this comment at the end of the file Local variables: mode: sgml @@ -86,4 +86,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/viewcvs.cgi/peardoc/fr/package/database/db/db-common/dropsequence.xml?r1=1.3&r2=1.4&diff_format=u Index: peardoc/fr/package/database/db/db-common/dropsequence.xml diff -u peardoc/fr/package/database/db/db-common/dropsequence.xml:1.3 peardoc/fr/package/database/db/db-common/dropsequence.xml:1.4 --- peardoc/fr/package/database/db/db-common/dropsequence.xml:1.3 Sun Nov 7 19:42:12 2004 +++ peardoc/fr/package/database/db/db-common/dropsequence.xml Fri Dec 16 17:06:46 2005 @@ -1,13 +1,13 @@ <?xml version="1.0" encoding="iso-8859-1" ?> -<!-- $Revision: 1.3 $ --> -<!-- EN-Revision: 1.18 Maintainer: didou Status: ready --> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.19 Maintainer: didou Status: ready --> <refentry id="package.database.db.db-common.dropsequence"> <refnamediv> <refname>DB_common::dropSequence()</refname> <refpurpose>Supprime une s&eacute;quence</refpurpose> </refnamediv> - + <refsynopsisdiv> <funcsynopsis> <funcprototype> @@ -18,7 +18,7 @@ </funcprototype> </funcsynopsis> </refsynopsisdiv> - + <refsect1 id="package.database.db.db-common.dropsequence.desc"> &title.desc; <para> @@ -27,7 +27,7 @@ S&eacute;quences</quote></link> </para> </refsect1> - + <refsect1 id="package.database.db.db-common.dropsequence.parameter"> &title.param; <para> @@ -46,7 +46,7 @@ </variablelist> </para> </refsect1> - + <refsect1 id="package.database.db.db-common.dropsequence.return"> &title.returns; <para> @@ -54,7 +54,7 @@ ou un objet &class.db-error; en cas d'erreur </para> </refsect1> - + <refsect1 id="package.database.db.db-common.dropsequence.throws"> &title.throws; <para> @@ -86,7 +86,7 @@ </table> </para> </refsect1> - + <refsect1 id="package.database.db.db-common.dropsequence.note"> &title.note; &note.notstatic; @@ -113,7 +113,7 @@ // En supposant que vous avez un objet DB valide nomm&eacute; $db... $tmp = $db->dropSequence('mySequence'); -if (DB::isError($tmp)) { +if (PEAR::isError($tmp)) { die($tmp->getMessage()); } ?> @@ -135,7 +135,7 @@ </para> </refsect1> </refentry> - + <!-- Keep this comment at the end of the file Local variables: mode: sgml @@ -154,4 +154,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/viewcvs.cgi/peardoc/fr/package/database/db/db-common/executemultiple.xml?r1=1.3&r2=1.4&diff_format=u Index: peardoc/fr/package/database/db/db-common/executemultiple.xml diff -u peardoc/fr/package/database/db/db-common/executemultiple.xml:1.3 peardoc/fr/package/database/db/db-common/executemultiple.xml:1.4 --- peardoc/fr/package/database/db/db-common/executemultiple.xml:1.3 Tue Jul 6 21:11:26 2004 +++ peardoc/fr/package/database/db/db-common/executemultiple.xml Fri Dec 16 17:06:46 2005 @@ -1,17 +1,17 @@ <?xml version="1.0" encoding="iso-8859-1" ?> -<!-- $Revision: 1.3 $ --> -<!-- EN-Revision: 1.28 Maintainer: didou Status: ready --> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.31 Maintainer: didou Status: ready --> <refentry id="package.database.db.db-common.executemultiple"> <refnamediv> <refname>DB_common::executeMultiple()</refname> <refpurpose>Ex&eacute;cute une requ&ecirc;te pr&eacute;par&eacute;e SQL pour chaque &eacute;l&eacute;ment d'un tableau</refpurpose> </refnamediv> - + <refsynopsisdiv> <funcsynopsis> <funcprototype> - <funcdef>mixed <function>executeMultiple</function></funcdef> + <funcdef>integer <function>executeMultiple</function></funcdef> <paramdef> resource <parameter>$stmt</parameter> </paramdef> @@ -21,7 +21,7 @@ </funcprototype> </funcsynopsis> </refsynopsisdiv> - + <refsect1 id="package.database.db.db-common.executemultiple.desc"> &title.desc; <para> @@ -33,7 +33,7 @@ <function>prepare</function></link>. </para> </refsect1> - + <refsect1 id="package.database.db.db-common.executemultiple.parameter"> &title.param; <para> @@ -66,20 +66,15 @@ </variablelist> </para> </refsect1> - + <refsect1 id="package.database.db.db-common.executemultiple.return"> &title.returns; <para> - &type.mixed; - un nouvel objet &class.db-result; - pour les requ&ecirc;tes qui retournent des r&eacute;sultats (comme - les requ&ecirc;tes <command>SELECT</command>), - &constant.db-ok; - pour les requ&ecirc;tes qui manipulent des donn&eacute;es (comme - les requ&ecirc;tes <command>INSERT</command>) + &type.mixed; - &constant.db-ok; en cas de succ&egrave;s ou un objet &class.db-error; en cas d'erreur. </para> </refsect1> - + <refsect1 id="package.database.db.db-common.executemultiple.throws"> &title.throws; <para> @@ -164,7 +159,7 @@ </table> </para> </refsect1> - + <refsect1 id="package.database.db.db-common.executemultiple.note"> &title.note; &note.notstatic; @@ -174,6 +169,15 @@ se peut qu'il reste alors des donn&eacute;es non trait&eacute;es. </para> </warning> + <warning> + <para> + La valeur pass&eacute;e au param&egrave;tre <parameter>$data</parameter> + doit &ecirc;tre lit&eacute;ral. + Ne soumettez pas des fonctions SQL (par exemple, <literal>CURDATE()</literal>). + Les fonctions SQL qui doivent &ecirc;tre ex&eacute;cut&eacute;es au moment de l'ex&eacute;cution doivent + &ecirc;tre mises dans une requ&ecirc;te pr&eacute;par&eacute;e. + </para> + </warning> </refsect1> <refsect1 id="package.database.db.db-common.executemultiple.example"> @@ -186,7 +190,7 @@ // On suppose que $db est un objet DB valide... $sth = $db->prepare('INSERT INTO numbers VALUES (?, ?, ?)'); -if (DB::isError($sth)) { +if (PEAR::isError($sth)) { die($sth->getMessage()); } @@ -197,7 +201,7 @@ $res =& $db->executeMultiple($sth, $alldata); -if (DB::isError($res)) { +if (PEAR::isError($res)) { die($res->getMessage()); } ?> http://cvs.php.net/viewcvs.cgi/peardoc/fr/package/database/db/db-common/execute.xml?r1=1.3&r2=1.4&diff_format=u Index: peardoc/fr/package/database/db/db-common/execute.xml diff -u peardoc/fr/package/database/db/db-common/execute.xml:1.3 peardoc/fr/package/database/db/db-common/execute.xml:1.4 --- peardoc/fr/package/database/db/db-common/execute.xml:1.3 Tue Jul 6 21:11:26 2004 +++ peardoc/fr/package/database/db/db-common/execute.xml Fri Dec 16 17:06:46 2005 @@ -1,13 +1,13 @@ <?xml version="1.0" encoding="iso-8859-1" ?> -<!-- $Revision: 1.3 $ --> -<!-- EN-Revision: 1.29 Maintainer: didou Status: ready --> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.31 Maintainer: didou Status: ready --> <refentry id="package.database.db.db-common.execute"> <refnamediv> <refname>DB_common::execute()</refname> <refpurpose>Ex&eacute;cute une requ&ecirc;te SQL pr&eacute;par&eacute;e</refpurpose> </refnamediv> - + <refsynopsisdiv> <funcsynopsis> <funcprototype> @@ -21,7 +21,7 @@ </funcprototype> </funcsynopsis> </refsynopsisdiv> - + <refsect1 id="package.database.db.db-common.execute.desc"> &title.desc; <para> @@ -32,7 +32,7 @@ ex&eacute;cute la requ&ecirc;te. </para> </refsect1> - + <refsect1 id="package.database.db.db-common.execute.parameter"> &title.param; <para> @@ -69,7 +69,7 @@ </variablelist> </para> </refsect1> - + <refsect1 id="package.database.db.db-common.execute.return"> &title.returns; <para> @@ -81,7 +81,7 @@ ou un objet &class.db-error; en cas d'&eacute;chec. </para> </refsect1> - + <refsect1 id="package.database.db.db-common.execute.throws"> &title.throws; <para> @@ -164,10 +164,19 @@ </table> </para> </refsect1> - + <refsect1 id="package.database.db.db-common.execute.note"> &title.note; &note.notstatic; + <warning> + <para> + La valeur pass&eacute;e au param&egrave;tre <parameter>$data</parameter> + doit &ecirc;tre lit&eacute;ral. + Ne soumettez pas des fonctions SQL (par exemple, <literal>CURDATE()</literal>). + Les fonctions SQL qui doivent &ecirc;tre ex&eacute;cut&eacute;es au moment de l'ex&eacute;cution doivent + &ecirc;tre mises dans une requ&ecirc;te pr&eacute;par&eacute;e. + </para> + </warning> </refsect1> <refsect1 id="package.database.db.db-common.execute.example"> @@ -179,12 +188,12 @@ <?php // On suppose que $db est un objet DB valide... $sth = $db->prepare('INSERT INTO numbers (number) VALUES (?)'); -if (DB::isError($sth)) { +if (PEAR::isError($sth)) { die($sth->getMessage()); } $res =& $db->execute($sth, 1); -if (DB::isError($res)) { +if (PEAR::isError($res)) { die($res->getMessage()); } ?> @@ -207,7 +216,7 @@ </programlisting> </example> </refsect1> - + <refsect1 id="package.database.db.db-common.execute.see"> &title.see; <para> http://cvs.php.net/viewcvs.cgi/peardoc/fr/package/database/db/db-common/freeprepared.xml?r1=1.2&r2=1.3&diff_format=u Index: peardoc/fr/package/database/db/db-common/freeprepared.xml diff -u peardoc/fr/package/database/db/db-common/freeprepared.xml:1.2 peardoc/fr/package/database/db/db-common/freeprepared.xml:1.3 --- peardoc/fr/package/database/db/db-common/freeprepared.xml:1.2 Wed Jul 7 10:21:21 2004 +++ peardoc/fr/package/database/db/db-common/freeprepared.xml Fri Dec 16 17:06:46 2005 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1" ?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.10 Maintainer: didou Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.11 Maintainer: didou Status: ready --> <refentry id="package.database.db.db-common.freeprepared"> <refnamediv> @@ -15,6 +15,9 @@ <paramdef> resource <parameter>$stmt</parameter> </paramdef> + <paramdef> + bool&eacute;en <parameter><optional>$free_resource = true</optional></parameter> + </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> @@ -40,11 +43,27 @@ </term> <listitem> <para> - identifiant de ressource retourn&eacute; + identifiant de ressource retourn&eacute; par <function>prepare</function> </para> </listitem> </varlistentry> + <varlistentry> + <term> + &type.bool; + <parameter>$free_resource</parameter> + </term> + <listitem> + <para> + est-ce que la ressource PHP doit &ecirc;tre lib&eacute;r&eacute;e &eacute;galement ? + Utilisez false si vous devez voir besoin des donn&eacute;es depuis le jeu de r&eacute;sultats + plus tard. + </para> + <para> + Param&egrave;tre disponible depuis la version 1.7.0. + </para> + </listitem> + </varlistentry> </variablelist> </para> </refsect1> http://cvs.php.net/viewcvs.cgi/peardoc/fr/package/database/db/db-common/getall.xml?r1=1.4&r2=1.5&diff_format=u Index: peardoc/fr/package/database/db/db-common/getall.xml diff -u peardoc/fr/package/database/db/db-common/getall.xml:1.4 peardoc/fr/package/database/db/db-common/getall.xml:1.5 --- peardoc/fr/package/database/db/db-common/getall.xml:1.4 Wed Jul 7 10:21:21 2004 +++ peardoc/fr/package/database/db/db-common/getall.xml Fri Dec 16 17:06:46 2005 @@ -1,13 +1,13 @@ <?xml version="1.0" encoding="iso-8859-1" ?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.33 Maintainer: didou Status: ready --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.34 Maintainer: didou Status: ready --> <refentry id="package.database.db.db-common.getall"> <refnamediv> <refname>DB_common::getAll()</refname> <refpurpose>R&eacute;cup&egrave;re toutes les lignes</refpurpose> </refnamediv> - + <refsynopsisdiv> <funcsynopsis> <funcprototype> @@ -25,7 +25,7 @@ </funcprototype> </funcsynopsis> </refsynopsisdiv> - + <refsect1 id="package.database.db.db-common.getall.desc"> &title.desc; <para> @@ -35,7 +35,7 @@ lib&eacute;rer le r&eacute;sultat &agrave; la fin. </para> </refsect1> - + <refsect1 id="package.database.db.db-common.getall.parameter"> &title.param; <para> @@ -124,7 +124,7 @@ </variablelist> </para> </refsect1> - + <refsect1 id="package.database.db.db-common.getall.return"> &title.returns; <para> @@ -132,7 +132,7 @@ un objet &class.db-error; en cas d'erreurs </para> </refsect1> - + <refsect1 id="package.database.db.db-common.getall.throws"> &title.throws; <para> @@ -216,7 +216,7 @@ </table> </para> </refsect1> - + <refsect1 id="package.database.db.db-common.getall.note"> &title.note; &note.notstatic; @@ -237,7 +237,7 @@ $db->setFetchMode(DB_FETCHMODE_ASSOC); $data =& $db->getAll('SELECT cf, nf, df FROM foo'); -if (DB::isError($data)) { +if (PEAR::isError($data)) { die($data->getMessage()); } @@ -281,7 +281,7 @@ $data =& $db->getAll('SELECT cf, nf, df FROM foo', array(), DB_FETCHMODE_ORDERED); -if (DB::isError($data)) { +if (PEAR::isError($data)) { die($data->getMessage()); } @@ -325,7 +325,7 @@ $data =& $db->getAll('SELECT cf, nf, df FROM foo', array(), DB_FETCHMODE_ORDERED | DB_FETCHMODE_FLIPPED); -if (DB::isError($data)) { +if (PEAR::isError($data)) { die($data->getMessage()); } @@ -372,7 +372,7 @@ $data =& $db->getAll('SELECT cf, nf, df FROM foo', array(), DB_FETCHMODE_ASSOC); -if (DB::isError($data)) { +if (PEAR::isError($data)) { die($data->getMessage()); } @@ -416,7 +416,7 @@ $data =& $db->getAll('SELECT cf, nf, df FROM foo', array(), DB_FETCHMODE_ASSOC | DB_FETCHMODE_FLIPPED); -if (DB::isError($data)) { +if (PEAR::isError($data)) { die($data->getMessage()); } @@ -463,7 +463,7 @@ $data =& $db->getAll('SELECT cf, nf, df FROM foo', array(), DB_FETCHMODE_OBJECT); -if (DB::isError($data)) { +if (PEAR::isError($data)) { die($data->getMessage()); } @@ -507,7 +507,7 @@ $data =& $db->getAll('SELECT cf, nf, df FROM foo WHERE nf = ?', array(5), DB_FETCHMODE_ASSOC); -if (DB::isError($data)) { +if (PEAR::isError($data)) { die($data->getMessage()); } @@ -554,6 +554,7 @@ </para> </refsect1> </refentry> + <!-- Keep this comment at the end of the file Local variables: mode: sgml @@ -572,4 +573,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/viewcvs.cgi/peardoc/fr/package/database/db/db-common/getassoc.xml?r1=1.4&r2=1.5&diff_format=u Index: peardoc/fr/package/database/db/db-common/getassoc.xml diff -u peardoc/fr/package/database/db/db-common/getassoc.xml:1.4 peardoc/fr/package/database/db/db-common/getassoc.xml:1.5 --- peardoc/fr/package/database/db/db-common/getassoc.xml:1.4 Wed Jul 7 10:21:21 2004 +++ peardoc/fr/package/database/db/db-common/getassoc.xml Fri Dec 16 17:06:46 2005 @@ -1,13 +1,13 @@ <?xml version="1.0" encoding="iso-8859-1" ?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.35 Maintainer: didou Status: ready --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.36 Maintainer: didou Status: ready --> <refentry id="package.database.db.db-common.getassoc"> <refnamediv> <refname>DB_common::getAssoc()</refname> <refpurpose>R&eacute;cup&egrave;re le r&eacute;sultat dans un tableau </refpurpose> </refnamediv> - + <refsynopsisdiv> <funcsynopsis> <funcprototype> @@ -31,7 +31,7 @@ </funcprototype> </funcsynopsis> </refsynopsisdiv> - + <refsect1 id="package.database.db.db-common.getassoc.desc"> &title.desc; <para> @@ -46,7 +46,7 @@ d'un tableau avec la param&egrave;tre <parameter>$force_array</parameter>). </para> </refsect1> - + <refsect1 id="package.database.db.db-common.getassoc.parameter"> &title.param; <para> @@ -151,7 +151,7 @@ </variablelist> </para> </refsect1> - + <refsect1 id="package.database.db.db-common.getassoc.return"> &title.returns; <para> @@ -159,7 +159,7 @@ la requ&ecirc;te ou un objet &class.db-error; en cas d'erreur. </para> </refsect1> - + <refsect1 id="package.database.db.db-common.getassoc.throws"> &title.throws; <para> @@ -295,7 +295,7 @@ // On suppose que $db est un objet DB valide... $data =& $db->getAssoc('SELECT cf, df FROM foo'); -if (DB::isError($data)) { +if (PEAR::isError($data)) { die($data->getMessage()); } @@ -329,7 +329,7 @@ $data =& $db->getAssoc('SELECT cf, df FROM foo', false, array(), DB_FETCHMODE_ORDERED, true); -if (DB::isError($data)) { +if (PEAR::isError($data)) { die($data->getMessage()); } @@ -372,7 +372,7 @@ $data =& $db->getAssoc('SELECT cf, df FROM foo', true, array(), DB_FETCHMODE_ORDERED); -if (DB::isError($data)) { +if (PEAR::isError($data)) { die($data->getMessage()); } @@ -414,7 +414,7 @@ $data =& $db->getAssoc('SELECT cf, df FROM foo', true, array(), DB_FETCHMODE_ASSOC); -if (DB::isError($data)) { +if (PEAR::isError($data)) { die($data->getMessage()); } @@ -456,7 +456,7 @@ $data =& $db->getAssoc('SELECT cf, df FROM foo', true, array(), DB_FETCHMODE_OBJECT); -if (DB::isError($data)) { +if (PEAR::isError($data)) { die($data->getMessage()); } @@ -501,7 +501,7 @@ $data =& $db->getAssoc('SELECT cf, df FROM foo', true, array(), DB_FETCHMODE_ORDERED, true); -if (DB::isError($data)) { +if (PEAR::isError($data)) { die($data->getMessage()); } @@ -554,7 +554,7 @@ $data =& $db->getAssoc('SELECT cf, df FROM foo', true, array(), DB_FETCHMODE_ASSOC, true); -if (DB::isError($data)) { +if (PEAR::isError($data)) { die($data->getMessage()); } @@ -607,7 +607,7 @@ $data =& $db->getAssoc('SELECT cf, df FROM foo', true, array(), DB_FETCHMODE_OBJECT, true); -if (DB::isError($data)) { +if (PEAR::isError($data)) { die($data->getMessage()); } @@ -667,7 +667,7 @@ $data =& $db->getAssoc('SELECT cf, nf, df FROM foo', false, array(), DB_FETCHMODE_ORDERED); -if (DB::isError($data)) { +if (PEAR::isError($data)) { die($data->getMessage()); } @@ -710,7 +710,7 @@ $data =& $db->getAssoc('SELECT cf, nf, df FROM foo', false, array(), DB_FETCHMODE_ASSOC); -if (DB::isError($data)) { +if (PEAR::isError($data)) { die($data->getMessage()); } @@ -753,7 +753,7 @@ $data =& $db->getAssoc('SELECT cf, nf, df FROM foo', false, array(), DB_FETCHMODE_OBJECT); -if (DB::isError($data)) { +if (PEAR::isError($data)) { die($data->getMessage()); } @@ -799,7 +799,7 @@ $data =& $db->getAssoc('SELECT cf, nf, df FROM foo', false, array(), DB_FETCHMODE_ORDERED, true); -if (DB::isError($data)) { +if (PEAR::isError($data)) { die($data->getMessage()); } @@ -854,7 +854,7 @@ $data =& $db->getAssoc('SELECT cf, nf, df FROM foo', false, array(), DB_FETCHMODE_ASSOC, true); -if (DB::isError($data)) { +if (PEAR::isError($data)) { die($data->getMessage()); } @@ -909,7 +909,7 @@ $data =& $db->getAssoc('SELECT cf, nf, df FROM foo', false, array(), DB_FETCHMODE_OBJECT, true); -if (DB::isError($data)) { +if (PEAR::isError($data)) { die($data->getMessage()); } @@ -970,7 +970,7 @@ $data =& $db->getAssoc('SELECT cf, df FROM foo WHERE nf = ?', false, 5); -if (DB::isError($data)) { +if (PEAR::isError($data)) { die($data->getMessage()); } ?> @@ -990,7 +990,7 @@ $data =& $db->getAssoc('SELECT cf, df FROM foo WHERE nf IN (?, ?)', false, array(5, 10)); -if (DB::isError($data)) { +if (PEAR::isError($data)) { die($data->getMessage()); } ?> @@ -1040,4 +1040,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/viewcvs.cgi/peardoc/fr/package/database/db/db-common/getcol.xml?r1=1.4&r2=1.5&diff_format=u Index: peardoc/fr/package/database/db/db-common/getcol.xml diff -u peardoc/fr/package/database/db/db-common/getcol.xml:1.4 peardoc/fr/package/database/db/db-common/getcol.xml:1.5 --- peardoc/fr/package/database/db/db-common/getcol.xml:1.4 Wed Jul 7 10:21:21 2004 +++ peardoc/fr/package/database/db/db-common/getcol.xml Fri Dec 16 17:06:46 2005 @@ -1,13 +1,13 @@ <?xml version="1.0" encoding="iso-8859-1" ?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.31 Maintainer: didou Status: ready --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.32 Maintainer: didou Status: ready --> <refentry id="package.database.db.db-common.getcol"> <refnamediv> <refname>DB_common::getCol()</refname> <refpurpose>R&eacute;cup&egrave;re une seule colonne</refpurpose> </refnamediv> - + <refsynopsisdiv> <funcsynopsis> <funcprototype> @@ -24,7 +24,7 @@ </funcprototype> </funcsynopsis> </refsynopsisdiv> - + <refsect1 id="package.database.db.db-common.getcol.desc"> &title.desc; <para> @@ -32,7 +32,7 @@ et lib&egrave;re le r&eacute;sultat. </para> </refsect1> - + <refsect1 id="package.database.db.db-common.getcol.parameter"> &title.param; <para> @@ -85,7 +85,7 @@ </variablelist> </para> </refsect1> - + <refsect1 id="package.database.db.db-common.getcol.return"> &title.returns; <para> @@ -94,7 +94,7 @@ un objet &class.db-error; en cas d'erreur </para> </refsect1> - + <refsect1 id="package.database.db.db-common.getcol.throws"> &title.throws; <para> @@ -191,7 +191,7 @@ </table> </para> </refsect1> - + <refsect1 id="package.database.db.db-common.getcol.note"> &title.note; &note.notstatic; @@ -209,7 +209,7 @@ // On suppose que $db est un objet DB valide... $data =& $db->getCol('SELECT cf, df FROM foo'); -if (DB::isError($data)) { +if (PEAR::isError($data)) { die($data->getMessage()); } @@ -242,7 +242,7 @@ // On suppose que $db est un objet DB valide... $data =& $db->getCol('SELECT cf, df FROM foo', 1); -if (DB::isError($data)) { +if (PEAR::isError($data)) { die($data->getMessage()); } @@ -275,7 +275,7 @@ // On suppose que $db est un objet DB valide... $data =& $db->getCol('SELECT cf, df FROM foo', 'df'); -if (DB::isError($data)) { +if (PEAR::isError($data)) { die($data->getMessage()); } @@ -309,7 +309,7 @@ $data =& $db->getCol('SELECT cf, df FROM foo WHERE nf = ?', 'df', 5); -if (DB::isError($data)) { +if (PEAR::isError($data)) { die($data->getMessage()); } @@ -342,7 +342,7 @@ $data =& $db->getCol('SELECT cf, df FROM foo WHERE nf IN (?, ?)', 'df', array(5, 10)); -if (DB::isError($data)) { +if (PEAR::isError($data)) { die($data->getMessage()); } @@ -402,4 +402,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/viewcvs.cgi/peardoc/fr/package/database/db/db-common/getlistof.xml?r1=1.3&r2=1.4&diff_format=u Index: peardoc/fr/package/database/db/db-common/getlistof.xml diff -u peardoc/fr/package/database/db/db-common/getlistof.xml:1.3 peardoc/fr/package/database/db/db-common/getlistof.xml:1.4 --- peardoc/fr/package/database/db/db-common/getlistof.xml:1.3 Wed Jul 7 20:25:08 2004 +++ peardoc/fr/package/database/db/db-common/getlistof.xml Fri Dec 16 17:06:46 2005 @@ -1,13 +1,13 @@ <?xml version="1.0" encoding="iso-8859-1" ?> -<!-- $Revision: 1.3 $ --> -<!-- EN-Revision: 1.18 Maintainer: didou Status: ready --> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.19 Maintainer: didou Status: ready --> <refentry id="package.database.db.db-common.getlistof"> <refnamediv> <refname>DB_common::getListOf()</refname> <refpurpose>Voir les informations syst&egrave;me de la base de donn&eacute;es</refpurpose> </refnamediv> - + <refsynopsisdiv> <funcsynopsis> <funcprototype> @@ -18,7 +18,7 @@ </funcprototype> </funcsynopsis> </refsynopsisdiv> - + <refsect1 id="package.database.db.db-common.getlistof.desc"> &title.desc; <para> @@ -26,7 +26,7 @@ base de donn&eacute;es disponible, vues et fonctions disponibles. </para> </refsect1> - + <refsect1 id="package.database.db.db-common.getlistof.parameter"> &title.param; <para> @@ -50,7 +50,7 @@ </variablelist> </para> </refsect1> - + <refsect1 id="package.database.db.db-common.getlistof.return"> &title.returns; <para> @@ -58,7 +58,7 @@ ou un objet &class.db-error; en cas d'erreur </para> </refsect1> - + <refsect1 id="package.database.db.db-common.getlistof.throws"> &title.throws; <para> @@ -92,7 +92,7 @@ </table> </para> </refsect1> - + <refsect1 id="package.database.db.db-common.getlistof.note"> &title.note; &note.notstatic; @@ -108,7 +108,7 @@ // On suppose que $db est un objet DB valide... $data = $db->getListOf('tables'); -if (DB::isError($data)) { +if (PEAR::isError($data)) { die($data->getMessage()); } @@ -138,4 +138,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/viewcvs.cgi/peardoc/fr/package/database/db/db-common/getone.xml?r1=1.4&r2=1.5&diff_format=u Index: peardoc/fr/package/database/db/db-common/getone.xml diff -u peardoc/fr/package/database/db/db-common/getone.xml:1.4 peardoc/fr/package/database/db/db-common/getone.xml:1.5 --- peardoc/fr/package/database/db/db-common/getone.xml:1.4 Wed Jul 7 20:25:08 2004 +++ peardoc/fr/package/database/db/db-common/getone.xml Fri Dec 16 17:06:46 2005 @@ -1,13 +1,13 @@ <?xml version="1.0" encoding="iso-8859-1" ?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.28 Maintainer: didou Status: ready --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.29 Maintainer: didou Status: ready --> <refentry id="package.database.db.db-common.getone"> <refnamediv> <refname>DB_common::getOne()</refname> <refpurpose>R&eacute;cup&egrave;re la premi&egrave;re colonne de la premi&egrave;re ligne</refpurpose> </refnamediv> - + <refsynopsisdiv> <funcsynopsis> <funcprototype> @@ -21,7 +21,7 @@ </funcprototype> </funcsynopsis> </refsynopsisdiv> - + <refsect1 id="package.database.db.db-common.getone.desc"> &title.desc; <para> @@ -31,7 +31,7 @@ et de lib&eacute;rer le r&eacute;sultat par la suite. </para> </refsect1> - + <refsect1 id="package.database.db.db-common.getone.parameter"> &title.param; <para> @@ -72,7 +72,7 @@ </variablelist> </para> </refsect1> - + <refsect1 id="package.database.db.db-common.getone.return"> &title.returns; <para> @@ -80,7 +80,7 @@ un objet &class.db-error; en cas d'erreur </para> </refsect1> - + <refsect1 id="package.database.db.db-common.getone.throws"> &title.throws; <para> @@ -160,7 +160,7 @@ </table> </para> </refsect1> - + <refsect1 id="package.database.db.db-common.getone.note"> &title.note; &note.notstatic; @@ -176,7 +176,7 @@ // On suppose que $db est un objet DB valide... $data =& $db->getOne('SELECT cf FROM foo'); -if (DB::isError($data)) { +if (PEAR::isError($data)) { die($data->getMessage()); } @@ -198,7 +198,7 @@ $data =& $db->getOne('SELECT cf FROM foo WHERE nf = ?', 5); -if (DB::isError($data)) { +if (PEAR::isError($data)) { die($data->getMessage()); } @@ -220,7 +220,7 @@ $data =& $db->getOne('SELECT cf FROM foo WHERE nf IN (?, ?)', array(5, 10)); -if (DB::isError($data)) { +if (PEAR::isError($data)) { die($data->getMessage()); } @@ -249,6 +249,7 @@ </para> </refsect1> </refentry> + <!-- Keep this comment at the end of the file Local variables: mode: sgml @@ -267,4 +268,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/viewcvs.cgi/peardoc/fr/package/database/db/db-common/getrow.xml?r1=1.4&r2=1.5&diff_format=u Index: peardoc/fr/package/database/db/db-common/getrow.xml diff -u peardoc/fr/package/database/db/db-common/getrow.xml:1.4 peardoc/fr/package/database/db/db-common/getrow.xml:1.5 --- peardoc/fr/package/database/db/db-common/getrow.xml:1.4 Wed Jul 7 20:25:08 2004 +++ peardoc/fr/package/database/db/db-common/getrow.xml Fri Dec 16 17:06:46 2005 @@ -1,13 +1,13 @@ <?xml version="1.0" encoding="iso-8859-1" ?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.34 Maintainer: didou Status: ready --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.35 Maintainer: didou Status: ready --> <refentry id="package.database.db.db-common.getrow"> <refnamediv> <refname>DB_common::getRow()</refname> <refpurpose>R&eacute;cup&egrave;re la premi&egrave;re ligne</refpurpose> </refnamediv> - + <refsynopsisdiv> <funcsynopsis> <funcprototype> @@ -25,7 +25,7 @@ </funcprototype> </funcsynopsis> </refsynopsisdiv> - + <refsect1 id="package.database.db.db-common.getrow.desc"> &title.desc; <para> @@ -33,7 +33,7 @@ tableau puis lib&egrave;re le jeu de r&eacute;sultat. </para> </refsect1> - + <refsect1 id="package.database.db.db-common.getrow.parameter"> &title.param; <para> @@ -110,7 +110,7 @@ </variablelist> </para> </refsect1> - + <refsect1 id="package.database.db.db-common.getrow.return"> &title.returns; <para> @@ -121,7 +121,7 @@ L'index de la colonne commence &agrave; 0 pour les tableaux ordonn&eacute;es. </para> </refsect1> - + <refsect1 id="package.database.db.db-common.getrow.throws"> &title.throws; <para> @@ -201,7 +201,7 @@ </table> </para> </refsect1> - + <refsect1 id="package.database.db.db-common.getrow.note"> &title.note; &note.notstatic; @@ -222,7 +222,7 @@ $data =& $db->getRow('SELECT cf, df FROM foo', array(), DB_FETCHMODE_ORDERED); -if (DB::isError($data)) { +if (PEAR::isError($data)) { die($data->getMessage()); } @@ -257,7 +257,7 @@ $data =& $db->getRow('SELECT cf, df FROM foo', array(), DB_FETCHMODE_ASSOC); -if (DB::isError($data)) { +if (PEAR::isError($data)) { die($data->getMessage()); } @@ -292,7 +292,7 @@ $data =& $db->getRow('SELECT cf, df FROM foo', array(), DB_FETCHMODE_OBJECT); -if (DB::isError($data)) { +if (PEAR::isError($data)) { die($data->getMessage()); } @@ -326,7 +326,7 @@ $data =& $db->getRow('SELECT cf, df FROM foo WHERE nf = ?', array(5)); -if (DB::isError($data)) { +if (PEAR::isError($data)) { die($data->getMessage()); } ?> @@ -347,7 +347,7 @@ $data =& $db->getRow('SELECT cf, df FROM foo WHERE nf IN (?, ?)', array(5, 10)); -if (DB::isError($data)) { +if (PEAR::isError($data)) { die($data->getMessage()); } ?> @@ -377,6 +377,7 @@ </para> </refsect1> </refentry> + <!-- Keep this comment at the end of the file Local variables: mode: sgml @@ -395,4 +396,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/viewcvs.cgi/peardoc/fr/package/database/db/db-common/limitquery.xml?r1=1.2&r2=1.3&diff_format=u Index: peardoc/fr/package/database/db/db-common/limitquery.xml diff -u peardoc/fr/package/database/db/db-common/limitquery.xml:1.2 peardoc/fr/package/database/db/db-common/limitquery.xml:1.3 --- peardoc/fr/package/database/db/db-common/limitquery.xml:1.2 Wed Jul 7 20:25:08 2004 +++ peardoc/fr/package/database/db/db-common/limitquery.xml Fri Dec 16 17:06:46 2005 @@ -1,13 +1,13 @@ <?xml version="1.0" encoding="iso-8859-1" ?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.25 Maintainer: didou Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.27 Maintainer: didou Status: ready --> <refentry id="package.database.db.db-common.limitquery"> <refnamediv> <refname>DB_common::limitQuery()</refname> <refpurpose>Envoi une requ&ecirc;te limit&eacute;e &agrave; la base de donn&eacute;es</refpurpose> </refnamediv> - + <refsynopsisdiv> <funcsynopsis> <funcprototype> @@ -27,7 +27,7 @@ </funcprototype> </funcsynopsis> </refsynopsisdiv> - + <refsect1 id="package.database.db.db-common.limitquery.desc"> &title.desc; <para> @@ -36,7 +36,7 @@ C'est une &eacute;mulation de l'option LIMIT de MySQL. </para> </refsect1> - + <refsect1 id="package.database.db.db-common.limitquery.parameter"> &title.param; <para> @@ -59,7 +59,8 @@ </term> <listitem> <para> - la ligne &agrave; partir de laquelle on commence la r&eacute;cup&eacute;ration + la ligne &agrave; partir de laquelle on commence la r&eacute;cup&eacute;ration. + Notez que 0 retourne la premi&egrave;re ligne, 1 retourne la seconde ligne, etc. </para> </listitem> </varlistentry> @@ -93,7 +94,7 @@ </variablelist> </para> </refsect1> - + <refsect1 id="package.database.db.db-common.limitquery.return"> &title.returns; <para> @@ -105,7 +106,7 @@ ou un objet &class.db-error; en cas d'erreur. </para> </refsect1> - + <refsect1 id="package.database.db.db-common.limitquery.throws"> &title.throws; <para> @@ -154,7 +155,7 @@ </table> </para> </refsect1> - + <refsect1 id="package.database.db.db-common.limitquery.note"> &title.note; &note.notstatic; @@ -175,9 +176,9 @@ <![CDATA[ <?php // On suppose que $db est un objet DB valide... -$res =& $db->limitQuery('SELECT * FROM foo', 50, 10); +$res =& $db->limitQuery('SELECT * FROM foo', 49, 10); -if (DB::isError($res)) { +if (PEAR::isError($res)) { die($res->getMessage()); } ?> @@ -185,7 +186,7 @@ </programlisting> </example> </refsect1> - + <refsect1 id="package.database.db.db-common.limitquery.see"> &title.see; <para> @@ -194,7 +195,7 @@ </para> </refsect1> </refentry> - + <!-- Keep this comment at the end of the file Local variables: mode: sgml @@ -213,4 +214,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/viewcvs.cgi/peardoc/fr/package/database/db/db-common/nextid.xml?r1=1.5&r2=1.6&diff_format=u Index: peardoc/fr/package/database/db/db-common/nextid.xml diff -u peardoc/fr/package/database/db/db-common/nextid.xml:1.5 peardoc/fr/package/database/db/db-common/nextid.xml:1.6 --- peardoc/fr/package/database/db/db-common/nextid.xml:1.5 Sun Nov 7 19:42:12 2004 +++ peardoc/fr/package/database/db/db-common/nextid.xml Fri Dec 16 17:06:46 2005 @@ -1,17 +1,17 @@ <?xml version="1.0" encoding="iso-8859-1" ?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.23 Maintainer: didou Status: ready --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.25 Maintainer: didou Status: ready --> <refentry id="package.database.db.db-common.nextid"> <refnamediv> <refname>DB_common::nextId()</refname> <refpurpose>Retourne le nombre suivant pour une s&eacute;quence</refpurpose> </refnamediv> - + <refsynopsisdiv> <funcsynopsis> <funcprototype> - <funcdef>resource <function>nextId</function></funcdef> + <funcdef>integer <function>nextId</function></funcdef> <paramdef> string <parameter>$seq_name</parameter> </paramdef> @@ -21,7 +21,7 @@ </funcprototype> </funcsynopsis> </refsynopsisdiv> - + <refsect1 id="package.database.db.db-common.nextid.desc"> &title.desc; <para> @@ -34,7 +34,7 @@ linkend="package.database.db.intro-sequences"><quote>Introduction - S&eacute;quences</quote></link> pour plus d'informations. </para> </refsect1> - + <refsect1 id="package.database.db.db-common.nextid.parameter"> &title.param; <para> @@ -48,6 +48,11 @@ <para> nom de la s&eacute;quence </para> + <para> + Pour &eacute;viter les probl&egrave;mes avec les divers syst&egrave;mes de bases de + donn&eacute;es, les noms des s&eacute;quences doivent commencer par une lettre et ne + doivent contenir que des lettres, nombres et des caract&egrave;res de soulignement (underscore). + </para> </listitem> </varlistentry> <varlistentry> @@ -57,15 +62,21 @@ </term> <listitem> <para> - &true; : la s&eacute;quence est automatiquement cr&eacute;&eacute;e + &true; : la s&eacute;quence est automatiquement cr&eacute;&eacute;e si elle n'existe pas. </para> + <para> + La cr&eacute;ation sur demande n&eacute;cessite que l'utilisateur de la base de donn&eacute;es + sp&eacute;cifi&eacute; dans le script doit avoir les permissions sur la base de donn&eacute;es + n&eacute;cessaire pour cr&eacute;er une table ou une s&eacute;quence. Les privil&egrave;ges exactes + d&eacute;pendent de la DBMS utilis&eacute;e. + </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> - + <refsect1 id="package.database.db.db-common.nextid.return"> &title.returns; <para> @@ -73,7 +84,7 @@ un objet &class.db-error; en cas d'erreur </para> </refsect1> - + <refsect1 id="package.database.db.db-common.nextid.throws"> &title.throws; <para> @@ -135,7 +146,7 @@ </table> </para> </refsect1> - + <refsect1 id="package.database.db.db-common.nextid.note"> &title.note; &note.notstatic; @@ -161,7 +172,7 @@ <?php // On suppose que $db est un objet DB valide... $id = $db->nextId('mySequence'); -if (DB::isError($id)) { +if (PEAR::isError($id)) { die($id->getMessage()); } @@ -205,4 +216,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/viewcvs.cgi/peardoc/fr/package/database/db/db-common/prepare.xml?r1=1.4&r2=1.5&diff_format=u Index: peardoc/fr/package/database/db/db-common/prepare.xml diff -u peardoc/fr/package/database/db/db-common/prepare.xml:1.4 peardoc/fr/package/database/db/db-common/prepare.xml:1.5 --- peardoc/fr/package/database/db/db-common/prepare.xml:1.4 Wed Jul 7 20:25:08 2004 +++ peardoc/fr/package/database/db/db-common/prepare.xml Fri Dec 16 17:06:46 2005 @@ -1,13 +1,13 @@ <?xml version="1.0" encoding="iso-8859-1" ?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.22 Maintainer: didou Status: ready --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.23 Maintainer: didou Status: ready --> <refentry id="package.database.db.db-common.prepare"> <refnamediv> <refname>DB_common::prepare()</refname> <refpurpose>Pr&eacute;pare une requ&ecirc;te SQL pour ex&eacute;cution future</refpurpose> </refnamediv> - + <refsynopsisdiv> <funcsynopsis> <funcprototype> @@ -18,7 +18,7 @@ </funcprototype> </funcsynopsis> </refsynopsisdiv> - + <refsect1 id="package.database.db.db-common.prepare.desc"> &title.desc; <para> @@ -27,7 +27,7 @@ <function>execute</function></link>. </para> </refsect1> - + <refsect1 id="package.database.db.db-common.prepare.parameter"> &title.param; <para> @@ -46,7 +46,7 @@ </variablelist> </para> </refsect1> - + <refsect1 id="package.database.db.db-common.prepare.return"> &title.returns; <para> @@ -54,7 +54,7 @@ ou un objet &class.db-error; en cas d'erreur </para> </refsect1> - + <refsect1 id="package.database.db.db-common.prepare.note"> &title.note; &note.notstatic; @@ -69,12 +69,12 @@ <?php // On suppose que $db est un objet DB valide... $sth = $db->prepare('INSERT INTO numbers (number) VALUES (?)'); -if (DB::isError($sth)) { +if (PEAR::isError($sth)) { die($sth->getMessage()); } $res =& $db->execute($sth, 1); -if (DB::isError($res)) { +if (PEAR::isError($res)) { die($res->getMessage()); } ?> @@ -116,4 +116,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/viewcvs.cgi/peardoc/fr/package/database/db/db-common/setfetchmode.xml?r1=1.4&r2=1.5&diff_format=u Index: peardoc/fr/package/database/db/db-common/setfetchmode.xml diff -u peardoc/fr/package/database/db/db-common/setfetchmode.xml:1.4 peardoc/fr/package/database/db/db-common/setfetchmode.xml:1.5 --- peardoc/fr/package/database/db/db-common/setfetchmode.xml:1.4 Sun Nov 7 19:42:12 2004 +++ peardoc/fr/package/database/db/db-common/setfetchmode.xml Fri Dec 16 17:06:46 2005 @@ -1,13 +1,13 @@ <?xml version="1.0" encoding="iso-8859-1" ?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.26 Maintainer: didou Status: ready --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.27 Maintainer: didou Status: ready --> <refentry id="package.database.db.db-common.setfetchmode"> <refnamediv> <refname>DB_common::setFetchMode()</refname> <refpurpose>Configure le mode de r&eacute;cup&eacute;ration par d&eacute;faut</refpurpose> </refnamediv> - + <refsynopsisdiv> <funcsynopsis> <funcprototype> @@ -21,7 +21,7 @@ </funcprototype> </funcsynopsis> </refsynopsisdiv> - + <refsect1 id="package.database.db.db-common.setfetchmode.desc"> &title.desc; <para> @@ -29,7 +29,7 @@ par les m&eacute;thodes <function>fetch*</function> et <function>get*</function>. </para> </refsect1> - + <refsect1 id="package.database.db.db-common.setfetchmode.parameter"> &title.param; <para> @@ -46,21 +46,7 @@ <constant>DB_FETCHMODE_OBJECT</constant>. </para> <para> - Si vous utilisez - <link linkend="package.database.db.db-common.getcol"> - <function>getCol</function></link>, la constante - <constant>DB_FETCHMODE_ORDERED</constant> ou - <constant>DB_FETCHMODE_ASSOC</constant> - peut &ecirc;tre combin&eacute;e avec la constante - <constant>DB_FETCHMODE_FLIPPED</constant> - via l'op&eacute;rateur OR (<literal>|</literal>). - Par exemple : - <programlisting> -DB_FETCHMODE_ASSOC | DB_FETCHMODE_FLIPPED - </programlisting> - </para> - <para> - Voir la + Voir la <link linkend="package.database.db.db-common.setfetchmode.example"> section sur les exemples</link> ci-dessous pour plus d'informations. </para> @@ -87,7 +73,7 @@ </variablelist> </para> </refsect1> - + <refsect1 id="package.database.db.db-common.setfetchmode.return"> &title.returns; <para> @@ -95,7 +81,7 @@ un objet &class.db-error; en cas d'erreur </para> </refsect1> - + <refsect1 id="package.database.db.db-common.setfetchmode.throws"> &title.throws; <para> @@ -129,7 +115,7 @@ </table> </para> </refsect1> - + <refsect1 id="package.database.db.db-common.setfetchmode.note"> &title.note; &note.notstatic; @@ -369,7 +355,6 @@ ]]> </screen> </example> - </refsect1> </refentry> @@ -391,4 +376,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.pear.doc (#7317) next »