cvs: peardoc /fr/package/database/db-dataobject intro-configuration.xml /fr/package/database/db/db-common createsequence.xml dropsequence.xml
nextid.xml setfetchmode.xml /fr/package/database/db/db-result numcols.xml numrows.xml

From: Date: Sun, 07 Nov 2004 19:42:13 +0000
Subject: cvs: peardoc /fr/package/database/db-dataobject intro-configuration.xml /fr/package/database/db/db-common createsequence.xml dropsequence.xml
nextid.xml setfetchmode.xml /fr/package/database/db/db-result numcols.xml numrows.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-5108@lists.php.net to get a copy of this message
yannick Sun Nov 7 14:42:13 2004 EDT Modified files: /peardoc/fr/package/database/db/db-common createsequence.xml dropsequence.xml nextid.xml setfetchmode.xml /peardoc/fr/package/database/db/db-result numcols.xml numrows.xml /peardoc/fr/package/database/db-dataobject intro-configuration.xml Log: sync with EN revision

http://cvs.php.net/diff.php/peardoc/fr/package/database/db/db-common/createsequence.xml?r1=1.3&r2=1.4&ty=u Index: peardoc/fr/package/database/db/db-common/createsequence.xml diff -u peardoc/fr/package/database/db/db-common/createsequence.xml:1.3 peardoc/fr/package/database/db/db-common/createsequence.xml:1.4 --- peardoc/fr/package/database/db/db-common/createsequence.xml:1.3 Tue Jul 6 17:11:26 2004 +++ peardoc/fr/package/database/db/db-common/createsequence.xml Sun Nov 7 14:42:12 2004 @@ -1,6 +1,6 @@ <?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.createsequence"> <refnamediv> @@ -89,6 +89,17 @@ <refsect1 id="package.database.db.db-common.createsequence.note"> &title.note; &note.notstatic; + <warning> + <para> + Lorsque vous utilisez les m&eacute;thodes de s&eacute;quence PEAR DB, vous &ecirc;tes vivement + recommand&eacute; d'utiliser ces m&eacute;thodes pour toutes les proc&eacute;dures, incluant + la cr&eacute;ation des s&eacute;quences. N'utilisez pas les m&eacute;thodes PEAR DB pour acc&eacute;der + aux s&eacute;quences cr&eacute;&eacute;es directement dans le DBMS. Voir <link + linkend="package.database.db.intro-sequences.note">l'avertissement + dans la page <quote>Introduction - S&eacute;quences</quote></link> + pour plus d'informations. + </para> + </warning> </refsect1> <refsect1 id="package.database.db.db-common.createsequence.example"> http://cvs.php.net/diff.php/peardoc/fr/package/database/db/db-common/dropsequence.xml?r1=1.2&r2=1.3&ty=u Index: peardoc/fr/package/database/db/db-common/dropsequence.xml diff -u peardoc/fr/package/database/db/db-common/dropsequence.xml:1.2 peardoc/fr/package/database/db/db-common/dropsequence.xml:1.3 --- peardoc/fr/package/database/db/db-common/dropsequence.xml:1.2 Tue Jul 6 17:11:26 2004 +++ peardoc/fr/package/database/db/db-common/dropsequence.xml Sun Nov 7 14:42:12 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1" ?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.17 Maintainer: didou Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.18 Maintainer: didou Status: ready --> <refentry id="package.database.db.db-common.dropsequence"> <refnamediv> @@ -90,6 +90,17 @@ <refsect1 id="package.database.db.db-common.dropsequence.note"> &title.note; &note.notstatic; + <warning> + <para> + Lorsque vous utilisez les m&eacute;thodes de s&eacute;quence PEAR DB, vous &ecirc;tes vivement + recommand&eacute; d'utiliser ces m&eacute;thodes pour toutes les proc&eacute;dures, incluant + la cr&eacute;ation des s&eacute;quences. N'utilisez pas les m&eacute;thodes PEAR DB pour acc&eacute;der + aux s&eacute;quences cr&eacute;&eacute;es directement dans le DBMS. Voir <link + linkend="package.database.db.intro-sequences.note">l'avertissement + dans la page <quote>Introduction - S&eacute;quences</quote></link> + pour plus d'informations. + </para> + </warning> </refsect1> <refsect1 id="package.database.db.db-common.dropsequence.example"> http://cvs.php.net/diff.php/peardoc/fr/package/database/db/db-common/nextid.xml?r1=1.4&r2=1.5&ty=u Index: peardoc/fr/package/database/db/db-common/nextid.xml diff -u peardoc/fr/package/database/db/db-common/nextid.xml:1.4 peardoc/fr/package/database/db/db-common/nextid.xml:1.5 --- peardoc/fr/package/database/db/db-common/nextid.xml:1.4 Wed Jul 7 16:25:08 2004 +++ peardoc/fr/package/database/db/db-common/nextid.xml Sun Nov 7 14:42:12 2004 @@ -1,11 +1,11 @@ <?xml version="1.0" encoding="iso-8859-1" ?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.21 Maintainer: didou Status: ready --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.23 Maintainer: didou Status: ready --> <refentry id="package.database.db.db-common.nextid"> <refnamediv> <refname>DB_common::nextId()</refname> - <refpurpose>Retourne le prochaine identifiant libre d'une s&eacute;quence</refpurpose> + <refpurpose>Retourne le nombre suivant pour une s&eacute;quence</refpurpose> </refnamediv> <refsynopsisdiv> @@ -25,8 +25,13 @@ <refsect1 id="package.database.db.db-common.nextid.desc"> &title.desc; <para> - Voyez <link - linkend="package.database.db.intro-sequences"><quote>Introduction - S&eacute;quences</quote></link> + Retourne le nombre suivant disponible pour une s&eacute;quence. + La s&eacute;quence est automatiquement incr&eacute;ment&eacute;e &agrave; chaque appel + de cette m&eacute;thode. + </para> + <para> + Lisez <link + linkend="package.database.db.intro-sequences"><quote>Introduction - S&eacute;quences</quote></link> pour plus d'informations. </para> </refsect1> @@ -134,6 +139,17 @@ <refsect1 id="package.database.db.db-common.nextid.note"> &title.note; &note.notstatic; + <warning> + <para> + Lorsque vous utilisez les m&eacute;thodes de s&eacute;quence PEAR DB, vous &ecirc;tes vivement + recommand&eacute; d'utiliser ces m&eacute;thodes pour toutes les proc&eacute;dures, incluant + la cr&eacute;ation des s&eacute;quences. N'utilisez pas les m&eacute;thodes PEAR DB pour acc&eacute;der + aux s&eacute;quences cr&eacute;&eacute;es directement dans le DBMS. Voir <link + linkend="package.database.db.intro-sequences.note">l'avertissement + dans la page <quote>Introduction - S&eacute;quences</quote></link> + pour plus d'informations. + </para> + </warning> </refsect1> <refsect1 id="package.database.db.db-common.nextid.example"> http://cvs.php.net/diff.php/peardoc/fr/package/database/db/db-common/setfetchmode.xml?r1=1.3&r2=1.4&ty=u Index: peardoc/fr/package/database/db/db-common/setfetchmode.xml diff -u peardoc/fr/package/database/db/db-common/setfetchmode.xml:1.3 peardoc/fr/package/database/db/db-common/setfetchmode.xml:1.4 --- peardoc/fr/package/database/db/db-common/setfetchmode.xml:1.3 Wed Jul 7 16:25:09 2004 +++ peardoc/fr/package/database/db/db-common/setfetchmode.xml Sun Nov 7 14:42:12 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1" ?> -<!-- $Revision: 1.3 $ --> -<!-- EN-Revision: 1.25 Maintainer: didou Status: ready --> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.26 Maintainer: didou Status: ready --> <refentry id="package.database.db.db-common.setfetchmode"> <refnamediv> @@ -137,7 +137,7 @@ <refsect1 id="package.database.db.db-common.setfetchmode.example"> &title.example; - <example> + <example id="package.database.db.db-common.setfetchmode.example.ordered"> <title> <constant>DB_FETCHMODE_ORDERED</constant> (d&eacute;faut) </title> @@ -174,7 +174,7 @@ </screen> </example> - <example> + <example id="package.database.db.db-common.setfetchmode.example.assoc"> <title> <constant>DB_FETCHMODE_ASSOC</constant> </title> @@ -210,7 +210,7 @@ </screen> </example> - <example> + <example id="package.database.db.db-common.setfetchmode.example.object"> <title> <constant>DB_FETCHMODE_OBJECT</constant> </title> @@ -246,7 +246,7 @@ </screen> </example> - <example> + <example id="package.database.db.db-common.setfetchmode.example.objectdbrow"> <title> <constant>DB_FETCHMODE_OBJECT</constant> et &class.db-row; </title> @@ -284,6 +284,92 @@ </screen> </example> + <example id="package.database.db.db-common.setfetchmode.example.object4"> + <title> + <constant>DB_FETCHMODE_OBJECT</constant> avec votre propre objet en PHP 4 + </title> + <programlisting role="php"> + <![CDATA[ +<?php +// On suppose que $db est un objet DB valide... + +class SomeResult { + function SomeResult($data) { + foreach ($data as $key => $value) { + $this->$key = $data[$key]; + } + } +} + +$db->setFetchMode(DB_FETCHMODE_OBJECT, 'SomeResult'); + +$res =& $db->query('SELECT a, b FROM phptest WHERE a = 28'); +$row =& $res->fetchRow(); + +print_r($row); +echo 'La colonne a vaut ' . $row->a; +?> + ]]> + </programlisting> + <para> + Affichera : + </para> + <screen> + <![CDATA[ +SomeResult Object +( + [a] => 28 + [b] => hi +) +La colonne a vaut 28 + ]]> + </screen> + </example> + + <example id="package.database.db.db-common.setfetchmode.example.object5"> + <title> + <constant>DB_FETCHMODE_OBJECT</constant> avec votre propre objet en PHP 5 + </title> + <programlisting role="php"> + <![CDATA[ +<?php +// On suppose que $db est un objet DB valide... + +class SomeResult { + public $row_data; + function __construct($data) { + $this->row_data = $data; + } + function __get($variable) { + return $this->row_data[$variable]; + } +} + +$db->setFetchMode(DB_FETCHMODE_OBJECT, 'SomeResult'); + +$res =& $db->query('SELECT a, b FROM phptest WHERE a = 28'); +$row =& $res->fetchRow(); + +print_r($row); +echo 'La colonne a vaut ' . $row->a; +?> + ]]> + </programlisting> + <para> + Affichera : + </para> + <screen> + <![CDATA[ +SomeResult Object +( + [a] => 28 + [b] => hi +) +La colonne a vaut 28 + ]]> + </screen> + </example> + </refsect1> </refentry> http://cvs.php.net/diff.php/peardoc/fr/package/database/db/db-result/numcols.xml?r1=1.2&r2=1.3&ty=u Index: peardoc/fr/package/database/db/db-result/numcols.xml diff -u peardoc/fr/package/database/db/db-result/numcols.xml:1.2 peardoc/fr/package/database/db/db-result/numcols.xml:1.3 --- peardoc/fr/package/database/db/db-result/numcols.xml:1.2 Wed Jul 7 17:22:04 2004 +++ peardoc/fr/package/database/db/db-result/numcols.xml Sun Nov 7 14:42:13 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1" ?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.19 Maintainer: didou Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.20 Maintainer: didou Status: ready --> <refentry id="package.database.db.db-result.numcols"> <refnamediv> @@ -57,7 +57,9 @@ &title.see; <para> <link linkend="package.database.db.db-result.numrows"> - <function>numRows</function></link> + <function>numRows</function></link>, + <link linkend="package.database.db.db-common.affectedrows"> + <function>affectedRows</function></link> </para> </refsect1> </refentry> http://cvs.php.net/diff.php/peardoc/fr/package/database/db/db-result/numrows.xml?r1=1.2&r2=1.3&ty=u Index: peardoc/fr/package/database/db/db-result/numrows.xml diff -u peardoc/fr/package/database/db/db-result/numrows.xml:1.2 peardoc/fr/package/database/db/db-result/numrows.xml:1.3 --- peardoc/fr/package/database/db/db-result/numrows.xml:1.2 Wed Jul 7 17:22:04 2004 +++ peardoc/fr/package/database/db/db-result/numrows.xml Sun Nov 7 14:42:13 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1" ?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.20 Maintainer: didou Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.21 Maintainer: didou Status: ready --> <refentry id="package.database.db.db-result.numrows"> <refnamediv> @@ -57,7 +57,9 @@ &title.see; <para> <link linkend="package.database.db.db-result.numcols"> - <function>numCols</function></link> + <function>numCols</function></link>, + <link linkend="package.database.db.db-common.affectedrows"> + <function>affectedRows</function></link> </para> </refsect1> </refentry> http://cvs.php.net/diff.php/peardoc/fr/package/database/db-dataobject/intro-configuration.xml?r1=1.1&r2=1.2&ty=u Index: peardoc/fr/package/database/db-dataobject/intro-configuration.xml diff -u peardoc/fr/package/database/db-dataobject/intro-configuration.xml:1.1 peardoc/fr/package/database/db-dataobject/intro-configuration.xml:1.2 --- peardoc/fr/package/database/db-dataobject/intro-configuration.xml:1.1 Tue Jun 29 06:15:19 2004 +++ peardoc/fr/package/database/db-dataobject/intro-configuration.xml Sun Nov 7 14:42:13 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1" ?> -<!-- $Revision: 1.1 $ --> -<!-- EN-Revision: 1.8 Maintainer: yannick Status: ready --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.9 Maintainer: yannick Status: ready --> <refentry id="package.database.db-dataobject.intro-configuration"> <refnamediv> <refname>Options de configuration</refname> @@ -372,6 +372,29 @@ </para> </listitem> </varlistentry> + + + + + <varlistentry> + <term> + <parameter>build_views</parameter> + <type>boolean</type> + </term> + <listitem> + <para> + Postgres (et surement d'autres) vous permet de traiter les vues comme + des tables normales (i.e. insert/update/delete etc. fonctionne sur ces tables), + vous pouvez utilisez cette option pour générer + les fichiers pour toutes les vues de la base de données. + </para> + <para> + Note : Vous devez spécifier les clés manuellement dans les classes générées (i.e. + définission des méthodes keys() et sequenceKey() ), car le générateur + ne peut pas deviner quelles sont les clés préférées. + </para> + </listitem> + </varlistentry> </variablelist>
« previous php.pear.doc (#5108) next »