|
@@ -1,6 +1,6 @@
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
<!-- Reviewed: no -->
|
|
<!-- Reviewed: no -->
|
|
|
-<!-- EN-Revision: 24822 -->
|
|
|
|
|
|
|
+<!-- EN-Revision: 24997 -->
|
|
|
<sect1 id="zend.controller.response">
|
|
<sect1 id="zend.controller.response">
|
|
|
<title>レスポンスオブジェクト</title>
|
|
<title>レスポンスオブジェクト</title>
|
|
|
|
|
|
|
@@ -247,7 +247,7 @@ $front->dispatch();
|
|
|
<classname>Zend_Http_Header_SetCookie</classname>
|
|
<classname>Zend_Http_Header_SetCookie</classname>
|
|
|
</para>
|
|
</para>
|
|
|
|
|
|
|
|
- <sect3 id="zend.controller.response.headers.setcookie.constructor">
|
|
|
|
|
|
|
+ <sect4 id="zend.controller.response.headers.setcookie.constructor">
|
|
|
<title>コンストラクタの引数</title>
|
|
<title>コンストラクタの引数</title>
|
|
|
|
|
|
|
|
<para>
|
|
<para>
|
|
@@ -310,20 +310,19 @@ $front->dispatch();
|
|
|
</para>
|
|
</para>
|
|
|
</listitem>
|
|
</listitem>
|
|
|
</itemizedlist>
|
|
</itemizedlist>
|
|
|
- </sect3>
|
|
|
|
|
-
|
|
|
|
|
- <example>
|
|
|
|
|
- <title>Populate Zend_Http_Header_SetCookie via constructor and add to response</title>
|
|
|
|
|
- <programlisting language="php"><![CDATA[
|
|
|
|
|
|
|
+
|
|
|
|
|
+ <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(
|
|
$this->getResponse()->setRawHeader(new Zend_Http_Header_SetCookie(
|
|
|
'foo', 'bar', NULL, '/', 'example.com', false, true
|
|
'foo', 'bar', NULL, '/', 'example.com', false, true
|
|
|
));
|
|
));
|
|
|
]]></programlisting>
|
|
]]></programlisting>
|
|
|
- </example>
|
|
|
|
|
|
|
+ </example>
|
|
|
|
|
|
|
|
- <example>
|
|
|
|
|
- <title>Populate Zend_Http_Header_SetCookie via setters and add to response</title>
|
|
|
|
|
- <programlisting language="php"><![CDATA[
|
|
|
|
|
|
|
+ <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 = new Zend_Http_Header_SetCookie();
|
|
|
$cookie->setName('foo')
|
|
$cookie->setName('foo')
|
|
|
->setValue('bar')
|
|
->setValue('bar')
|
|
@@ -332,7 +331,8 @@ $cookie->setName('foo')
|
|
|
->setHttponly(true);
|
|
->setHttponly(true);
|
|
|
$this->getResponse()->setRawHeader($cookie);
|
|
$this->getResponse()->setRawHeader($cookie);
|
|
|
]]></programlisting>
|
|
]]></programlisting>
|
|
|
- </example>
|
|
|
|
|
|
|
+ </example>
|
|
|
|
|
+ </sect4>
|
|
|
|
|
|
|
|
</sect3>
|
|
</sect3>
|
|
|
|
|
|