Преглед на файлове

Fixing doc errors re multidb resource plugin (blame Mikaelkael for noticing(!))

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@20160 44c647ce-9c0f-0410-b52a-842ac1e357ba
freak преди 16 години
родител
ревизия
f6cbf36eb1
променени са 1 файла, в които са добавени 4 реда и са изтрити 22 реда
  1. 4 22
      documentation/manual/en/module_specs/Zend_Application-AvailableResources-Multidb.xml

+ 4 - 22
documentation/manual/en/module_specs/Zend_Application-AvailableResources-Multidb.xml

@@ -56,37 +56,18 @@ $defaultDb = $resource->getDb();
 ]]></programlisting>
    </example>
    
-       <example id="zend.application.available-resources.multidb.retrieveSpecificDb">
+       <example id="zend.application.available-resources.multidb.retrieveDefaultDb">
         <title>Retrieving the default database adapter</title>
 
         <para>
             Additionally, you can retrieve the default database adapter
             by using the method <methodname>getDefaultDb()</methodname>.
             If you have not set a default adapter, the first configured db
-            adapter will be returned. Unless you specify 
-            <!-- @TODO: Should I use 'acronym' here? - Freeaqingme -->
-            <acronym>false</acronym> as first parameter, then <acronym>null</acronym>
+            adapter will be returned. Unless you specify <constant>false</constant>
+            as first parameter, then <constant>null</constant>
             will be returned when no default database adapter was set.
          </para>   
 
-        <programlisting language="php"><![CDATA[
-$resource = $bootstrap->getPluginResource('multidb');
-$db1 = $resource->getDb('db1');
-$db2 = $resource->getDb('db2');
-$defaultDb = $resource->getDb();
-]]></programlisting>
-   </example>
-
-       <example id="zend.application.available-resources.multidb.retrieveDefaultDb">
-        <title>Retrieving the default database adapter</title>
-
-        <para>
-            Additionally, you can use
-            <methodname>getDefaultDb()</methodname> to retrieve the db that
-            was set as default. If you haven't set one, it will return the first
-            one in the stack.
-        </para>
-        
         <para>Below is an example that assumes the Multidb resource plugin has been configured
             with the INI sample above:</para>
 
@@ -99,4 +80,5 @@ $db1 = $resource->getDefaultDb();
 $null = $resource->getDefaultDb(false); // null
 ]]></programlisting>
     </example>
+    
 </sect2>