cvs: phpdoc-ja /reference/pdo reference.xml /reference/pdo/functions PDO-construct.xml /reference/spl/functions class-implements.xml
class-parents.xml
| From: | Hideyuki Shimooka | 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>
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>