Skip to content

Commit 2bf8dba

Browse files
author
Yoshinari Takaoka
committed
Generate libxml methodsynopses based on stubs
Based on a patch contributed by Máté Kocsis <[email protected]>. git-svn-id: https://svn.php.net/repository/phpdoc/ja/trunk@351610 c90b9560-bf6c-de11-be94-00142212c4b1
1 parent abf428e commit 2bf8dba

File tree

4 files changed

+33
-13
lines changed

4 files changed

+33
-13
lines changed

reference/libxml/functions/libxml-get-last-error.xml

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: 96c9d88bad9a7d7d44bfb7f26c226df7ee9ddf26 Maintainer: hirokawa Status: ready -->
3+
<!-- EN-Revision: f90df97fa5ebfa6e7fcace04976900d6700467cc Maintainer: hirokawa Status: ready -->
44
<refentry xml:id="function.libxml-get-last-error" xmlns="http://docbook.org/ns/docbook">
55
<refnamediv>
66
<refname>libxml_get_last_error</refname>
@@ -11,7 +11,7 @@
1111
<refsect1 role="description">
1212
&reftitle.description;
1313
<methodsynopsis>
14-
<type>LibXMLError</type><methodname>libxml_get_last_error</methodname>
14+
<type class="union"><type>LibXMLError</type><type>false</type></type><methodname>libxml_get_last_error</methodname>
1515
<void/>
1616
</methodsynopsis>
1717
<para>
@@ -37,7 +37,6 @@
3737
</para>
3838
</refsect1>
3939
</refentry>
40-
4140
<!-- Keep this comment at the end of the file
4241
Local variables:
4342
mode: sgml

reference/libxml/functions/libxml-set-external-entity-loader.xml

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: fa994a739c769e155f6b6848f66f1f9a24ec9eb0 Maintainer: takagi Status: ready -->
3+
<!-- EN-Revision: f90df97fa5ebfa6e7fcace04976900d6700467cc Maintainer: takagi Status: ready -->
44

55
<refentry xml:id="function.libxml-set-external-entity-loader" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
66
<refnamediv>
@@ -12,7 +12,7 @@
1212
&reftitle.description;
1313
<methodsynopsis>
1414
<type>bool</type><methodname>libxml_set_external_entity_loader</methodname>
15-
<methodparam><type>callable</type><parameter>resolver_function</parameter></methodparam>
15+
<methodparam><type class="union"><type>callable</type><type>null</type></type><parameter>resolver_function</parameter></methodparam>
1616
</methodsynopsis>
1717
<para>
1818
デフォルトの外部エンティティローダーを変更します。
@@ -107,7 +107,6 @@ bool(true)
107107
</refsect1>
108108

109109
</refentry>
110-
111110
<!-- Keep this comment at the end of the file
112111
Local variables:
113112
mode: sgml

reference/libxml/functions/libxml-set-streams-context.xml

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: 96c9d88bad9a7d7d44bfb7f26c226df7ee9ddf26 Maintainer: hirokawa Status: ready -->
3+
<!-- EN-Revision: f90df97fa5ebfa6e7fcace04976900d6700467cc Maintainer: hirokawa Status: ready -->
44
<refentry xml:id="function.libxml-set-streams-context" xmlns="http://docbook.org/ns/docbook">
55
<refnamediv>
66
<refname>libxml_set_streams_context</refname>
@@ -12,7 +12,7 @@
1212
&reftitle.description;
1313
<methodsynopsis>
1414
<type>void</type><methodname>libxml_set_streams_context</methodname>
15-
<methodparam><type>resource</type><parameter>streams_context</parameter></methodparam>
15+
<methodparam><type>resource</type><parameter>context</parameter></methodparam>
1616
</methodsynopsis>
1717
<para>
1818
次のlibxmlドキュメントの読込/書きこみのためにストリームコンテキストを設定します。
@@ -24,7 +24,7 @@
2424
<para>
2525
<variablelist>
2626
<varlistentry>
27-
<term><parameter>streams_context</parameter></term>
27+
<term><parameter>context</parameter></term>
2828
<listitem>
2929
<para>
3030
ストリームコンテキストリソース(
@@ -80,7 +80,6 @@ $doc = DOMDocument::load('http://www.example.com/file.xml');
8080
</para>
8181
</refsect1>
8282
</refentry>
83-
8483
<!-- Keep this comment at the end of the file
8584
Local variables:
8685
mode: sgml

reference/libxml/functions/libxml-use-internal-errors.xml

+26-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: b8758b0605e80c4e3610137b7502a6abeea5c69b Maintainer: hirokawa Status: ready -->
3+
<!-- EN-Revision: f90df97fa5ebfa6e7fcace04976900d6700467cc Maintainer: hirokawa Status: ready -->
4+
<!-- Credits: mumumu -->
45
<refentry xml:id="function.libxml-use-internal-errors" xmlns="http://docbook.org/ns/docbook">
56
<refnamediv>
67
<refname>libxml_use_internal_errors</refname>
@@ -12,7 +13,7 @@
1213
&reftitle.description;
1314
<methodsynopsis>
1415
<type>bool</type><methodname>libxml_use_internal_errors</methodname>
15-
<methodparam choice="opt"><type>bool</type><parameter>use_errors</parameter><initializer>&false;</initializer></methodparam>
16+
<methodparam choice="opt"><type class="union"><type>bool</type><type>null</type></type><parameter>use_errors</parameter><initializer>&null;</initializer></methodparam>
1617
</methodsynopsis>
1718
<para>
1819
<function>libxml_use_internal_errors</function> により、
@@ -45,6 +46,29 @@
4546
</para>
4647
</refsect1>
4748

49+
<refsect1 role="changelog">
50+
&reftitle.changelog;
51+
<informaltable>
52+
<tgroup cols="2">
53+
<thead>
54+
<row>
55+
<entry>&Version;</entry>
56+
<entry>&Description;</entry>
57+
</row>
58+
</thead>
59+
<tbody>
60+
<row>
61+
<entry>8.0.0</entry>
62+
<entry>
63+
<parameter>use_errors</parameter> は、nullable になりました。
64+
これより前のバージョンでは、デフォルトは &false; でした。
65+
</entry>
66+
</row>
67+
</tbody>
68+
</tgroup>
69+
</informaltable>
70+
</refsect1>
71+
4872
<refsect1 role="examples">
4973
&reftitle.examples;
5074
<para>
@@ -95,7 +119,6 @@ bool(false)
95119
</para>
96120
</refsect1>
97121
</refentry>
98-
99122
<!-- Keep this comment at the end of the file
100123
Local variables:
101124
mode: sgml

0 commit comments

Comments
 (0)