Skip to content

Commit b4a510b

Browse files
[PHP 8.4] DBA resource to Object conversions (#185)
* DBAの翻訳 * class.dba-connection ページタイトルの翻訳 * php/doc-en@1a53c22 をチェリーピックで翻訳追加 --------- Co-authored-by: 武田 憲太郎 <[email protected]>
1 parent a2d89e1 commit b4a510b

File tree

4 files changed

+84
-11
lines changed

4 files changed

+84
-11
lines changed

reference/dba/book.xml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: 1634a886415d0ab4df195fe49d18a1c150b70758 Maintainer: takagi Status: ready -->
3+
<!-- EN-Revision: 1a53c22773e4e08ab5b67ba3d4d91cc011047da5 Maintainer: takagi Status: ready -->
44
<!-- CREDITS: hirokawa -->
5-
65
<book xml:id="book.dba" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
76
<?phpdoc extension-membership="bundled" ?>
87
<title>データベース (dbm 形式) 抽象化レイヤ</title>
98
<titleabbrev>DBA</titleabbrev>
10-
9+
1110
<!-- {{{ preface -->
1211
<preface xml:id="intro.dba">
1312
&reftitle.intro;
@@ -22,14 +21,17 @@
2221
</para>
2322
</preface>
2423
<!-- }}} -->
25-
24+
2625
&reference.dba.setup;
2726
&reference.dba.constants;
2827
&reference.dba.examples;
28+
29+
<!-- Dba\Connection class -->
30+
&reference.dba.dba.connection;
31+
<!-- dba_*() functions -->
2932
&reference.dba.reference;
3033

3134
</book>
32-
3335
<!-- Keep this comment at the end of the file
3436
Local variables:
3537
mode: sgml

reference/dba/dba.connection.xml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!-- $Revision$ -->
3+
<!-- EN-Revision: 44428b04b7b046593e9ab33874eddd1fea7dfab1 Maintainer: Ippey Status: ready -->
4+
<!-- CREDITS: ippey -->
5+
6+
<reference xml:id="class.dba-connection" role="class" xmlns="http://docbook.org/ns/docbook">
7+
<title>Dba\Connection クラス</title>
8+
<titleabbrev>Dba\Connection</titleabbrev>
9+
10+
<partintro>
11+
12+
<!-- {{{ Dba\Connection intro -->
13+
<section xml:id="dba-connection.intro">
14+
&reftitle.intro;
15+
<para>
16+
PHP 8.4.0 以降、 <literal>dba</literal> リソースを置き換える完全不透明クラスです。
17+
</para>
18+
</section>
19+
<!-- }}} -->
20+
21+
<section xml:id="dba-connection.synopsis">
22+
&reftitle.classsynopsis;
23+
24+
<!-- {{{ Synopsis -->
25+
<classsynopsis class="class">
26+
<ooclass>
27+
<modifier>final</modifier>
28+
<classname>Dba\Connection</classname>
29+
</ooclass>
30+
</classsynopsis>
31+
<!-- }}} -->
32+
33+
</section>
34+
35+
</partintro>
36+
37+
</reference>
38+
<!-- Keep this comment at the end of the file
39+
Local variables:
40+
mode: sgml
41+
sgml-omittag:t
42+
sgml-shorttag:t
43+
sgml-minimize-attributes:nil
44+
sgml-always-quote-attributes:t
45+
sgml-indent-step:1
46+
sgml-indent-data:t
47+
indent-tabs-mode:nil
48+
sgml-parent-document:nil
49+
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
50+
sgml-exposed-tags:nil
51+
sgml-local-catalogs:nil
52+
sgml-local-ecat-files:nil
53+
End:
54+
vim600: syn=xml fen fdm=syntax fdl=2 si
55+
vim: et tw=78 syn=sgml
56+
vi: ts=1 sw=1
57+
-->

reference/dba/functions/dba-open.xml

Lines changed: 10 additions & 3 deletions
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: e4faf426c06f29bef4b1fbd7043d56f4756a0a50 Maintainer: mumumu Status: ready -->
3+
<!-- EN-Revision: 44428b04b7b046593e9ab33874eddd1fea7dfab1 Maintainer: mumumu Status: ready -->
44
<refentry xml:id="function.dba-open" xmlns="http://docbook.org/ns/docbook">
55
<refnamediv>
66
<refname>dba_open</refname>
@@ -9,7 +9,7 @@
99
<refsect1 role="description">
1010
&reftitle.description;
1111
<methodsynopsis>
12-
<type class="union"><type>resource</type><type>false</type></type><methodname>dba_open</methodname>
12+
<type class="union"><type>Dba\Connection</type><type>false</type></type><methodname>dba_open</methodname>
1313
<methodparam><type>string</type><parameter>path</parameter></methodparam>
1414
<methodparam><type>string</type><parameter>mode</parameter></methodparam>
1515
<methodparam choice="opt"><type class="union"><type>string</type><type>null</type></type><parameter>handler</parameter><initializer>&null;</initializer></methodparam>
@@ -217,7 +217,7 @@
217217
<refsect1 role="returnvalues">
218218
&reftitle.returnvalues;
219219
<para>
220-
成功した場合に正のハンドルを返します
220+
成功した場合に <classname>Dba\Connection</classname> インスタンスを返します
221221
&return.falseforfailure;
222222
</para>
223223
</refsect1>
@@ -243,6 +243,13 @@
243243
</row>
244244
</thead>
245245
<tbody>
246+
<row>
247+
<entry>8.4.0</entry>
248+
<entry>
249+
<classname>Dba\Connection</classname> インスタンスを返すようになりました。
250+
以前は &resource; を返していました。
251+
</entry>
252+
</row>
246253
<row>
247254
<entry>8.2.0</entry>
248255
<entry>

reference/dba/functions/dba-popen.xml

Lines changed: 10 additions & 3 deletions
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: 9264401165d31437c4afd80ec936f775ae23d367 Maintainer: mumumu Status: ready -->
3+
<!-- EN-Revision: 44428b04b7b046593e9ab33874eddd1fea7dfab1 Maintainer: mumumu Status: ready -->
44
<refentry xml:id="function.dba-popen" xmlns="http://docbook.org/ns/docbook">
55
<refnamediv>
66
<refname>dba_popen</refname>
@@ -9,7 +9,7 @@
99
<refsect1 role="description">
1010
&reftitle.description;
1111
<methodsynopsis>
12-
<type class="union"><type>resource</type><type>false</type></type><methodname>dba_popen</methodname>
12+
<type class="union"><type>Dba\Connection</type><type>false</type></type><methodname>dba_popen</methodname>
1313
<methodparam><type>string</type><parameter>path</parameter></methodparam>
1414
<methodparam><type>string</type><parameter>mode</parameter></methodparam>
1515
<methodparam choice="opt"><type class="union"><type>string</type><type>null</type></type><parameter>handler</parameter><initializer>&null;</initializer></methodparam>
@@ -110,7 +110,7 @@
110110
<refsect1 role="returnvalues">
111111
&reftitle.returnvalues;
112112
<para>
113-
成功した場合に正のハンドルを返します
113+
成功した場合に <classname>Dba\Connection</classname> インスタンスを返します
114114
&return.falseforfailure;
115115
</para>
116116
</refsect1>
@@ -136,6 +136,13 @@
136136
</row>
137137
</thead>
138138
<tbody>
139+
<row>
140+
<entry>8.4.0</entry>
141+
<entry>
142+
<classname>Dba\Connection</classname> インスタンスを返すようになりました。
143+
以前は &resource; を返していました。
144+
</entry>
145+
</row>
139146
<row>
140147
<entry>8.2.0</entry>
141148
<entry>

0 commit comments

Comments
 (0)