Explorar el Código

[DOCUMENTATION] English:
- fix compilation error and programlisting line length

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@19674 44c647ce-9c0f-0410-b52a-842ac1e357ba

mikaelkael hace 16 años
padre
commit
d502ec21bd
Se han modificado 1 ficheros con 40 adiciones y 33 borrados
  1. 40 33
      documentation/manual/en/module_specs/Zend_XmlRpc_Server.xml

+ 40 - 33
documentation/manual/en/module_specs/Zend_XmlRpc_Server.xml

@@ -193,9 +193,11 @@ function myFunc($val1, $val2, $val3)
 ]]></programlisting>
 
         <note>
-            Allowing multiple signatures can lead to confusion for developers
-            using the services; to keep things simple, a <acronym>XML-RPC</acronym>
-            service method should only have a single signature.
+            <para>
+                Allowing multiple signatures can lead to confusion for developers
+                using the services; to keep things simple, a <acronym>XML-RPC</acronym>
+                service method should only have a single signature.
+            </para>
         </note>
     </sect2>
 
@@ -445,7 +447,10 @@ class Services_PricingService
 }
 
 $server = new Zend_XmlRpc_Server();
-$server->setClass('Services_PricingService', 'pricing', new ProductRepository(), new PurchaseRepository());
+$server->setClass('Services_PricingService',
+                  'pricing',
+                  new ProductRepository(),
+                  new PurchaseRepository());
 ]]></programlisting>
 
             <para>
@@ -495,9 +500,10 @@ class Services_PricingService2
 
 $server = new Zend_XmlRpc_Server();
 $server->sendArgumentsToAllMethods(false);
-$server->setClass('Services_PricingService2', 'pricing', new ProductRepository(), new PurchaseRepository());
-
-
+$server->setClass('Services_PricingService2',
+                  'pricing',
+                  new ProductRepository(),
+                  new PurchaseRepository());
 ]]></programlisting>
         </example>
 
@@ -672,11 +678,14 @@ $server->setResponseClass('Services_Response');
 echo $server->handle($request);
 ]]></programlisting>
 
-            <note>
-                The server cache file should be located outside the document root.
-            </note>
         </example>
 
+        <note>
+            <para>
+                The server cache file should be located outside the document root.
+            </para>
+        </note>
+
         <example id="zend.xmlrpc.server.performance.xmlgen">
 
             <title>Optimizing XML generation</title>
@@ -686,7 +695,7 @@ echo $server->handle($request);
                 <classname>DOMDocument</classname> of <acronym>PHP</acronym>
                 extension <code>ext/dom</code> to generate it's
                 <acronym>XML</acronym> output. While <code>ext/dom</code> is
-                available on a lot of hosts it is is not exactly the fastest.
+                available on a lot of hosts it is not exactly the fastest.
                 Benchmarks have shown, that <classname>XMLWriter</classname>
                 from <code>ext/xmlwriter</code> performs better.
             </para>
@@ -698,7 +707,6 @@ echo $server->handle($request);
             </para>
 
             <programlisting language="php"><![CDATA[
-<?php
 require_once 'Zend/XmlRpc/Server.php';
 require_once 'Zend/XmlRpc/Generator/XMLWriter.php';
 
@@ -707,31 +715,30 @@ Zend_XmlRpc_Value::setGenerator(new Zend_XmlRpc_Generator_XMLWriter());
 $server = new Zend_XmlRpc_Server();
 ...
 ]]></programlisting>
+        </example>
 
-            <note>
-                <title>Benchmark your application</title>
-
-                <para>
-                    Performance is determined by a lot of parameters and
-                    benchmarks only apply for the specific test case. Differences
-                    come from PHP version, installed extensions, webserver and
-                    operating system just to name a few. Please make sure to
-                    benchmark your application on your own and decide which
-                    generator to use based on <emphasis>your</emphasis> numbers.
-                </para>
-            </note>
+        <note>
+            <title>Benchmark your application</title>
 
-            <note>
-                <title>Benchmark your client</title>
+            <para>
+                Performance is determined by a lot of parameters and
+                benchmarks only apply for the specific test case. Differences
+                come from PHP version, installed extensions, webserver and
+                operating system just to name a few. Please make sure to
+                benchmark your application on your own and decide which
+                generator to use based on <emphasis>your</emphasis> numbers.
+            </para>
+        </note>
 
-                <para>
-                    This optimization makes sense for the client side too. Just
-                    select the alternate <acronym>XML</acronym> generator before
-                    doing any work with <classname>Zend_XmlRpc_Client</classname>.
-                </para>
-            </note>
+        <note>
+            <title>Benchmark your client</title>
 
-        </example>
+            <para>
+                This optimization makes sense for the client side too. Just
+                select the alternate <acronym>XML</acronym> generator before
+                doing any work with <classname>Zend_XmlRpc_Client</classname>.
+            </para>
+        </note>
     </sect2>
 </sect1>
 <!--