Просмотр исходного кода

[docs] English&French ZF-10033 | Zend_App_Resource_Db | Supplied by Benoît Durand

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@22631 44c647ce-9c0f-0410-b52a-842ac1e357ba
freak 15 лет назад
Родитель
Сommit
35e5393251

+ 10 - 0
documentation/manual/en/module_specs/Zend_Application-AvailableResources-Db.xml

@@ -38,6 +38,13 @@
                 establish this adapter as the default table adapter.
             </para>
         </listitem>
+
+        <listitem>
+            <para>
+                <emphasis><property>defaultMetadataCache</property></emphasis>: the name of the cache 
+                template or an instance of Zend_Cache_Core to use as metadata cache for Zend_Db_Table.
+            </para>
+        </listitem>
     </itemizedlist>
 
     <example id="zend.application.available-resources.db.configExample">
@@ -56,6 +63,9 @@ resources.db.params.username = "webuser"
 resources.db.params.password = "XXXXXXX"
 resources.db.params.dbname = "test"
 resources.db.isDefaultTableAdapter = true
+
+; Optionally you can also the cache template to use for metadata caching:
+resources.db.defaultMetadataCache = "database"
 ]]></programlisting>
     </example>
 

+ 9 - 0
documentation/manual/fr/module_specs/Zend_Application-AvailableResources-Db.xml

@@ -33,6 +33,12 @@
             <emphasis><property>isDefaultTableAdapter</property></emphasis>&#160;: spécifie
             si l'adaptateur est celui par défaut des tables.
         </para></listitem>
+
+        <listitem><para>
+            <emphasis><property>defaultMetadataCache</property></emphasis>: spécifie
+            le nom d'un modèle du gestionnaire de cache ou l'objet de cache pour les méta-données
+            pour toutes les tables.
+        </para></listitem>
     </itemizedlist>
 
     <example id="zend.application.available-resources.db.configExample">
@@ -51,6 +57,9 @@ resources.db.params.username = "webuser"
 resources.db.params.password = "XXXXXXX"
 resources.db.params.dbname = "test"
 resources.db.isDefaultTableAdapter = true
+
+; Optionnellement, on peut utiliser un modèle du gestionnaire de cache:
+resources.db.defaultMetadataCache = "database"
 ]]></programlisting>
     </example>