Skip to content

Commit

Permalink
Sync PDO section with EN (#740)
Browse files Browse the repository at this point in the history
Co-authored-by: Gina Peter Banyard <girgias@php.net>
  • Loading branch information
devnexen and Girgias authored Jan 7, 2024
1 parent d3ea1e1 commit 95313ad
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 13 deletions.
3 changes: 2 additions & 1 deletion reference/pdo/book.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 8a058e9acded067eaa1bd445ed6943158e7311df Maintainer: yannick Status: ready -->
<!-- EN-Revision: daf4cc624df3c21d472149725feb377b1beedb04 Maintainer: yannick Status: ready -->
<!-- Reviewed: yes -->

<book xml:id="book.pdo" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
Expand Down Expand Up @@ -47,6 +47,7 @@

&reference.pdo.pdo;
&reference.pdo.pdostatement;
&reference.pdo.pdorow;
&reference.pdo.pdoexception;

&reference.pdo.drivers;
Expand Down
13 changes: 6 additions & 7 deletions reference/pdo/constants.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: 5bc8ebe3c1e0bb133e058f1b8eb34a721149e893 Maintainer: yannick Status: ready -->
<!-- EN-Revision: daf4cc624df3c21d472149725feb377b1beedb04 Maintainer: yannick Status: ready -->
<!-- Reviewed: no -->

<appendix xml:id="pdo.constants" xmlns="http://docbook.org/ns/docbook">
Expand Down Expand Up @@ -134,12 +134,11 @@
</term>
<listitem>
<simpara>
Spécifie que la méthode de récupération doit retourner chaque ligne
en tant qu'objet PDORow avec les noms de variables correspondants aux noms des
colonnes retournées dans le jeu de résultats.
<constant>PDO::FETCH_LAZY</constant> crée les noms
des variables de l'objet uniquement lorsqu'ils sont utilisés.
Non valide dans la méthode <methodname>PDOStatement::fetchAll</methodname>.
Spécifie que la méthode de récupération doit retourner chaque ligne en tant qu'objet avec
les noms de propriétés correspondant aux noms de colonnes retournés dans le jeu de résultats.
<constant>PDO::FETCH_LAZY</constant> retourne un objet <classname>PDORow</classname>
qui crée les noms de propriété de l'objet au fur et à mesure de leur accès.
Pas valide avec <methodname>PDOStatement::fetchAll</methodname>.
</simpara>
</listitem>
</varlistentry>
Expand Down
9 changes: 5 additions & 4 deletions reference/pdo/pdostatement/fetch.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: 28529d3539b850e870e3aa97570f4db0e53daa03 Maintainer: yannick Status: ready -->
<!-- EN-Revision: daf4cc624df3c21d472149725feb377b1beedb04 Maintainer: yannick Status: ready -->
<!-- Reviewed: no -->
<refentry xml:id="pdostatement.fetch" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
Expand Down Expand Up @@ -71,7 +71,8 @@
<listitem><para>
<literal>PDO::FETCH_LAZY</literal> : combine
<literal>PDO::FETCH_BOTH</literal> et <literal>PDO::FETCH_OBJ</literal>,
créant ainsi les noms des variables de l'objet, comme elles sont accédées
et renvoie un objet <classname>PDORow</classname>
qui crée les noms de propriété de l'objet au fur et à mesure de leur accès.
</para></listitem>
<listitem><para>
<literal>PDO::FETCH_NAMED</literal> : retourne un tableau de la même
Expand Down Expand Up @@ -176,7 +177,7 @@ print_r($result);
print "\n";
print "PDO::FETCH_LAZY: ";
print "Retourne la ligne suivante en tant qu'objet anonyme ayant les noms de colonnes comme propriétés\n";
print "Retourne la ligne suivante en tant qu'objet PDORow ayant les noms de colonnes comme propriétés\n";
$result = $sth->fetch(PDO::FETCH_LAZY);
print_r($result);
print "\n";
Expand Down Expand Up @@ -208,7 +209,7 @@ Array
[1] => yellow
)
PDO::FETCH_LAZY: Retourne la ligne suivante en tant qu'objet anonyme ayant les noms de colonnes comme propriétés PDORow Object
PDO::FETCH_LAZY: Retourne la ligne suivante en tant qu'objet PDORow ayant les noms de colonnes comme propriétés PDORow Object
(
[nom] => orange
[couleur] => orange
Expand Down
5 changes: 4 additions & 1 deletion reference/pdo_ibm/reference.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 68c2c871505aadf983f16113c5b077b335ce8d76 Maintainer: yannick Status: ready -->
<!-- EN-Revision: cecccfc4d621a2dd0b6d9a6c76443551a768d12a Maintainer: yannick Status: ready -->
<!-- Reviewed: no -->

<reference xml:id="ref.pdo-ibm" xmlns="http://docbook.org/ns/docbook">
Expand All @@ -18,7 +18,10 @@
</para>
</section>

<!-- Informations trouvées dans configure.xml -->
&reference.pdo-ibm.configure;
<!-- Informations trouvées dans ini.xml -->
&reference.pdo-ibm.ini;

</partintro>

Expand Down

0 comments on commit 95313ad

Please sign in to comment.