svn: /phpdoc/ja/trunk/reference/json/ functions/json-decode.xml functions/json-encode.xml functions/json-last-error-msg.xml jsonserializable/jsonserialize.xml

[email protected] (Yoshinari Takaoka)
Newsgroups php.doc.ja
Message-ID <[email protected]>
mumumu                                   Wed, 18 Nov 2020 23:45:32 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=351438

Log:
Generate json methodsynopses based on stubs

Based on a patch contributed by Máté Kocsis <[email protected]>.

Changed paths:
    U   phpdoc/ja/trunk/reference/json/functions/json-decode.xml
    U   phpdoc/ja/trunk/reference/json/functions/json-encode.xml
    U   phpdoc/ja/trunk/reference/json/functions/json-last-error-msg.xml
    U   phpdoc/ja/trunk/reference/json/jsonserializable/jsonserialize.xml
svn-diffs-351438.txt (text/x-diff, 9.6 KB)
Modified: phpdoc/ja/trunk/reference/json/functions/json-decode.xml
===================================================================
--- phpdoc/ja/trunk/reference/json/functions/json-decode.xml	2020-11-18 23:36:00 UTC (rev 351437)
+++ phpdoc/ja/trunk/reference/json/functions/json-decode.xml	2020-11-18 23:45:32 UTC (rev 351438)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!-- $Revision$ -->
-<!-- EN-Revision: 350654 Maintainer: takagi Status: ready -->
+<!-- EN-Revision: 351406 Maintainer: takagi Status: ready -->
 <!-- Credits: mumumu -->
 <refentry xml:id="function.json-decode" xmlns="http://docbook.org/ns/docbook">
  <refnamediv>
@@ -13,9 +13,9 @@
   <methodsynopsis>
    <type>mixed</type><methodname>json_decode</methodname>
    <methodparam><type>string</type><parameter>json</parameter></methodparam>
-   <methodparam choice="opt"><type>bool</type><parameter>assoc</parameter><initializer>&null;</initializer></methodparam>
+   <methodparam choice="opt"><type class="union"><type>bool</type><type>null</type></type><parameter>associative</parameter><initializer>&null;</initializer></methodparam>
    <methodparam choice="opt"><type>int</type><parameter>depth</parameter><initializer>512</initializer></methodparam>
-   <methodparam choice="opt"><type>int</type><parameter>options</parameter><initializer>0</initializer></methodparam>
+   <methodparam choice="opt"><type>int</type><parameter>flags</parameter><initializer>0</initializer></methodparam>
   </methodsynopsis>
   <para>
    JSON エンコードされた文字列を受け取り、それを
@@ -40,12 +40,12 @@
      </listitem>
     </varlistentry>
     <varlistentry>
-     <term><parameter>assoc</parameter></term>
+     <term><parameter>associative</parameter></term>
      <listitem>
       <para>
        &true; の場合、返されるオブジェクトは連想配列形式になります。
        &false; の場合、返されるオブジェクトは &object; になります。
-       &null; の場合、返されるオブジェクトは <parameter>options</parameter> に
+       &null; の場合、返されるオブジェクトは <parameter>flags</parameter> に
        <constant>JSON_OBJECT_AS_ARRAY</constant> が設定されているかどうかによって、
        連想配列形式か &object; かが変化します。
       </para>
@@ -60,7 +60,7 @@
      </listitem>
     </varlistentry>
     <varlistentry>
-     <term><parameter>options</parameter></term>
+     <term><parameter>flags</parameter></term>
      <listitem>
       <para>
        <constant>JSON_BIGINT_AS_STRING</constant>,
@@ -106,7 +106,7 @@
       <row>
        <entry>7.3.0</entry>
        <entry>
-        <parameter>options</parameter> パラメータに
+        <parameter>flags</parameter> パラメータに
         <constant>JSON_THROW_ON_ERROR</constant>
         が追加されました。
        </entry>
@@ -114,13 +114,13 @@
       <row>
        <entry>7.2.0</entry>
        <entry>
-        <parameter>assoc</parameter> は nullable になりました。
+        <parameter>associative</parameter> は nullable になりました。
        </entry>
       </row>
       <row>
        <entry>7.2.0</entry>
        <entry>
-        <parameter>options</parameter> パラメータに
+        <parameter>flags</parameter> パラメータに
         <constant>JSON_INVALID_UTF8_IGNORE</constant> および
         <constant>JSON_INVALID_UTF8_SUBSTITUTE</constant> が追加されました。
        </entry>
@@ -343,7 +343,6 @@
   </para>
  </refsect1>
 </refentry>
-
 <!-- Keep this comment at the end of the file
 Local variables:
 mode: sgml

Modified: phpdoc/ja/trunk/reference/json/functions/json-encode.xml
===================================================================
--- phpdoc/ja/trunk/reference/json/functions/json-encode.xml	2020-11-18 23:36:00 UTC (rev 351437)
+++ phpdoc/ja/trunk/reference/json/functions/json-encode.xml	2020-11-18 23:45:32 UTC (rev 351438)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!-- $Revision$ -->
-<!-- EN-Revision: 351135 Maintainer: takagi Status: ready -->
+<!-- EN-Revision: 351406 Maintainer: takagi Status: ready -->
 <!-- Credits: mumumu -->
 <refentry xml:id="function.json-encode" xmlns="http://docbook.org/ns/docbook">
  <refnamediv>
@@ -13,7 +13,7 @@
   <methodsynopsis>
    <type class="union"><type>string</type><type>false</type></type><methodname>json_encode</methodname>
    <methodparam><type>mixed</type><parameter>value</parameter></methodparam>
-   <methodparam choice="opt"><type>int</type><parameter>options</parameter><initializer>0</initializer></methodparam>
+   <methodparam choice="opt"><type>int</type><parameter>flags</parameter><initializer>0</initializer></methodparam>
    <methodparam choice="opt"><type>int</type><parameter>depth</parameter><initializer>512</initializer></methodparam>
   </methodsynopsis>
   <para>
@@ -20,7 +20,7 @@
    与えられた <parameter>value</parameter> を JSON 形式にした文字列を返します。
   </para>
   <para>
-   エンコーディングは、<parameter>options</parameter> の指定によって影響を受けます。
+   エンコーディングは、<parameter>flags</parameter> の指定によって影響を受けます。
    さらに、浮動小数点のエンコーディングは、
    <link linkend="ini.serialize-precision">serialize_precision</link>
    の値によっても影響を受けます。
@@ -45,7 +45,7 @@
      </listitem>
     </varlistentry>
     <varlistentry>
-     <term><parameter>options</parameter></term>
+     <term><parameter>flags</parameter></term>
      <listitem>
       <para>
        <constant>JSON_FORCE_OBJECT</constant>,
@@ -105,7 +105,7 @@
       <row>
        <entry>7.3.0</entry>
        <entry>
-        <parameter>options</parameter> パラメータに
+        <parameter>flags</parameter> パラメータに
         <constant>JSON_THROW_ON_ERROR</constant> が追加されました。
        </entry>
       </row>
@@ -112,7 +112,7 @@
       <row>
        <entry>7.2.0</entry>
        <entry>
-        <parameter>options</parameter> パラメータに
+        <parameter>flags</parameter> パラメータに
         <constant>JSON_INVALID_UTF8_IGNORE</constant> と
         <constant>JSON_INVALID_UTF8_SUBSTITUTE</constant> が追加されました。
        </entry>
@@ -120,7 +120,7 @@
       <row>
        <entry>7.1.0</entry>
        <entry>
-        <parameter>options</parameter> パラメータに
+        <parameter>flags</parameter> パラメータに
         <constant>JSON_UNESCAPED_LINE_TERMINATORS</constant> が追加されました。
        </entry>
       </row>
@@ -397,7 +397,6 @@
   </para>
  </refsect1>
 </refentry>
-
 <!-- Keep this comment at the end of the file
 Local variables:
 mode: sgml

Modified: phpdoc/ja/trunk/reference/json/functions/json-last-error-msg.xml
===================================================================
--- phpdoc/ja/trunk/reference/json/functions/json-last-error-msg.xml	2020-11-18 23:36:00 UTC (rev 351437)
+++ phpdoc/ja/trunk/reference/json/functions/json-last-error-msg.xml	2020-11-18 23:45:32 UTC (rev 351438)
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!-- $Revision$ -->
-<!-- EN-Revision: 351135 Maintainer: takagi Status: ready -->
-
+<!-- EN-Revision: 351406 Maintainer: takagi Status: ready -->
+<!-- Credits: mumumu -->
 <refentry xml:id="function.json-last-error-msg" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
  <refnamediv>
   <refname>json_last_error_msg</refname>
@@ -11,8 +11,8 @@
  <refsect1 role="description">
   &reftitle.description;
   <methodsynopsis>
-   <type class="union"><type>string</type><type>false</type></type><methodname>json_last_error_msg</methodname>
-   <void />
+   <type>string</type><methodname>json_last_error_msg</methodname>
+   <void/>
   </methodsynopsis>
   <para>
    呼び出しで <constant>JSON_THROW_ON_ERROR</constant> を指定しなかった場合、
@@ -30,8 +30,7 @@
  <refsect1 role="returnvalues">
   &reftitle.returnvalues;
   <para>
-   成功した場合にエラーメッセージ、エラーが発生しなかった場合は <literal>"No error"</literal>、
-   &return.falseforfailure;。
+   成功した場合にエラーメッセージ、エラーが発生しなかった場合は <literal>"No error"</literal>
   </para>
  </refsect1>

@@ -45,7 +44,6 @@
  </refsect1>

 </refentry>
-
 <!-- Keep this comment at the end of the file
 Local variables:
 mode: sgml

Modified: phpdoc/ja/trunk/reference/json/jsonserializable/jsonserialize.xml
===================================================================
--- phpdoc/ja/trunk/reference/json/jsonserializable/jsonserialize.xml	2020-11-18 23:36:00 UTC (rev 351437)
+++ phpdoc/ja/trunk/reference/json/jsonserializable/jsonserialize.xml	2020-11-18 23:45:32 UTC (rev 351438)
@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!-- $Revision$ -->
-<!-- EN-Revision: 347247 Maintainer: takagi Status: ready -->
-
+<!-- EN-Revision: 351406 Maintainer: takagi Status: ready -->
+<!-- Credits: mumumu -->
 <refentry xml:id="jsonserializable.jsonserialize" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
  <refnamediv>
   <refname>JsonSerializable::jsonSerialize</refname>
@@ -12,7 +12,7 @@
   &reftitle.description;
   <methodsynopsis>
    <modifier>abstract</modifier> <modifier>public</modifier> <type>mixed</type><methodname>JsonSerializable::jsonSerialize</methodname>
-   <void />
+   <void/>
   </methodsynopsis>
   <para>
    オブジェクトをシリアライズして、
@@ -160,7 +160,6 @@
   </para>
  </refsect1>
 </refentry>
-
 <!-- Keep this comment at the end of the file
 Local variables:
 mode: sgml
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.