Procházet zdrojové kódy

[DOCUMENT]sync en

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@24793 44c647ce-9c0f-0410-b52a-842ac1e357ba
yoshida@zend.co.jp před 13 roky
rodič
revize
40a5c7af4e

+ 4 - 2
documentation/manual/ja/module_specs/Zend_Controller-ActionHelpers.xml

@@ -250,8 +250,10 @@ if (Zend_Controller_Action_HelperBroker::hasHelper('redirector')) {
         <xi:include href="Zend_Controller-ActionHelpers-ActionStack.xml" />
         <xi:include href="Zend_Controller-ActionHelpers-ActionStack.xml" />
         <xi:include href="Zend_Controller-ActionHelpers-AutoComplete.xml" />
         <xi:include href="Zend_Controller-ActionHelpers-AutoComplete.xml" />
         <xi:include href="Zend_Controller-ActionHelpers-ContextSwitch.xml" />
         <xi:include href="Zend_Controller-ActionHelpers-ContextSwitch.xml" />
-        <xi:include href="Zend_Controller-ActionHelpers-FlashMessenger.xml" />
-        <xi:include href="Zend_Controller-ActionHelpers-Json.xml" >
+        <xi:include href="Zend_Controller-ActionHelpers-FlashMessenger.xml">
+            <xi:fallback><xi:include href="../../en/module_specs/Zend_Controller-ActionHelpers-FlashMessenger.xml" /></xi:fallback>
+        </xi:include>
+        <xi:include href="Zend_Controller-ActionHelpers-Json.xml">
             <xi:fallback><xi:include href="../../en/module_specs/Zend_Controller-ActionHelpers-Json.xml" /></xi:fallback>
             <xi:fallback><xi:include href="../../en/module_specs/Zend_Controller-ActionHelpers-Json.xml" /></xi:fallback>
         </xi:include>
         </xi:include>
         <xi:include href="Zend_Controller-ActionHelpers-Redirector.xml" />
         <xi:include href="Zend_Controller-ActionHelpers-Redirector.xml" />

+ 101 - 1
documentation/manual/ja/module_specs/Zend_Controller-Response.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: 24249 -->
+<!-- EN-Revision: 24783 -->
 <sect1 id="zend.controller.response">
 <sect1 id="zend.controller.response">
     <title>レスポンスオブジェクト</title>
     <title>レスポンスオブジェクト</title>
 
 
@@ -236,6 +236,106 @@ $front->dispatch();
             <methodname>setHttpResponseCode()</methodname> と
             <methodname>setHttpResponseCode()</methodname> と
             <methodname>getHttpResponseCode()</methodname> が用意されています。
             <methodname>getHttpResponseCode()</methodname> が用意されています。
         </para>
         </para>
+
+        <sect3 id="zend.controller.response.headers.setcookie">
+            <title>クッキーのヘッダーを設定</title>
+
+            <!-- TODO : to be translated -->
+            <para>
+                You can inject <acronym>HTTP</acronym> Set-Cookie headers into the response object
+                of an action controller by using the provided header class 
+                <classname>Zend_Http_Header_SetCookie</classname>
+            </para>
+
+            <sect3 id="zend.controller.response.headers.setcookie.constructor">
+                <title>Constructor Arguments</title>
+
+                <para>
+                    The following table lists all constructor arguments of 
+                    <classname>Zend_Http_Header_SetCookie</classname>
+                    in the order they are accepted.  All arguments are optional,
+                    but name and value must be supplied via their setters if not
+                    passed in via the constructor or the resulting Set-Cookie header
+                    be invalid.
+                </para>
+
+                <itemizedlist>
+                    <listitem>
+                        <para>
+                            <varname>$name</varname>: クッキーの名前
+                        </para>
+                    </listitem>
+                    <listitem>
+                        <para>
+                            <varname>$value</varname>: クッキーの値
+                        </para>
+                    </listitem>
+                    <listitem>
+                        <para>
+                            <varname>$expires</varname>: The time the cookie expires
+                        </para>
+                    </listitem>
+                    <listitem>
+                        <para>
+                            <varname>$path</varname>: The path on the server in which 
+                            the cookie will be available
+                        </para>
+                    </listitem>
+                    <listitem>
+                        <para>
+                            <varname>$domain</varname>: The domain to restrict cookie to
+                        </para>
+                    </listitem>
+                    <listitem>
+                        <para>
+                            <varname>$secure</varname>: boolean indicating whether cookie
+                            should be sent over an unencrypted connection (false) or via 
+                            <acronym>HTTPS</acronym> only (true)
+                        </para>
+                    </listitem>
+                    <listitem>
+                        <para>
+                            <varname>$httpOnly</varname>: boolean indicating whether cookie
+                            should be transmitted only via the <acronym>HTTP</acronym> protocol
+                        </para>
+                    </listitem>
+                    <listitem>
+                        <para>
+                            <varname>$maxAge</varname>: The maximum age of the cookie in seconds
+                        </para>
+                    </listitem>
+                    <listitem>
+                        <para>
+                            <varname>$version</varname>: The cookie specification version
+                        </para>
+                    </listitem>
+                </itemizedlist>
+            </sect3>
+ 
+            <example>
+                <title>Populate Zend_Http_Header_SetCookie via constructor and add to response</title>
+                <programlisting language="php"><![CDATA[
+$this->getResponse()->setRawHeader(new Zend_Http_Header_SetCookie(
+    'foo', 'bar', NULL, '/', 'example.com', false, true
+));
+]]></programlisting>
+            </example>
+
+            <example>
+                <title>Populate Zend_Http_Header_SetCookie via setters and add to response</title>
+                <programlisting language="php"><![CDATA[
+$cookie = new Zend_Http_Header_SetCookie();
+$cookie->setName('foo')
+       ->setValue('bar')
+       ->setDomain('example.com')
+       ->setPath('/')
+       ->setHttponly(true);
+$this->getResponse()->setRawHeader($cookie);
+]]></programlisting>
+            </example>
+
+        </sect3>
+
     </sect2>
     </sect2>
 
 
     <sect2 id="zend.controller.response.namedsegments">
     <sect2 id="zend.controller.response.namedsegments">

+ 1 - 1
documentation/manual/ja/module_specs/Zend_Gdata-Introduction.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: 24682 -->
+<!-- EN-Revision: 24777 -->
 <sect1 id="zend.gdata.introduction">
 <sect1 id="zend.gdata.introduction">
     <title>導入</title>
     <title>導入</title>
     <!-- Skip-EN-Revisions: 22744 -->
     <!-- Skip-EN-Revisions: 22744 -->

+ 3 - 4
documentation/manual/ja/module_specs/Zend_Service_Amazon.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: 24249 -->
+<!-- EN-Revision: 24782 -->
 <sect1 id="zend.service.amazon">
 <sect1 id="zend.service.amazon">
     <title>Zend_Service_Amazon(日本語)</title>
     <title>Zend_Service_Amazon(日本語)</title>
     <sect2 id="zend.service.amazon.introduction">
     <sect2 id="zend.service.amazon.introduction">
@@ -392,9 +392,7 @@ foreach ($results as $result) {
                             <row>
                             <row>
                                 <entry>ListmaniaLists</entry>
                                 <entry>ListmaniaLists</entry>
                                 <entry>array</entry>
                                 <entry>array</entry>
-                                <!-- TODO : to be translated -->
                                 <entry>
                                 <entry>
-                                    Item related Listmania Lists as an array of
                                     <code>
                                     <code>
                                         <link
                                         <link
                                             linkend="zend.service.amazon.classes.listmania">Zend_Service_Amazon_ListmainList</link>
                                             linkend="zend.service.amazon.classes.listmania">Zend_Service_Amazon_ListmainList</link>
@@ -594,8 +592,9 @@ foreach ($results as $result) {
                             <row>
                             <row>
                                 <entry>MerchantName</entry>
                                 <entry>MerchantName</entry>
                                 <entry>string</entry>
                                 <entry>string</entry>
+                                <entry>出品者の Amazon 名。
                                 <!-- TODO : to be translated -->
                                 <!-- TODO : to be translated -->
-                                <entry>Merchants Amazon Name.  Requires setting the <code>ResponseGroup</code> option to <code>OfferFull</code> to retrieve.</entry>
+                                Requires setting the <code>ResponseGroup</code> option to <code>OfferFull</code> to retrieve.</entry>
                             </row>
                             </row>
                             <row>
                             <row>
                                 <entry>GlancePage</entry>
                                 <entry>GlancePage</entry>