Browse Source

[DOCUMENTATION] Japanese sync 19606, 19452

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@19682 44c647ce-9c0f-0410-b52a-842ac1e357ba
yoshida@zend.co.jp 16 years ago
parent
commit
0743f92d57

+ 16 - 18
documentation/manual/ja/module_specs/Zend_Http_Client-Advanced.xml

@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <?xml version="1.0" encoding="UTF-8"?>
 <!-- Reviewed: no -->
 <!-- Reviewed: no -->
-<!-- EN-Revision: 19229 -->
+<!-- EN-Revision: 19452 -->
 <sect1 id="zend.http.client.advanced">
 <sect1 id="zend.http.client.advanced">
     <title>Zend_Http_Client - 高度な使用法</title>
     <title>Zend_Http_Client - 高度な使用法</title>
 
 
@@ -350,43 +350,41 @@ $_SESSION['cookiejar'] = $client->getCookieJar();
             supports reading data from files (and in general, PHP streams) and writing data to files (streams).  
             supports reading data from files (and in general, PHP streams) and writing data to files (streams).  
         </para>
         </para>
         <para>
         <para>
-         In order to use stream to pass data to <classname>Zend_Http_Client</classname>, 
-         use <methodname>setRawData()</methodname> method with data argument being stream resource
-         (e.g., result of <methodname>fopen()</methodname>).
+            In order to use stream to pass data to <classname>Zend_Http_Client</classname>,
+            use <methodname>setRawData()</methodname> method with data argument being stream resource
+            (e.g., result of <methodname>fopen()</methodname>).
             <example id="zend.http.client.streaming.example-1">
             <example id="zend.http.client.streaming.example-1">
                 <title>ストリーミングでHTTP サーバにファイルを送信</title>
                 <title>ストリーミングでHTTP サーバにファイルを送信</title>
                 <programlisting language="php"><![CDATA[
                 <programlisting language="php"><![CDATA[
-]]>
 $fp = fopen("mybigfile.zip", "r");
 $fp = fopen("mybigfile.zip", "r");
 $client->setRawData($fp, 'application/zip')->request('PUT');
 $client->setRawData($fp, 'application/zip')->request('PUT');
-</programlisting>
+]]></programlisting>
             </example>
             </example>
         </para>
         </para>
         <para>
         <para>
         Only PUT requests currently support sending streams to HTTP server.
         Only PUT requests currently support sending streams to HTTP server.
         </para>
         </para>
-        
+
         <para>
         <para>
         In order to receive data from the server as stream, use <methodname>setStream()</methodname>.
         In order to receive data from the server as stream, use <methodname>setStream()</methodname>.
-        Optional argument specifies the filename where the data will be stored. If the argument is just 
+        Optional argument specifies the filename where the data will be stored. If the argument is just
         TRUE (default), temporary file will be used and will be deleted once response object is destroyed.
         TRUE (default), temporary file will be used and will be deleted once response object is destroyed.
-        Setting argument to FALSE disables the streaming functionality.  
+        Setting argument to FALSE disables the streaming functionality.
         </para>
         </para>
-        
+
         <para>
         <para>
         When using streaming, <methodname>request()</methodname> method will return object of class
         When using streaming, <methodname>request()</methodname> method will return object of class
         <classname>Zend_Http_Client_Response_Stream</classname>, which has two useful methods:
         <classname>Zend_Http_Client_Response_Stream</classname>, which has two useful methods:
-        <methodname>getStreamName()</methodname> will return the name of the file where the response is stored, 
-        and <methodname>getStream()</methodname> will return stream from which the response could be read.   
+        <methodname>getStreamName()</methodname> will return the name of the file where the response is stored,
+        and <methodname>getStream()</methodname> will return stream from which the response could be read.
         </para>
         </para>
-        
+
         <para>
         <para>
-        You can either write the response to pre-defined file, or use temporary file for storing it and 
-        send it out or write it to another file using regular stream functions.  
+        You can either write the response to pre-defined file, or use temporary file for storing it and
+        send it out or write it to another file using regular stream functions.
         <example id="zend.http.client.streaming.example-2">
         <example id="zend.http.client.streaming.example-2">
                 <title>ストリーミングでHTTP サーバからファイルを受信</title>
                 <title>ストリーミングでHTTP サーバからファイルを受信</title>
                 <programlisting language="php"><![CDATA[
                 <programlisting language="php"><![CDATA[
-]]>
 $client->setStreaming(); // 一時ファイルを使用
 $client->setStreaming(); // 一時ファイルを使用
 $response = $client->request('GET');
 $response = $client->request('GET');
 // ファイルをコピー
 // ファイルをコピー
@@ -396,9 +394,9 @@ $fp = fopen("my/downloads/file2", "w");
 stream_copy_to_stream($response->getStream(), $fp);
 stream_copy_to_stream($response->getStream(), $fp);
 // 既知のファイルに書き出すこともできます
 // 既知のファイルに書き出すこともできます
 $client->setStreaming("my/downloads/myfile)->request('GET');
 $client->setStreaming("my/downloads/myfile)->request('GET');
-</programlisting>
+]]></programlisting>
             </example>
             </example>
         </para>
         </para>
-        
+
     </sect2>
     </sect2>
 </sect1>
 </sect1>

+ 25 - 17
documentation/manual/ja/module_specs/Zend_XmlRpc_Client.xml

@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <?xml version="1.0" encoding="UTF-8"?>
 <!-- Reviewed: no -->
 <!-- Reviewed: no -->
-<!-- EN-Revision: 19425 -->
+<!-- EN-Revision: 19606 -->
 <sect1 id="zend.xmlrpc.client">
 <sect1 id="zend.xmlrpc.client">
     <title>Zend_XmlRpc_Client</title>
     <title>Zend_XmlRpc_Client</title>
 
 
@@ -108,9 +108,9 @@ $result = $client->call('test.sayHello', array($arg1, $arg2));
             <para>
             <para>
                 <methodname>call()</methodname> のパラメータをネイティブの <acronym>PHP</acronym>
                 <methodname>call()</methodname> のパラメータをネイティブの <acronym>PHP</acronym>
                 型で渡します。つまり <type>String</type>、
                 型で渡します。つまり <type>String</type>、
-                <code>integer</code>、<code>float</code>、
+                <type>Integer</type>、<type>Float</type>、
                 <type>Boolean</type>、<type>Array</type> あるいは
                 <type>Boolean</type>、<type>Array</type> あるいは
-                <code>object</code> で渡すということです。
+                <type>Object</type> で渡すということです。
                 このとき、<acronym>PHP</acronym> のネイティブ型は自動的に検出され、
                 このとき、<acronym>PHP</acronym> のネイティブ型は自動的に検出され、
                 以下の表にしたがって <acronym>XML-RPC</acronym> 型に変換されます。
                 以下の表にしたがって <acronym>XML-RPC</acronym> 型に変換されます。
             </para>
             </para>
@@ -161,6 +161,14 @@ $result = $client->call('test.sayHello', array($arg1, $arg2));
                             <entry>object</entry>
                             <entry>object</entry>
                             <entry>array</entry>
                             <entry>array</entry>
                         </row>
                         </row>
+                        <row>
+                            <entry>Zend_Date</entry>
+                            <entry>dateTime.iso8601</entry>
+                        </row>
+                        <row>
+                            <entry>DateTime</entry>
+                            <entry>dateTime.iso8601</entry>
+                        </row>
                     </tbody>
                     </tbody>
                 </tgroup>
                 </tgroup>
             </table>
             </table>
@@ -173,14 +181,14 @@ $result = $client->call('test.sayHello', array($arg1, $arg2));
                     それが array と struct のどちらにでもとれるからです。
                     それが array と struct のどちらにでもとれるからです。
                     <classname>Zend_XmlRpc_Client</classname>
                     <classname>Zend_XmlRpc_Client</classname>
                     は、このような状況を検出した場合にはサーバの
                     は、このような状況を検出した場合にはサーバの
-                    <code>system.methodSignature</code>
+                    <command>system.methodSignature</command>
                     メソッドにリクエストを送り、どの <acronym>XML-RPC</acronym>
                     メソッドにリクエストを送り、どの <acronym>XML-RPC</acronym>
                     型に変換すべきかを判断します。
                     型に変換すべきかを判断します。
                 </para>
                 </para>
 
 
                 <para>
                 <para>
                     しかし、このやりかた自体にも別の問題があります。
                     しかし、このやりかた自体にも別の問題があります。
-                    まず、サーバが <code>system.methodSignature</code>
+                    まず、サーバが <command>system.methodSignature</command>
                     をサポートしていない場合には「リクエストに失敗した」
                     をサポートしていない場合には「リクエストに失敗した」
                     記録がサーバに残ってしまいます。この場合、
                     記録がサーバに残ってしまいます。この場合、
                     <classname>Zend_XmlRpc_Client</classname> は値を
                     <classname>Zend_XmlRpc_Client</classname> は値を
@@ -220,8 +228,8 @@ $result = $client->call('foo.bar', array(array()));
                     </listitem>
                     </listitem>
                     <listitem>
                     <listitem>
                         <para>
                         <para>
-                            プロシージャが <code>base64</code> 型や
-                            <code>dateTime.iso8601</code> 型を要求していることがある
+                            プロシージャが <property>base64</property> 型や
+                            <property>dateTime.iso8601</property> 型を要求していることがある
                             (これらは <acronym>PHP</acronym> のネイティブ型には存在しません)。
                             (これらは <acronym>PHP</acronym> のネイティブ型には存在しません)。
                         </para>
                         </para>
                     </listitem>
                     </listitem>
@@ -337,7 +345,7 @@ $result = $client->call('foo.bar', array(array()));
                         その値は <acronym>PHP</acronym> の型として設定されます。この <acronym>PHP</acronym> の型は、
                         その値は <acronym>PHP</acronym> の型として設定されます。この <acronym>PHP</acronym> の型は、
                         <acronym>PHP</acronym> のキャスト機能によって変換されます。
                         <acronym>PHP</acronym> のキャスト機能によって変換されます。
                         たとえば、<classname>Zend_XmlRpc_Value_Integer</classname>
                         たとえば、<classname>Zend_XmlRpc_Value_Integer</classname>
-                        に文字列を渡すと、<code>(int)$value</code>
+                        に文字列を渡すと、<command>(int)$value</command>
                         のように変換されます。
                         のように変換されます。
                     </para>
                     </para>
                 </note>
                 </note>
@@ -369,9 +377,9 @@ $result = $client->call('foo.bar', array(array()));
             <programlisting language="php"><![CDATA[
             <programlisting language="php"><![CDATA[
 $client = new Zend_XmlRpc_Client('http://framework.zend.com/xmlrpc');
 $client = new Zend_XmlRpc_Client('http://framework.zend.com/xmlrpc');
 
 
-$server = $client->getProxy();           // デフォルトの名前空間のプロキシを作成します
+$service = $client->getProxy();           // デフォルトの名前空間のプロキシを作成します
 
 
-$hello = $server->test->sayHello(1, 2);  // test.Hello(1, 2) は "hello" を返します
+$hello = $service->test->sayHello(1, 2);  // test.Hello(1, 2) は "hello" を返します
 ]]></programlisting>
 ]]></programlisting>
         </example>
         </example>
 
 
@@ -379,7 +387,7 @@ $hello = $server->test->sayHello(1, 2);  // test.Hello(1, 2) は "hello" を返
             <methodname>getProxy()</methodname> のオプションの引数で、
             <methodname>getProxy()</methodname> のオプションの引数で、
             リモートサーバのどの名前空間をプロキシするかを指定できます。
             リモートサーバのどの名前空間をプロキシするかを指定できます。
             名前空間を指定しなかった場合は、デフォルトの名前空間をプロキシします。
             名前空間を指定しなかった場合は、デフォルトの名前空間をプロキシします。
-            次の例では、<code>test</code> 名前空間がプロキシの対象となります。
+            次の例では、 'test' 名前空間がプロキシの対象となります。
         </para>
         </para>
 
 
         <example id="zend.xmlrpc.client.requests-and-responses.example-2">
         <example id="zend.xmlrpc.client.requests-and-responses.example-2">
@@ -396,8 +404,8 @@ $hello = $test->sayHello(1, 2);         // test.Hello(1,2) は "hello" を返し
         <para>
         <para>
             リモートサーバが入れ子状の名前空間をサポートしている場合は、
             リモートサーバが入れ子状の名前空間をサポートしている場合は、
             サーバプロキシでもそれを使用できます。たとえば、
             サーバプロキシでもそれを使用できます。たとえば、
-            上の例のサーバがメソッド <code>test.foo.bar()</code>
-            を保持している場合は、<code>$test->foo->bar()</code>
+            上の例のサーバがメソッド <command>test.foo.bar()</command>
+            を保持している場合は、<command>$test->foo->bar()</command>
             のようにコールします。
             のようにコールします。
         </para>
         </para>
     </sect2>
     </sect2>
@@ -416,7 +424,7 @@ $hello = $test->sayHello(1, 2);         // test.Hello(1,2) は "hello" を返し
             <para>
             <para>
                 <acronym>HTTP</acronym> エラーが発生した場合、
                 <acronym>HTTP</acronym> エラーが発生した場合、
                 つまり、たとえばリモート <acronym>HTTP</acronym> サーバが
                 つまり、たとえばリモート <acronym>HTTP</acronym> サーバが
-                <code>404 Not Found</code> を返したような場合に
+                <emphasis>404 Not Found</emphasis> を返したような場合に
                 <classname>Zend_XmlRpc_Client_HttpException</classname> がスローされます。
                 <classname>Zend_XmlRpc_Client_HttpException</classname> がスローされます。
             </para>
             </para>
 
 
@@ -506,7 +514,7 @@ try {
     <sect2 id="zend.xmlrpc.client.introspection">
     <sect2 id="zend.xmlrpc.client.introspection">
         <title>サーバのイントロスペクション</title>
         <title>サーバのイントロスペクション</title>
         <para>
         <para>
-            <acronym>XML-RPC</acronym> サーバの中には、<acronym>XML-RPC</acronym> の <code>system.</code> 名前空間で
+            <acronym>XML-RPC</acronym> サーバの中には、<acronym>XML-RPC</acronym> の <emphasis>system.</emphasis> 名前空間で
             デファクトのイントロスペクションメソッドをサポートしているものもあります。
             デファクトのイントロスペクションメソッドをサポートしているものもあります。
             <classname>Zend_XmlRpc_Client</classname> は、この機能を持つサーバもサポートしています。
             <classname>Zend_XmlRpc_Client</classname> は、この機能を持つサーバもサポートしています。
         </para>
         </para>
@@ -544,8 +552,8 @@ $request->setParams(array('foo', 'bar'));
 
 
 $client->doRequest($request);
 $client->doRequest($request);
 
 
-// $server->getLastRequest() は Zend_XmlRpc_Request のインスタンスを返します
-// $server->getLastResponse() は Zend_XmlRpc_Response のインスタンスを返します
+// $client->getLastRequest() は Zend_XmlRpc_Request のインスタンスを返します
+// $client->getLastResponse() は Zend_XmlRpc_Response のインスタンスを返します
 ]]></programlisting>
 ]]></programlisting>
         </example>
         </example>