com doc/ja: added params intro for setRedirect: reference/yaf/tutorials.xml reference/yaf/yaf_plugin_abstract/routershutdown.xml re ference/yaf/yaf_response_abstract/setredirect.xml

[email protected] (Yoshinari Takaoka) Mon, 25 Jan 2021 15:24:52 +0000
Newsgroups php.doc.ja
Message-ID <[email protected]>
Commit:    ec6c98ea29300554bcd2b224f7ad07a83833cb05
Author:    Yoshinari Takaoka <[email protected]>         Tue, 26 Jan 2021 00:24:52 +0900
Parents:   9430c8959283dd8a3e90c990809f7ef9270261d3
Branches:  master

Link:       http://git.php.net/?p=doc/ja.git;a=commitdiff;h=ec6c98ea29300554bcd2b224f7ad07a83833cb05

Log:
added params intro for setRedirect

Changed paths:
  M  reference/yaf/tutorials.xml
  M  reference/yaf/yaf_plugin_abstract/routershutdown.xml
  M  reference/yaf/yaf_response_abstract/setredirect.xml


Diff:
diff --git a/reference/yaf/tutorials.xml b/reference/yaf/tutorials.xml
index 8449d41b13..2683d29d1d 100644
--- a/reference/yaf/tutorials.xml
+++ b/reference/yaf/tutorials.xml
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!-- $Revision$ -->
-<!-- EN-Revision: ac9f8fcf00acafbd6c2aca0b6327fbd96a115c26 Maintainer: takagi Status: ready -->
+<!-- EN-Revision: df549f5248a477d03a8b4ae538d47c8852b12890 Maintainer: takagi Status: ready -->
 
 <chapter xml:id="yaf.tutorials" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
  &reftitle.examples;
@@ -70,7 +70,7 @@ server {
   index  index.php index.html index.htm;
 
   if (!-e $request_filename) {
-    rewrite ^/(.*)  /index.php/$1 last;
+    rewrite ^/(.*)  /index.php$1 last;
   }
 }
 
diff --git a/reference/yaf/yaf_plugin_abstract/routershutdown.xml b/reference/yaf/yaf_plugin_abstract/routershutdown.xml
index c453033c40..86c975c5bd 100644
--- a/reference/yaf/yaf_plugin_abstract/routershutdown.xml
+++ b/reference/yaf/yaf_plugin_abstract/routershutdown.xml
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!-- $Revision$ -->
-<!-- EN-Revision: 356967704344fa01375a59a99ff856e2abe1400f Maintainer: takagi Status: ready -->
+<!-- EN-Revision: df549f5248a477d03a8b4ae538d47c8852b12890 Maintainer: takagi Status: ready -->
 
 <refentry xml:id="yaf-plugin-abstract.routershutdown" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
  <refnamediv>
@@ -20,8 +20,6 @@
     このフックは、ログインのチェックなどでよく使います。
   </para>
 
-  &warn.undocumented.func;
-
  </refsect1>
 
  <refsect1 role="parameters">
@@ -79,7 +77,7 @@ class UserInitPlugin extends Yaf_Plugin_Abstract {
         }
  
         /* Use access check failed, need to login */
-        $response->redirect("http://yourdomain.com/login/");
+        $response->setRedirect("http://yourdomain.com/login/");
         return FALSE;
     }
 ?>
diff --git a/reference/yaf/yaf_response_abstract/setredirect.xml b/reference/yaf/yaf_response_abstract/setredirect.xml
index e432cb3cf3..5adbaa0842 100644
--- a/reference/yaf/yaf_response_abstract/setredirect.xml
+++ b/reference/yaf/yaf_response_abstract/setredirect.xml
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!-- $Revision$ -->
-<!-- EN-Revision: 8b6d169424ff189bb563ef4c3f35f8adff3f42c5 Maintainer: takagi Status: ready -->
+<!-- EN-Revision: df549f5248a477d03a8b4ae538d47c8852b12890 Maintainer: takagi Status: ready -->
 
 <refentry xml:id="yaf-response-abstract.setredirect" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
  <refnamediv>
@@ -11,20 +11,26 @@
  <refsect1 role="description">
   &reftitle.description;
   <methodsynopsis>
-   <modifier>public</modifier> <type>void</type><methodname>Yaf_Response_Abstract::setRedirect</methodname>
-   <void />
+   <modifier>public</modifier> <type>bool</type><methodname>Yaf_Response_Abstract::setRedirect</methodname>
+   <methodparam><type>string</type><parameter>url</parameter></methodparam>
   </methodsynopsis>
   <para>
 
   </para>
 
-  &warn.undocumented.func;
-
  </refsect1>
 
  <refsect1 role="parameters">
   &reftitle.parameters;
-  &no.function.parameters;
+  <variablelist>
+   <varlistentry>
+    <term><parameter>url</parameter></term>
+    <listitem>
+     <para>
+      リダイレクト先のアドレス。
+     </para>
+    </listitem>
+   </varlistentry>
  </refsect1>
 
  <refsect1 role="returnvalues">