Skip to content

[PHP 8.4] DBA resource to Object conversions #185

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Nov 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions reference/dba/book.xml
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 1634a886415d0ab4df195fe49d18a1c150b70758 Maintainer: takagi Status: ready -->
<!-- EN-Revision: 1a53c22773e4e08ab5b67ba3d4d91cc011047da5 Maintainer: takagi Status: ready -->
<!-- CREDITS: hirokawa -->

<book xml:id="book.dba" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<?phpdoc extension-membership="bundled" ?>
<title>データベース (dbm 形式) 抽象化レイヤ</title>
<titleabbrev>DBA</titleabbrev>

<!-- {{{ preface -->
<preface xml:id="intro.dba">
&reftitle.intro;
Expand All @@ -22,14 +21,17 @@
</para>
</preface>
<!-- }}} -->

&reference.dba.setup;
&reference.dba.constants;
&reference.dba.examples;

<!-- Dba\Connection class -->
&reference.dba.dba.connection;
<!-- dba_*() functions -->
&reference.dba.reference;

</book>

<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
Expand Down
57 changes: 57 additions & 0 deletions reference/dba/dba.connection.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 44428b04b7b046593e9ab33874eddd1fea7dfab1 Maintainer: Ippey Status: ready -->
<!-- CREDITS: ippey -->

<reference xml:id="class.dba-connection" role="class" xmlns="http://docbook.org/ns/docbook">
<title>Dba\Connection クラス</title>
<titleabbrev>Dba\Connection</titleabbrev>

<partintro>

<!-- {{{ Dba\Connection intro -->
<section xml:id="dba-connection.intro">
&reftitle.intro;
<para>
PHP 8.4.0 以降、 <literal>dba</literal> リソースを置き換える完全不透明クラスです。
</para>
</section>
<!-- }}} -->

<section xml:id="dba-connection.synopsis">
&reftitle.classsynopsis;

<!-- {{{ Synopsis -->
<classsynopsis class="class">
<ooclass>
<modifier>final</modifier>
<classname>Dba\Connection</classname>
</ooclass>
</classsynopsis>
<!-- }}} -->

</section>

</partintro>

</reference>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->
13 changes: 10 additions & 3 deletions reference/dba/functions/dba-open.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: e4faf426c06f29bef4b1fbd7043d56f4756a0a50 Maintainer: mumumu Status: ready -->
<!-- EN-Revision: 44428b04b7b046593e9ab33874eddd1fea7dfab1 Maintainer: mumumu Status: ready -->
<refentry xml:id="function.dba-open" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>dba_open</refname>
Expand All @@ -9,7 +9,7 @@
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type class="union"><type>resource</type><type>false</type></type><methodname>dba_open</methodname>
<type class="union"><type>Dba\Connection</type><type>false</type></type><methodname>dba_open</methodname>
<methodparam><type>string</type><parameter>path</parameter></methodparam>
<methodparam><type>string</type><parameter>mode</parameter></methodparam>
<methodparam choice="opt"><type class="union"><type>string</type><type>null</type></type><parameter>handler</parameter><initializer>&null;</initializer></methodparam>
Expand Down Expand Up @@ -217,7 +217,7 @@
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
成功した場合に正のハンドルを返します
成功した場合に <classname>Dba\Connection</classname> インスタンスを返します
&return.falseforfailure;。
</para>
</refsect1>
Expand All @@ -243,6 +243,13 @@
</row>
</thead>
<tbody>
<row>
<entry>8.4.0</entry>
<entry>
<classname>Dba\Connection</classname> インスタンスを返すようになりました。
以前は &resource; を返していました。
</entry>
</row>
<row>
<entry>8.2.0</entry>
<entry>
Expand Down
13 changes: 10 additions & 3 deletions reference/dba/functions/dba-popen.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 9264401165d31437c4afd80ec936f775ae23d367 Maintainer: mumumu Status: ready -->
<!-- EN-Revision: 44428b04b7b046593e9ab33874eddd1fea7dfab1 Maintainer: mumumu Status: ready -->
<refentry xml:id="function.dba-popen" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>dba_popen</refname>
Expand All @@ -9,7 +9,7 @@
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type class="union"><type>resource</type><type>false</type></type><methodname>dba_popen</methodname>
<type class="union"><type>Dba\Connection</type><type>false</type></type><methodname>dba_popen</methodname>
<methodparam><type>string</type><parameter>path</parameter></methodparam>
<methodparam><type>string</type><parameter>mode</parameter></methodparam>
<methodparam choice="opt"><type class="union"><type>string</type><type>null</type></type><parameter>handler</parameter><initializer>&null;</initializer></methodparam>
Expand Down Expand Up @@ -110,7 +110,7 @@
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
成功した場合に正のハンドルを返します
成功した場合に <classname>Dba\Connection</classname> インスタンスを返します
&return.falseforfailure;。
</para>
</refsect1>
Expand All @@ -136,6 +136,13 @@
</row>
</thead>
<tbody>
<row>
<entry>8.4.0</entry>
<entry>
<classname>Dba\Connection</classname> インスタンスを返すようになりました。
以前は &resource; を返していました。
</entry>
</row>
<row>
<entry>8.2.0</entry>
<entry>
Expand Down