cvs: phpdoc-ja /reference/pdo reference.xml /reference/pdo/functions PDO-construct.xml /reference/spl/functions class-implements.xml
class-parents.xml

From: Date: Sat, 13 Aug 2005 16:01:22 +0000
Subject: cvs: phpdoc-ja /reference/pdo reference.xml /reference/pdo/functions PDO-construct.xml /reference/spl/functions class-implements.xml
class-parents.xml
Groups: php.doc.ja 
Request: Send a blank email to doc-ja+get-1120@lists.php.net to get a copy of this message
shimooka Sat Aug 13 12:01:22 2005 EDT Modified files: /phpdoc-ja/reference/pdo reference.xml /phpdoc-ja/reference/pdo/functions PDO-construct.xml /phpdoc-ja/reference/spl/functions class-implements.xml class-parents.xml Log: translation updated

http://cvs.php.net/diff.php/phpdoc-ja/reference/pdo/reference.xml?r1=1.9&r2=1.10&ty=u Index: phpdoc-ja/reference/pdo/reference.xml diff -u phpdoc-ja/reference/pdo/reference.xml:1.9 phpdoc-ja/reference/pdo/reference.xml:1.10 --- phpdoc-ja/reference/pdo/reference.xml:1.9 Sun Jul 31 05:13:38 2005 +++ phpdoc-ja/reference/pdo/reference.xml Sat Aug 13 12:01:21 2005 @@ -1,6 +1,6 @@ <?xml version='1.0' encoding='utf-8'?> -<!-- $Revision: 1.9 $ --> -<!-- EN-Revision: 1.26 Maintainer: shimooka Status: ready --> +<!-- $Revision: 1.10 $ --> +<!-- EN-Revision: 1.28 Maintainer: shimooka Status: ready --> <!-- CREDITS: hirokawa --> <reference id="ref.pdo"> @@ -152,8 +152,8 @@ PDOエクステンションをマニュアルで構築し、インストールします。 <screen> <![CDATA[ -bash$ tar xzf PDO-0.2.tgz -bash$ cd PDO-0.2 +bash$ tar xzf PDO-0.9.tgz +bash$ cd PDO-0.9 bash$ phpize bash$ ./configure bash$ make @@ -166,6 +166,9 @@ </step> </procedure> </section> + + &reference.pdo.ini; + <section id="pdo.drivers"> <title>PDOドライバ</title> <para> @@ -180,36 +183,32 @@ </thead> <tbody> <row> - <entry>PDO_DBLIB</entry> + <entry><link linkend="ref.pdo-dblib">PDO_DBLIB</link></entry> <entry>FreeTDS / Microsoft SQL Server / Sybase</entry> </row> <row> - <entry>PDO_FIREBIRD</entry> + <entry><link linkend="ref.pdo-firebird">PDO_FIREBIRD</link></entry> <entry>Firebird/Interbase 6</entry> </row> <row> - <entry>PDO_MYSQL</entry> + <entry><link linkend="ref.pdo-mysql">PDO_MYSQL</link></entry> <entry>MySQL 3.x/4.0</entry> </row> <row> - <entry>PDO_OCI</entry> + <entry><link linkend="ref.pdo-oci">PDO_OCI</link></entry> <entry>Oracle Call Interface</entry> </row> <row> - <entry>PDO_ODBC</entry> - <entry>ODBC v3 (IBM DB2 と unixODBC)</entry> + <entry><link linkend="ref.pdo-odbc">PDO_ODBC</link></entry> + <entry>ODBC v3 (IBM DB2、unixODBC そして win32 ODBC)</entry> </row> <row> - <entry>PDO_PGSQL</entry> + <entry><link linkend="ref.pdo-pgsql">PDO_PGSQL</link></entry> <entry>PostgreSQL</entry> </row> <row> - <entry>PDO_SQLITE</entry> - <entry>SQLite 3.x</entry> - </row> - <row> - <entry>sqlite</entry> - <entry>SQLite 2.x (PHP 5.1 以降)</entry> + <entry><link linkend="ref.pdo-sqlite">PDO_SQLITE</link></entry> + <entry>SQLite 3 と SQLite 2</entry> </row> </tbody> </tgroup> http://cvs.php.net/diff.php/phpdoc-ja/reference/pdo/functions/PDO-construct.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-ja/reference/pdo/functions/PDO-construct.xml diff -u phpdoc-ja/reference/pdo/functions/PDO-construct.xml:1.4 phpdoc-ja/reference/pdo/functions/PDO-construct.xml:1.5 --- phpdoc-ja/reference/pdo/functions/PDO-construct.xml:1.4 Mon Jul 11 13:00:28 2005 +++ phpdoc-ja/reference/pdo/functions/PDO-construct.xml Sat Aug 13 12:01:22 2005 @@ -1,6 +1,6 @@ <?xml version='1.0' encoding='utf-8'?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.12 Maintainer: shimooka Status: ready --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.13 Maintainer: shimooka Status: ready --> <!-- CREDITS: hirokawa --> <refentry id="function.PDO-construct"> <refnamediv> @@ -35,92 +35,9 @@ </para> <para> 一般に、DSNはPDOドライバ名の後にコロンが続き、 - 各PDOドライバに固有の接続構文が続きます。 - 各ドライバの例を以下に示します。 - </para> - <para> - <variablelist> - <varlistentry> - <term><constant>PDO_DBLIB</constant></term> - <listitem> - <para> - DSN接頭時は、コンパイル時にリンクされたライブラリの種類により - <userinput>sybase:</userinput>または - <userinput>mssql:</userinput>となります。 - </para> - <para><userinput>sybase:host=localhost; dbname=testdb</userinput></para> - <para><userinput>mssql:host=localhost; dbname=testdb</userinput></para> - </listitem> - </varlistentry> - <varlistentry> - <term><constant>PDO_FIREBIRD</constant></term> - <listitem> - <para><userinput>firebird:User=john;Password=mypass;Database=DATABASE.GDE;DataSource=localhost;Port=3050</userinput></para> - </listitem> - </varlistentry> - <varlistentry> - <term><constant>PDO_MYSQL</constant></term> - <listitem> - <para><userinput>mysql:host=localhost;dbname=testdb</userinput></para> - </listitem> - </varlistentry> - <varlistentry> - <term><constant>PDO_OCI</constant></term> - <listitem> - <para><filename>tnsnames.ora</filename>を使用するには、以下のようにします:</para> - <para><userinput>oci:mydb</userinput></para> - <para>instantclientを使用するには、以下のようにします:</para> - <para><userinput>oci:dbname=//localhost:1521/testdb</userinput></para> - </listitem> - </varlistentry> - <varlistentry> - <term><constant>PDO_ODBC</constant></term> - <listitem> - <para><userinput>odbc:DSN=SAMPLE;UID=john;PWD=mypass</userinput></para> - <para>DSN=SAMPLE は ODBCドライバマネージャで設定されたSAMPLE データソースを参照します - </para> - </listitem> - </varlistentry> - <varlistentry> - <term><constant>PDO_PGSQL</constant></term> - <listitem> - <para><userinput>pgsql:host=localhost port=5432 dbname=testdb user=john password=mypass</userinput></para> - <para> - <varname>user</varname> と <varname>password</varname> をDSNで指定した場合、 - <parameter>username</parameter>および - <parameter>password</parameter>パラメータはオプションとなることに注意して - ください。 - これらを指定した場合、接続文字列の最後に追加されます。 - </para> - </listitem> - </varlistentry> - <varlistentry> - <term><constant>PDO_SQLITE</constant></term> - <listitem> - <para><userinput>sqlite:/path/to/database</userinput></para> - <para>データベースをメモリ上に作成する場合は、 - 以下のようにしてください:</para> - <para><userinput>sqlite::memory:</userinput></para> - </listitem> - </varlistentry> - <varlistentry> - <term><constant>sqlite (version 2)</constant></term> - <listitem> - <para><userinput>sqlite2:/path/to/database</userinput></para> - <para>データベースをメモリ上に作成する場合は、 - 以下のようにしてください:</para> - <para><userinput>sqlite2::memory:</userinput></para> - <note> - <para> - SQLite 2 PDO ドライバは、以前のバージョンの PHP - で作成した古い SQLite 2 データベースへのアクセス手段を提供します。 - この場合、より優れた機能やパフォーマンスのため、SQLite 3 - (PDO_SQLITE ドライバ) へマイグレーションする事が推奨されます。 - </para> - </note> - </listitem> - </varlistentry> - </variablelist> + 各PDOドライバに固有の接続構文が続きます。より多くの情報は + <link linkend="pdo.drivers">PDO driver-specific documentation</link> + にあります。 </para> <para> <parameter>dsn</parameter> パラメータは、データベースへの接続を生成する http://cvs.php.net/diff.php/phpdoc-ja/reference/spl/functions/class-implements.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-ja/reference/spl/functions/class-implements.xml diff -u phpdoc-ja/reference/spl/functions/class-implements.xml:1.2 phpdoc-ja/reference/spl/functions/class-implements.xml:1.3 --- phpdoc-ja/reference/spl/functions/class-implements.xml:1.2 Thu May 5 00:35:30 2005 +++ phpdoc-ja/reference/spl/functions/class-implements.xml Sat Aug 13 12:01:22 2005 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8" ?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.6 Maintainer: shimooka Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.9 Maintainer: shimooka Status: ready --> <refentry id="function.class-implements"> <refnamediv> <refname>class_implements</refname> @@ -34,6 +34,17 @@ </para> </listitem> </varlistentry> + <varlistentry> + <term><parameter>autoload</parameter></term> + <listitem> + <para> + <link linkend="language.oop5.autoload">__autoload</link> + マジックメソッドを通じて、 + この関数にクラスを自動的にロードさせるかどうかを指定します。 + デフォルトは &true; です。 + </para> + </listitem> + </varlistentry> </variablelist> </para> </refsect1> @@ -61,7 +72,9 @@ <row> <entry>5.1.0</entry> <entry> - 文字列としてパラメータを渡すオプションが追加されました。 + 文字列として <parameter>class</parameter> + パラメータを渡すオプションが追加されました。 + <parameter>autoload</parameter> パラメータが追加されました。 </entry> </row> </tbody> @@ -84,16 +97,32 @@ print_r(class_implements(new bar)); +// since PHP 5.1 you may also specify the parameter as a string +print_r(class_implements('bar')); + + +function __autoload($class_name) { + require_once $class_name . '.php'; +} + +// use __autoload to load the 'not_loaded' class +print_r(class_implements('not_loaded', true)); + ?> ]]> </programlisting> - &example.outputs; + &example.outputs.similar; <screen> <![CDATA[ Array ( [foo] => foo ) + +Array +( + [interface_of_not_loaded] => interface_of_not_loaded +) ]]> </screen> </example> http://cvs.php.net/diff.php/phpdoc-ja/reference/spl/functions/class-parents.xml?r1=1.2&r2=1.3&ty=u Index: phpdoc-ja/reference/spl/functions/class-parents.xml diff -u phpdoc-ja/reference/spl/functions/class-parents.xml:1.2 phpdoc-ja/reference/spl/functions/class-parents.xml:1.3 --- phpdoc-ja/reference/spl/functions/class-parents.xml:1.2 Thu May 5 00:35:30 2005 +++ phpdoc-ja/reference/spl/functions/class-parents.xml Sat Aug 13 12:01:22 2005 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8" ?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.4 Maintainer: shimooka Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.7 Maintainer: shimooka Status: ready --> <refentry id="function.class-parents"> <refnamediv> <refname>class_parents</refname> @@ -33,6 +33,17 @@ </para> </listitem> </varlistentry> + <varlistentry> + <term><parameter>autoload</parameter></term> + <listitem> + <para> + <link linkend="language.oop5.autoload">__autoload</link> + マジックメソッドを通じて、 + この関数にクラスを自動的にロードさせるかどうかを指定します。 + デフォルトは &true; です。 + </para> + </listitem> + </varlistentry> </variablelist> </para> </refsect1> @@ -59,7 +70,9 @@ <row> <entry>5.1.0</entry> <entry> - 文字列としてパラメータを渡すオプションが追加されました。 + 文字列として <parameter>class</parameter> + パラメータを渡すオプションが追加されました。 + <parameter>autoload</parameter> パラメータが追加されました。 </entry> </row> </tbody> @@ -82,16 +95,31 @@ print_r(class_parents(new bar)); +// since PHP 5.1 you may also specify the parameter as a string +print_r(class_parents('bar')); + + +function __autoload($class_name) { + require_once $class_name . '.php'; +} + +// use __autoload to load the 'not_loaded' class +print_r(class_parents('not_loaded', true)); ?> ]]> </programlisting> - &example.outputs; + &example.outputs.similar; <screen> <![CDATA[ Array ( [foo] => foo ) + +Array +( + [parent_of_not_loaded] => parent_of_not_loaded +) ]]> </screen> </example>
« previous php.doc.ja (#1120) next »