Kaynağa Gözat

[DOCUMENTATION] French: sync manual

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@19935 44c647ce-9c0f-0410-b52a-842ac1e357ba
mikaelkael 16 yıl önce
ebeveyn
işleme
3b5674b8c5

+ 52 - 7
documentation/manual/fr/module_specs/Zend_Db_Select.xml

@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<!-- EN-Revision: 17409 -->
+<!-- EN-Revision: 19726 -->
 <!-- Reviewed: no -->
 <sect1 id="zend.db.select">
     <title>Zend_Db_Select</title>
@@ -739,12 +739,6 @@ $select = $db->select()
                 dans l'expression.
             </para>
 
-            <para>
-                Cette méthode accepte un seul paramètre. Si vous avez une expression dans
-                laquelle vous devez substituer plusieurs variables, vous devez formater la chaîne
-                manuellement, en interpolant les variables et en les échappant vous-même.
-            </para>
-
             <example id="zend.db.select.building.where.example-param">
                 <title>Exemple d'un paramètre dans la méthode where()</title>
 
@@ -764,6 +758,30 @@ $select = $db->select()
             </example>
 
             <para>
+                Vous pouvez fournir un tableau en tant que second paramètre de la méthode
+                <methodname>where()</methodname> quand vous utilisez l'opérateur SQL "IN".
+            </para>
+ 
+            <example id="zend.db.select.building.where.example-array">
+                <title>Exemple d'un paramètre de type tableau pour la méthode where()</title>
+
+                <programlisting language="php"><![CDATA[
+// Construire cette requête :
+//   SELECT produit_id, produit_nom, prix
+//   FROM "produits"
+//   WHERE (produit_id IN (1, 2, 3))
+
+$productIds = array(1, 2, 3);
+
+$select = $db->select()
+             ->from('produits',
+                    array('produit_id', 'produit_nom', 'prix'))
+             ->where('produit_id IN (?)', $productIds);
+]]></programlisting>
+
+            </example>
+
+            <para>
                 Vous pouvez appeler la méthode <methodname>where()</methodname> plusieurs fois sur la même
                 objet <classname>Zend_Db_Select</classname>. La requête résultante combine les
                 différents termes ensemble en utilisant <constant>AND</constant> entre eux.
@@ -1128,6 +1146,33 @@ $select = $db->select()
 ]]></programlisting>
             </example>
         </sect3>
+
+        <sect3 id="zend.db.select.building.union">
+            <title>Construire une requête UNION</title>
+
+            <para>
+                Vous pouvez construire des requêtes de type union avec
+                <classname>Zend_Db_Select</classname> en fournissant un tableau de
+                <classname>Zend_Db_Select</classname> ou de chaînes de requêtes SQL à la méthode
+                <methodname>union()</methodname>. En second paramètre, vous pouvez fournir les
+                constantes <constant>Zend_Db_Select::SQL_UNION</constant> ou
+                <constant>Zend_Db_Select::SQL_UNION_ALL</constant> pour spécifier le type d'union
+                que vous souhaitez réaliser.
+            </para>
+
+            <example id="zend.db.select.building.union.example">
+                <title>Exemple avec la méthode union()</title>
+
+                <programlisting language="php"><![CDATA[
+$sql1 = $db->select();
+$sql2 = "SELECT ...";
+
+$select = $db->select()
+    ->union(array($sql1, $sql2))
+    ->order("id");
+]]></programlisting>
+            </example>
+        </sect3>
     </sect2>
 
     <sect2 id="zend.db.select.execute">

+ 17 - 2
documentation/manual/fr/module_specs/Zend_Db_Table.xml

@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<!-- EN-Revision: 17175 -->
+<!-- EN-Revision: 19139 -->
 <!-- Reviewed: no -->
 <sect1 id="zend.db.table">
     <title>Zend_Db_Table</title>
@@ -753,11 +753,26 @@ $rows = $table->fetchAll('bug_status = "NEW"', 'bug_id ASC', 10, 0);
 $rows = $table->fetchAll($table->select()->where('bug_status = ?', 'NEW')
                                          ->order('bug_id ASC')
                                          ->limit(10, 0));
+// ou avec liaison :
+$rows = $table->fetchAll(
+    $table->select()
+        ->where('bug_status = :status')
+        ->bind(array(':status'=>'NEW')
+        ->order('bug_id ASC')
+        ->limit(10, 0)
+    );
 
 // Récupérer un row
 $row = $table->fetchRow('bug_status = "NEW"', 'bug_id ASC');
 $row = $table->fetchRow($table->select()->where('bug_status = ?', 'NEW')
                                         ->order('bug_id ASC'));
+// ou avec liaison :
+$row = $table->fetchRow(
+    $table->select()
+        ->where('bug_status = :status')
+        ->bind(array(':status'=>'NEW')
+        ->order('bug_id ASC')
+    );
 ]]></programlisting></para>
                     </warning>
                 </para>
@@ -879,7 +894,7 @@ $order  = 'bug_id';
 $count  = 10;
 $offset = 20;
 
-$select = $table->select()->where(array('bug_status = ?' => 'NEW'))
+$select = $table->select()->where('bug_status = ?', 'NEW')
                           ->order($order)
                           ->limit($count, $offset);
 

+ 1 - 1
documentation/manual/fr/module_specs/Zend_Db_Table_Row.xml

@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<!-- EN-Revision: 17175 -->
+<!-- EN-Revision: 18151 -->
 <!-- Reviewed: no -->
 <sect1 id="zend.db.table.row">
     <title>Zend_Db_Table_Row</title>

+ 1 - 1
documentation/manual/fr/module_specs/Zend_Db_Table_Rowset.xml

@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<!-- EN-Revision: 17175 -->
+<!-- EN-Revision: 18822 -->
 <!-- Reviewed: no -->
 <sect1 id="zend.db.table.rowset">
     <title>Zend_Db_Table_Rowset</title>

+ 3 - 3
documentation/manual/fr/module_specs/Zend_Feed-Importing.xml

@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="utf-8"?>
-<!-- EN-Revision: 17227 -->
+<!-- EN-Revision: 18274 -->
 <!-- Reviewed: no -->
 <sect1 id="zend.feed.importing">
     <title>Importer des flux</title>
@@ -335,11 +335,11 @@ $atomFeedFromArray =
 // la ligne suivante est équivalente à celle ci-dessus ;
 // par défaut l'instance Zend_Feed_Atom est retournée
 $atomFeedFromArray =
-    Zend_Feed::importArray(new Zend_Feed_Builder($array), 'atom');
+    Zend_Feed::importBuilder(new Zend_Feed_Builder($array), 'atom');
 
 // importe un flux rss à partir d'un constructeur personnalisé
 $rssFeedFromArray =
-    Zend_Feed::importArray(new Zend_Feed_Builder($array), 'rss');
+    Zend_Feed::importBuilder(new Zend_Feed_Builder($array), 'rss');
 ]]></programlisting>
 
         </sect3>

+ 21 - 1
documentation/manual/fr/module_specs/Zend_File_Transfer-Validators.xml

@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<!-- EN-Revision: 17232 -->
+<!-- EN-Revision: 17685 -->
 <!-- Reviewed: no -->
 <sect1 id="zend.file.transfer.validators">
     <title>Validateurs pour Zend_File_Transfer</title>
@@ -557,6 +557,16 @@ $upload->addValidator('ExcludeExtension', false, array('php', 'exe', 'case' => t
                     souhaitez exclure.
                 </para>
             </listitem>
+
+            <listitem>
+                <para>
+                    <code>headerCheck</code>&#160;: si spécifié à <constant>TRUE</constant>, cette
+                    option va vérifier l'information <acronym>HTTP</acronym> concernant le type de
+                    fichier quand les extensions <emphasis>fileInfo</emphasis> ou
+                    <emphasis>mimeMagic</emphasis> ne seront pas trouvées. La valeur par défaut de
+                    cette option est <constant>FALSE</constant>.
+                </para>
+            </listitem>
         </itemizedlist>
 
         <para>
@@ -1074,6 +1084,16 @@ $upload->addValidator('Md5', false, array('3b3652f336522365223', 'eb3365f3365ddc
             </listitem>
 
             <listitem>
+                <para>
+                    <code>headerCheck</code>&#160;: si spécifié à <constant>TRUE</constant>, cette
+                    option va vérifier l'information <acronym>HTTP</acronym> concernant le type de
+                    fichier quand les extensions <emphasis>fileInfo</emphasis> ou
+                    <emphasis>mimeMagic</emphasis> ne seront pas trouvées. La valeur par défaut de
+                    cette option est <constant>FALSE</constant>.
+                </para>
+            </listitem>
+
+            <listitem>
                 <para><code>magicfile</code>&#160;: le magicfile qui sera utilisé.</para>
 
                 <para>