cvs: phpdoc /ja Translators /ja/functions errorfunc.xml funchand.xml ingres_ii.xml var.xml xslt.xml

From: Date: Sun, 26 Nov 2000 12:47:22 +0000
Subject: cvs: phpdoc /ja Translators /ja/functions errorfunc.xml funchand.xml ingres_ii.xml var.xml xslt.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969333078@lists.php.net to get a copy of this message
hirokawa Sun Nov 26 04:47:22 2000 EDT Modified files: /phpdoc/ja Translators /phpdoc/ja/functions errorfunc.xml funchand.xml ingres_ii.xml var.xml xslt.xml Log: update translations.

Index: phpdoc/ja/Translators diff -u phpdoc/ja/Translators:1.14 phpdoc/ja/Translators:1.15 --- phpdoc/ja/Translators:1.14 Mon Nov 13 13:41:00 2000 +++ phpdoc/ja/Translators Sun Nov 26 04:47:14 2000 @@ -60,6 +60,7 @@ functions/image.xml Chihiro Higuchi functions/imap.xml Michihide Hotta functions/info.xml Michihide Hotta +functions/ingres_ii.xml Rui Hirokawa functions/mail.xml Rui Hirokawa functions/math.xml Machino Satoshi functions/mcal.xml Rui Hirokawa Index: phpdoc/ja/functions/errorfunc.xml diff -u phpdoc/ja/functions/errorfunc.xml:1.3 phpdoc/ja/functions/errorfunc.xml:1.4 --- phpdoc/ja/functions/errorfunc.xml:1.3 Sun Nov 19 15:00:22 2000 +++ phpdoc/ja/functions/errorfunc.xml Sun Nov 26 04:47:14 2000 @@ -445,7 +445,7 @@ <para> ユーザハンドラ関数は、要すれば <function>die</function> をコール する責任があることにも注意を要します。エラーハンドラ関数がリター - ンした場合、スクƒªãƒ—トの実行は、エラーを発生した命令の次の命令に + ンした場合、スクªãƒ—トの実行は、エラーを発生した命令の次の命令に 継続されます。 </para> <para> @@ -478,11 +478,15 @@ <para> ユーザエラーを発生するために使用され、組込のエラーハンドラまたは 新しいエラーハンドラ(<function>set_error_handler</function>)とし - て設定済のユーザ定義関数と組み合わせて使用されます。この関数は、 - 実行時の例外に特定の応答を生成する必要がある場合に有用です。 - 以下に例を示します。 + て設定済のユーザ定義関数と組み合わせて使用されます。エラー型には + E_USER 関連の定数のみが使用可能で、デフォルトは + <constant>E_USER_NOTICE</constant>となっています。 + </para> + <para> + この関数は、実行時の例外に特定の応答を生成する必要がある場合に有 + 用です。以下に例を示します。 <informalexample> - <programlisting> + <programlisting role="php"> if (assert($divisor == 0)) trigger_error("Cannot divide by zero", E_USER_ERROR); </programlisting> Index: phpdoc/ja/functions/funchand.xml diff -u phpdoc/ja/functions/funchand.xml:1.1 phpdoc/ja/functions/funchand.xml:1.2 --- phpdoc/ja/functions/funchand.xml:1.1 Sat Sep 9 22:15:50 2000 +++ phpdoc/ja/functions/funchand.xml Sun Nov 26 04:47:20 2000 @@ -359,10 +359,23 @@ <paramdef>string <parameter>function_name</parameter></paramdef> </funcprototype> </funcsynopsis> - <simpara> - <parameter>function_name</parameter> について定義された関数のリストを - 確認します。指定した関数名がある場合にtrue、他の場合にfalseを返します。 - </simpara> + <para> + <parameter>function_name</parameter> について定義された関数のリス + トを確認します。指定した関数名がある場合にtrue、他の場合にfalseを + 返します。 + <informalexample> + <programlisting role="php"> +if (function_exists('imap_open')) { + echo "IMAP 関数が利用可能です。&lt;br&gt;\n"; +} else { + echo "IMAP 関数は利用できません。&lt;br&gt;\n"; +} + </programlisting> + </informalexample> + </para> + <para> + <function>method_exists</function> も参照下さい。 + </para> </refsect1> </refentry> Index: phpdoc/ja/functions/ingres_ii.xml diff -u phpdoc/ja/functions/ingres_ii.xml:1.1 phpdoc/ja/functions/ingres_ii.xml:1.2 --- phpdoc/ja/functions/ingres_ii.xml:1.1 Mon Nov 20 13:08:39 2000 +++ phpdoc/ja/functions/ingres_ii.xml Sun Nov 26 04:47:20 2000 @@ -1,37 +1,39 @@ <reference id="ref.ingres"> - <title>Ingres II functions</title> + <title>Ingres II 関数</title> <titleabbrev>Ingres II</titleabbrev> <partintro> <simpara> - These functions allow you to access Ingres II database servers. + これらの関数により、Ingres II データベースサーバにアクセスできるよ + うになります。 </simpara> <simpara> - In order to have these functions available, you must compile php - with Ingres support by using the - <option role="configure">--with-ingres</option> option. - You need the Open API library and header files included with - Ingres II. If the II_SYSTEM environment variable isn't correctly - set you may have to use - <option role="configure">--with-ingres=DIR</option> - to specify your Ingres installation directory. + これらの関数を利用可能とするには、オプション + <option role="configure">--with-ingres</option> を付けて Ingres サ + ポートを有効にしてPHPをコンパイルする必要があります。コンパイルに + は、Ingres II に含まれる Open API ライブラリとヘッダが必要です。 + 環境変数 II_SYSTEM が正確に設定されていない場合、Ingres がインストー + ルされたディレクトリを指定するために + <option role="configure">--with-ingres=DIR</option> を使用する必要 + があるかもしれません。 </simpara> <simpara> - When using this extension with Apache, if Apache does not start - and complains with "PHP Fatal error: Unable to start - ingres_ii module in Unknown on line 0" - then make sure the environement variable II_SYSTEM is correctly - set. Adding "export II_SYSTEM="/home/ingres/II" in the script - that starts Apache, just before launching httpd, should be fine. + この拡張モジュールを Apache で使用する際に Apache が起動せず、 + "PHP Fatal error: Unable to start + ingres_ii module in Unknown on line 0" というエラーが発生する場合、 + 環境変数 II_SYSTEM が正確に設定されているかどうかを確認して下さい。 + "export II_SYSTEM="/home/ingres/II" を Apache を開始するスクリプト + に追加して下さい。この後、httpd を起動すれば、うまくいくはずです。 </simpara> <note> <para> - If you already used PHP extensions to access other database servers, - note that Ingres doesn't allow concurrent queries and/or transaction - over one connection, thus you won't find any result or transaction - handle in this extension. The result of a query must be treated - before sending another query, and a transaction must be commited or - rolled back before opening another transaction (which is automaticaly - done when sending the first query). + 他のデータベースサーバにアクセスするために既にPHP 拡張モジュール + を使用している場合、Ingres は同一のコネクションについて複数のクエ + リやトランザクションの並列実行ができない、つまり、この拡張モジュー + ルにおいて結果およびトランザクションのハンドルを得ることができない + ことに注意する必要があります。クエリの結果は、別のクエリを送信す + る前に処理する必要があり、トランザクションは別のトランザクション + をオープンする前にコミットまたはロールバックする必要があります。 + (これは、最初のクエリを送信する際に自動的に行われます) </para> </note> </partintro> @@ -39,10 +41,10 @@ <refentry id="function.ingres-connect"> <refnamediv> <refname>ingres_connect</refname> - <refpurpose>Open a connection to an Ingres II database.</refpurpose> + <refpurpose>Ingres II データベースへの接続をオープンする</refpurpose> </refnamediv> <refsect1> - <title>Description</title> + <title>説明</title> <funcsynopsis> <funcprototype> <funcdef>resource <function>ingres_connect</function></funcdef> @@ -58,55 +60,59 @@ </funcprototype> </funcsynopsis> <para> - Returns a Ingres II link resource on success, or false on failure. + 成功時に Ingres II リンクリソース、失敗した際に false を返します。 </para> <para> - <function>ingres_connect</function> opens a connection with the - Ingres database designated by <parameter>database</parameter>, which - follows the syntax <parameter>[node_id::]dbname[/svr_class]</parameter>. + <function>ingres_connect</function> は、 + <parameter>database</parameter> とこの後に続く + <parameter>[node_id::]dbname[/svr_class]</parameter> 構文により指 + 定された Ingres データベースへの接続をオープンします。 </para> <para> - If some parameters are missing, <function>ingres_connect</function> - uses the values in <filename>php.ini</filename> for - <parameter>ingres.default_database</parameter>, - <parameter>ingres.default_user</parameter> and - <parameter>ingres.default_password</parameter>. + いくつかのパラメータが欠けている場合、 + <function>ingres_connect</function> は、 + <parameter>ingres.default_database</parameter>、 + <parameter>ingres.default_user</parameter>、 + <parameter>ingres.default_password</parameter> に関して + <filename>php.ini</filename> の値を使用します。 </para> <para> - The connection is closed when the script ends or when - <function>ingres_close</function> is called on this link. + 接続は、スクリプトの実行終了時または、このリンクについて + <function>ingres_close</function> がコールされた場合にクローズさ + れます。 </para> <para> - All the other ingres functions use the last opened link as a - default, so you need to store the returned value only if you use - more than one link at a time. + 他の全ての Ingres 関数は、デフォルトで直近にオープンされたリンク + を使用します。このため、複数のリンクを同時に使用したい場合には、 + 返された値を保存しておく必要があります。 </para> <example> - <title><function>ingres_connect</function> example</title> - <programlisting> + <title><function>ingres_connect</function> の例</title> + <programlisting role="php"> &lt;?php $link = ingres_connect ("mydb", "user", "pass") - or die ("Could not connect"); - print ("Connected successfully"); + or die ("接続できません"); + print ("接続に成功しました"); ingres_close ($link); ?> </programlisting> </example> <example> - <title><function>ingres_connect</function> example - using default link</title> - <programlisting> + <title> + デフォルトリンクを使用する<function>ingres_connect</function>の例 + </title> + <programlisting role="php"> &lt;?php ingres_connect ("mydb", "user", "pass") - or die ("Could not connect"); - print ("Connected successfully"); + or die ("接続できません"); + print ("接続に成功しました"); ingres_close (); ?> </programlisting> </example> - <para> See also - <function>ingres_pconnect</function>, and - <function>ingres_close</function>. + <para> + <function>ingres_pconnect</function> および + <function>ingres_close</function>も参照下さい。 </para> </refsect1> </refentry> @@ -115,11 +121,11 @@ <refnamediv> <refname>ingres_pconnect</refname> <refpurpose> - Open a persistent connection to an Ingres II database. + Ingres II データベースへの持続的接続をオープンする </refpurpose> </refnamediv> <refsect1> - <title>Description</title> + <title>説明</title> <funcsynopsis> <funcprototype> <funcdef>resource <function>ingres_pconnect</function></funcdef> @@ -135,26 +141,26 @@ </funcprototype> </funcsynopsis> <para> - Returns a Ingres II link resource on success, or false on failure. + 成功した際に Ingres II リンクリソース、失敗した際に false を返し + ます。 </para> <para> - See <function>ingres_connect</function> for parameters details and - examples. There are only 2 differences between - <function>ingres_pconnect</function> and - <function>ingres_connect</function> : - First, when connecting, the function will first try to find a - (persistent) link that's already opened with the same parameters. - If one is found, an identifier for it will be returned instead of - opening a new connection. Second, the connection to the Ingres - server will not be closed when the execution of the script ends. - Instead, the link will remain open for future use - (<function>ingres_close</function> will not close links established - by <function>ingres_pconnect</function>). This type of link is - therefore called 'persistent'. - </para> - <para> See also - <function>ingres_connect</function>, and - <function>ingres_close</function>. + パラメータの詳細と例については、 + <function>ingres_connect</function> を参照下さい。 + <function>ingres_pconnect</function> と + <function>ingres_connect</function> の違いは次の2つだけです。 + まず、接続時にこの関数は、まず同じパラメータ既にオープンされて + いる(持続的な)リンクを探すことです。第2に、Ingres サーバへの接続 + はスクリプトの実行終了時にもクローズされないところです。代わりに、 + リンクは、後で使用するためにオープンされたままとなります。 + (<function>ingres_close</function> は、 + <function>ingres_pconnect</function>により確立されたリンクをクロー + ズしません) このため、この型のリンクは「持続的(persistent)」であ + ると呼ばれます。 + </para> + <para> + <function>ingres_connect</function> および + <function>ingres_close</function> も参照下さい。 </para> </refsect1> </refentry> @@ -162,10 +168,10 @@ <refentry id="function.ingres-close"> <refnamediv> <refname>ingres_close</refname> - <refpurpose>Close an Ingres II database connection</refpurpose> + <refpurpose>Ingres II データベース接続を閉じる</refpurpose> </refnamediv> <refsect1> - <title>Description</title> + <title>説明</title> <funcsynopsis> <funcprototype> <funcdef>bool<function>ingres_close</function></funcdef> @@ -175,22 +181,22 @@ </funcprototype> </funcsynopsis> <para> - Returns true on success, or false on failure. + 成功時にtrue、失敗時にfalseを返します。 </para> <para> - <function>ingres_close</function> closes the connection to - the Ingres server that's associated with the specified link. - If the <parameter>link</parameter> parameter isn't - specified, the last opened link is used. + <function>ingres_close</function> は、指定したリンクが指す Ingres + サーバへの接続をクローズします。パラメータ + <parameter>link</parameter>が指定されない場合、直近にオープンされ + たリンクが使用されます。 </para> <para> - <function>ingres_close</function> isn't usually necessary, as it - won't close persistent connections and all non-persistent connections - are automatically closed at the end of the script. + 持続的接続をクローズすることはできず、持続的でない接続はスクリプ + トの終了時に自動的にクローズされるため、 + <function>ingres_close</function> は通常は不要です。 </para> - <para> See also - <function>ingres_connect</function>, and - <function>ingres_pconnect</function>. + <para> + <function>ingres_connect</function> および + <function>ingres_pconnect</function> も参照下さい。 </para> </refsect1> </refentry> @@ -198,10 +204,10 @@ <refentry id="function.ingres-query"> <refnamediv> <refname>ingres_query</refname> - <refpurpose>Send a SQL query to Ingres II</refpurpose> + <refpurpose>Ingres II にSQLクエリを送信する</refpurpose> </refnamediv> <refsect1> - <title>Description</title> + <title>説明</title> <funcsynopsis> <funcprototype> <funcdef>bool<function>ingres_query</function></funcdef> @@ -214,60 +220,64 @@ </funcprototype> </funcsynopsis> <para> - Returns true on success, or false on failure. + 成功時にtrue、失敗時にfalseを返します。 </para> <para> - <function>ingres_query</function> sends the given - <parameter>query</parameter> to the Ingres server. This query - must be a valid SQL query (see the Ingres SQL reference guide) + <function>ingres_query</function> は、指定した + <parameter>query</parameter> を Ingres サーバに送信します。このク + エリは、有効なSQLクエリである必要があります。(Ingres SQL リファレ + ンスガイドを参照下さい) + </para> + <para> + クエリは、現在オープンされているトランザクションの一部となります。 + オープンされているトランザクションがない場合、 + <function>ingres_query</function> は新規のトランザクションをオー + プンします。トランザクションをクローズするには、データベースへの + 変更をコミットする場合に <function>ingres_commit</function> を、 + これらの変更をキャンセルする場合に + <function>ingres_rollback</function> のどちらかを使用することが可 + 能です。スクリプト終了時に、全てのオープンされたトランザクション + は(<function>ingres_rollback</function>をコールすることにより) + ロールバックされます。新規トランザクションをオープンする前に + <function>ingres_autocommit</function> を使用することも可能です。 + この場合、各SQLクエリは直ちにコミットされます。 </para> <para> - The query becomes part of the currently open transaction. - If there is no open transaction, <function>ingres_query</function> - opens a new transaction. To close the transaction, you can either - call <function>ingres_commit</function> to commit the changes made - to the database or <function>ingres_rollback</function> to cancel these - changes. When the script ends, any open transaction is rolled back - (by calling <function>ingres_rollback</function>). You can also - use <function>ingres_autocommit</function> before opening a new - transaction to have every SQL query immediatly commited. - </para> - <para> - Some types of SQL queries can't be sent with this function : + 次の型のSQLクエリは、この関数で送信できません。 <itemizedlist> <listitem> - <simpara>close (see <function>ingres_close</function>).</simpara> + <simpara>close (<function>ingres_close</function>を参照)</simpara> </listitem> <listitem> - <simpara>commit (see <function>ingres_commit</function>).</simpara> + <simpara>commit (<function>ingres_commit</function>を参照)</simpara> </listitem> <listitem> - <simpara>connect (see <function>ingres_connect</function>).</simpara> + <simpara>connect (<function>ingres_connect</function>を参照)</simpara> </listitem> <listitem> - <simpara>disconnect (see <function>ingres_close</function>).</simpara> + <simpara>disconnect (<function>ingres_close</function>を参照)</simpara> </listitem> <listitem><simpara>get dbevent</simpara></listitem> <listitem><simpara>prepare to commit</simpara></listitem> <listitem> <simpara> - rollback (see <function>ingres_rollback</function>). + rollback (<function>ingres_rollback</function>を参照) </simpara> </listitem> <listitem><simpara>savepoint</simpara></listitem> <listitem> <simpara> - set autocommit (see <function>ingres_autocommit</function>). + set autocommit (<function>ingres_autocommit</function>を参照) </simpara> </listitem> <listitem> - <simpara>all cursor related queries are unsupported</simpara> + <simpara>カーソルに関係するクエリはサポートされていません</simpara> </listitem> </itemizedlist> </para> <para> <example> - <title><function>ingres_query</function> example</title> + <title><function>ingres_query</function> の例</title> <programlisting role="php"> &lt;?php ingres_connect ($database, $user, $password); @@ -282,13 +292,12 @@ </example> </para> <para> - See also <function>ingres_fetch_array</function>, <function>ingres_fetch_object</function>, <function>ingres_fetch_row</function>, <function>ingres_commit</function>, - <function>ingres_rollback</function> and - <function>ingres_autocommit</function>. + <function>ingres_rollback</function>, + <function>ingres_autocommit</function> も参照下さい。 </para> </refsect1> </refentry> @@ -297,11 +306,11 @@ <refnamediv> <refname>ingres_num_rows</refname> <refpurpose> - Get the number of rows affected or returned by the last query + 直近のクエリで作用されたレコードの数を取得し、返す </refpurpose> </refnamediv> <refsect1> - <title>Description</title> + <title>説明</title> <funcsynopsis> <funcprototype> <funcdef>int<function>ingres_num_rows</function></funcdef> @@ -349,11 +358,11 @@ <refnamediv> <refname>ingres_num_fields</refname> <refpurpose> - Get the number of fields returned by the last query + 直近のクエリにより返されたフィールドの数を得る </refpurpose> </refnamediv> <refsect1> - <title>Description</title> + <title>説明</title> <funcsynopsis> <funcprototype> <funcdef>int<function>ingres_num_fields</function></funcdef> @@ -380,10 +389,10 @@ <refentry id="function.ingres-field-name"> <refnamediv> <refname>ingres_field_name</refname> - <refpurpose>Get the name of a field in a query result.</refpurpose> + <refpurpose>クエリ結果においてフィールド名を得る</refpurpose> </refnamediv> <refsect1> - <title>Description</title> + <title>説明</title> <funcsynopsis> <funcprototype> <funcdef>string<function>ingres_field_name</function></funcdef> @@ -417,10 +426,10 @@ <refentry id="function.ingres-field-type"> <refnamediv> <refname>ingres_field_type</refname> - <refpurpose>Get the type of a field in a query result.</refpurpose> + <refpurpose>クエリ結果においてフィールドの型を得る</refpurpose> </refnamediv> <refsect1> - <title>Description</title> + <title>説明</title> <funcsynopsis> <funcprototype> <funcdef>string<function>ingres_field_type</function></funcdef> @@ -461,10 +470,10 @@ <refentry id="function.ingres-field-nullable"> <refnamediv> <refname>ingres_field_nullable</refname> - <refpurpose>Test if a field is nullable.</refpurpose> + <refpurpose>フィールドにNULL値を設定可能かどうか調べる</refpurpose> </refnamediv> <refsect1> - <title>Description</title> + <title>説明</title> <funcsynopsis> <funcprototype> <funcdef>bool<function>ingres_field_nullable</function></funcdef> @@ -498,10 +507,10 @@ <refentry id="function.ingres-field-length"> <refnamediv> <refname>ingres_field_length</refname> - <refpurpose>Get the length of a field.</refpurpose> + <refpurpose>フィールド長を得る</refpurpose> </refnamediv> <refsect1> - <title>Description</title> + <title>説明</title> <funcsynopsis> <funcprototype> <funcdef>int<function>ingres_field_length</function></funcdef> @@ -536,10 +545,10 @@ <refentry id="function.ingres-field-precision"> <refnamediv> <refname>ingres_field_precision</refname> - <refpurpose>Get the precision of a field.</refpurpose> + <refpurpose>フィールドの精度を得る</refpurpose> </refnamediv> <refsect1> - <title>Description</title> + <title>説明</title> <funcsynopsis> <funcprototype> <funcdef>int<function>ingres_field_precision</function></funcdef> @@ -575,10 +584,10 @@ <refentry id="function.ingres-field-scale"> <refnamediv> <refname>ingres_field_scale</refname> - <refpurpose>Get the scale of a field.</refpurpose> + <refpurpose>フィールドのスケールを得る</refpurpose> </refnamediv> <refsect1> - <title>Description</title> + <title>説明</title> <funcsynopsis> <funcprototype> <funcdef>int<function>ingres_field_scale</function></funcdef> @@ -613,10 +622,10 @@ <refentry id="function.ingres-fetch-array"> <refnamediv> <refname>ingres_fetch_array</refname> - <refpurpose>Fetch a row of result into an array.</refpurpose> + <refpurpose>1行分の結果を配列に取得する</refpurpose> </refnamediv> <refsect1> - <title>Description</title> + <title>説明</title> <funcsynopsis> <funcprototype> <funcdef>array<function>ingres_fetch_array</function></funcdef> @@ -664,7 +673,7 @@ </para> <para> <example> - <title><function>ingres_fetch_array</function> example</title> + <title><function>ingres_fetch_array</function> の例</title> <programlisting role="php"> &lt;?php ingres_connect ($database, $user, $password); @@ -694,10 +703,10 @@ <refentry id="function.ingres-fetch-row"> <refnamediv> <refname>ingres_fetch_row</refname> - <refpurpose>Fetch a row of result into an enumerated array.</refpurpose> + <refpurpose>1行分の結果を数値添字配列として取得する</refpurpose> </refnamediv> <refsect1> - <title>Description</title> + <title>説明</title> <funcsynopsis> <funcprototype> <funcdef>array<function>ingres_fetch_row</function></funcdef> @@ -745,10 +754,10 @@ <refentry id="function.ingres-fetch-object"> <refnamediv> <refname>ingres_fetch_object</refname> - <refpurpose>Fetch a row of result into an object.</refpurpose> + <refpurpose>1行分の結果をオブジェクトとして取得する</refpurpose> </refnamediv> <refsect1> - <title>Description</title> + <title>説明</title> <funcsynopsis> <funcprototype> <funcdef>object<function>ingres_fetch_object</function></funcdef> @@ -811,10 +820,10 @@ <refentry id="function.ingres-rollback"> <refnamediv> <refname>ingres_rollback</refname> - <refpurpose>Roll back a transaction.</refpurpose> + <refpurpose>トランザクションをロールバックする</refpurpose> </refnamediv> <refsect1> - <title>Description</title> + <title>説明</title> <funcsynopsis> <funcprototype> <funcdef>bool<function>ingres_rollback</function></funcdef> @@ -844,10 +853,10 @@ <refentry id="function.ingres-commit"> <refnamediv> <refname>ingres_commit</refname> - <refpurpose>Commit a transaction.</refpurpose> + <refpurpose>トランザクションをコミットする</refpurpose> </refnamediv> <refsect1> - <title>Description</title> + <title>説明</title> <funcsynopsis> <funcprototype> <funcdef>bool<function>ingres_commit</function></funcdef> @@ -881,10 +890,10 @@ <refentry id="function.ingres-autocommit"> <refnamediv> <refname>ingres_autocommit</refname> - <refpurpose>Switch autocommit on or off.</refpurpose> + <refpurpose>autocommit を オンまたはオフに切替える</refpurpose> </refnamediv> <refsect1> - <title>Description</title> + <title>説明</title> <funcsynopsis> <funcprototype> <funcdef>bool<function>ingres_autocommit</function></funcdef> Index: phpdoc/ja/functions/var.xml diff -u phpdoc/ja/functions/var.xml:1.20 phpdoc/ja/functions/var.xml:1.21 --- phpdoc/ja/functions/var.xml:1.20 Sun Nov 5 07:01:27 2000 +++ phpdoc/ja/functions/var.xml Sun Nov 26 04:47:20 2000 @@ -182,7 +182,7 @@ <title>説明</title> <funcsynopsis> <funcprototype> - <funcdef>int <function>is_array</function></funcdef> + <funcdef>bool <function>is_array</function></funcdef> <paramdef>mixed <parameter>var</parameter></paramdef> </funcprototype> </funcsynopsis> @@ -214,12 +214,8 @@ <title>説明</title> <funcsynopsis> <funcprototype> - <funcdef>int - <function>is_bool</function> - </funcdef> - <paramdef>mixed - <parameter>var</parameter> - </paramdef> + <funcdef>bool <function>is_bool</function></funcdef> + <paramdef>mixed <parameter>var</parameter></paramdef> </funcprototype> </funcsynopsis> <para> @@ -245,7 +241,7 @@ <title>説明</title> <funcsynopsis> <funcprototype> - <funcdef>int <function>is_double</function></funcdef> + <funcdef>bool <function>is_double</function></funcdef> <paramdef>mixed <parameter>var</parameter></paramdef> </funcprototype> </funcsynopsis> @@ -276,7 +272,7 @@ <title>説明</title> <funcsynopsis> <funcprototype> - <funcdef>int <function>is_float</function></funcdef> + <funcdef>bool <function>is_float</function></funcdef> <paramdef>mixed <parameter>var</parameter></paramdef> </funcprototype> </funcsynopsis> @@ -306,7 +302,7 @@ <title>説明</title> <funcsynopsis> <funcprototype> - <funcdef>int <function>is_int</function></funcdef> + <funcdef>bool <function>is_int</function></funcdef> <paramdef>mixed <parameter>var</parameter></paramdef> </funcprototype> </funcsynopsis> @@ -336,7 +332,7 @@ <title>説明</title> <funcsynopsis> <funcprototype> - <funcdef>int <function>is_integer</function></funcdef> + <funcdef>bool <function>is_integer</function></funcdef> <paramdef>mixed <parameter>var</parameter></paramdef> </funcprototype> </funcsynopsis> @@ -366,7 +362,7 @@ <title>説明</title> <funcsynopsis> <funcprototype> - <funcdef>int <function>is_long</function></funcdef> + <funcdef>bool <function>is_long</function></funcdef> <paramdef>mixed <parameter>var</parameter></paramdef> </funcprototype> </funcsynopsis> @@ -397,12 +393,11 @@ <title>説明</title> <funcsynopsis> <funcprototype> - <funcdef>int <function>is_numeric</function></funcdef> + <funcdef>bool <function>is_numeric</function></funcdef> <paramdef>mixed <parameter>var</parameter></paramdef> </funcprototype> </funcsynopsis> <para> - <parameter>var</parameter>が数値または数値文字列である場合に true、その他の場合にfalseを返します。 </para> @@ -429,7 +424,7 @@ <title>説明</title> <funcsynopsis> <funcprototype> - <funcdef>int <function>is_object</function></funcdef> + <funcdef>bool <function>is_object</function></funcdef> <paramdef>mixed <parameter>var</parameter></paramdef> </funcprototype> </funcsynopsis> @@ -460,7 +455,7 @@ <title>説明</title> <funcsynopsis> <funcprototype> - <funcdef>int <function>is_real</function></funcdef> + <funcdef>bool <function>is_real</function></funcdef> <paramdef>mixed <parameter>var</parameter></paramdef> </funcprototype> </funcsynopsis> @@ -492,22 +487,18 @@ <title>説明</title> <funcsynopsis> <funcprototype> - <funcdef>int - <function>is_resource</function> - </funcdef> - <paramdef>mixed - <parameter>var</parameter> - </paramdef> + <funcdef>bool <function>is_resource</function></funcdef> + <paramdef>mixed <parameter>var</parameter></paramdef> </funcprototype> </funcsynopsis> <para> - <function>is_resource</function>はパラメータ<parameter>var</parameter> - で指定した変数がリソースの場合にtrueを返し、その他の場合にfalseを - 返します。 + <function>is_resource</function>はパラメータ + <parameter>var</parameter>で指定した変数がリソースの場合にtrueを + 返し、その他の場合にfalseを返します。 </para> <para> リソースとはファイルやデータベース結果ハンドル等を意味し、 - PHP内部関数により確保や開放が行われます。これらのリソースに関しf + PHP内部関数により確保や開放が行われます。これらのリソースに関して 使用終了後でかつユーザのコードにより開放が行われていない場合に、 何らかのクリーンアップが必要となる可能性があります。 </para> @@ -523,7 +514,7 @@ <title>説明</title> <funcsynopsis> <funcprototype> - <funcdef>int <function>is_string</function></funcdef> + <funcdef>bool <function>is_string</function></funcdef> <paramdef>mixed <parameter>var</parameter></paramdef> </funcprototype> </funcsynopsis> @@ -648,7 +639,7 @@ <parameter>type</parameter> にセットします。 </para> <para> - <parameter>type</parameter> の値はä»ä¸‹ã®ã„ずれかです。 + <parameter>type</parameter> の値は令؋のいずれかです。 <itemizedlist> <listitem><simpara>"integer"</simpara></listitem> Index: phpdoc/ja/functions/xslt.xml diff -u phpdoc/ja/functions/xslt.xml:1.2 phpdoc/ja/functions/xslt.xml:1.3 --- phpdoc/ja/functions/xslt.xml:1.2 Mon Nov 13 13:41:00 2000 +++ phpdoc/ja/functions/xslt.xml Sun Nov 26 04:47:20 2000 @@ -28,9 +28,8 @@ </para> <para> UNIXでは、オプション <option - role="configure">--with-sablot</option> と <option - role="configure">--enable-sablot-errors-descriptive</option>を指 - 定して <command>configure</command> を実行します。ライブラリ + role="configure">--with-sablot</option> を指定して + <command>configure</command> を実行します。ライブラリ <productname>Sablotron</productname> をコンパイラが見付けられる 場所にインストールする必要があります。 </para> @@ -227,20 +226,53 @@ <refentry id="function.xslt-output-begintransform"> <refnamediv> <refname>xslt_output_begintransform</refname> - <refpurpose>unknown</refpurpose> + <refpurpose>出力の XSLT 変換を開始する</refpurpose> </refnamediv> <refsect1> <title>説明</title> <funcsynopsis> <funcprototype> - <funcdef>unknown <function>xslt_output_begintransform</function></funcdef> - <paramdef> - <parameter>unknown</parameter> - </paramdef> + <funcdef>void + <function>xslt_output_begintransform</function> + </funcdef> + <paramdef> + <parameter>string xslt_filename</parameter> + </paramdef> </funcprototype> </funcsynopsis> <para> - この関数には、プロトタイプがありません。 + この関数は、データ出力の変換を開始します。 + <function>xslt_output_begintransform</function> をコールした場所 + から、<function>xslt_output_endtransform</function> をコールした + 場所まで、最初の引数で指定したXSLTスタイルシートにより全ての出力 + は変換されます。 + </para> + <para> + <example> + <title> + XSLTスタイルシートによる出力の変換、xml 生成用にDOM-XML関数を使 + 用する + </title> + <programlisting role="php"> +&lt;?php + +$xsl_file = "article.xsl"; +xslt_output_begintransform($xsl_file); + +$doc = new_xmldoc('1.0'); +$article = $doc->new_root('article'); + +$article->new_child('title', 'The History of South Tyrol'); +$article->new_child('author', 'Sterling Hughes'); +$article->new_child('body', 'Back after WWI, Italy gained South Tyrol from + Austria. Since that point nothing interesting has + happened'); + +echo $doc->dumpmem(); + +xslt_output_endtransform(); + </programlisting> + </example> </para> </refsect1> </refentry> @@ -248,41 +280,122 @@ <refentry id="function.xslt-output-endtransform"> <refnamediv> <refname>xslt_output_endtransform</refname> - <refpurpose>unknown</refpurpose> + <refpurpose> + xslt_output_begintransformで開始した出力の変換を終了する + </refpurpose> </refnamediv> <refsect1> <title>説明</title> <funcsynopsis> <funcprototype> - <funcdef>unknown <function>xslt_output_endtransform</function></funcdef> - <paramdef> - <parameter>unknown</parameter> - </paramdef> + <funcdef>void + <function>xslt_output_endtransform</function> + </funcdef> + <void/> </funcprototype> </funcsynopsis> <para> - この関数には、プロトタイプがありません。 + <function>xslt_output_endtransform</function> は、 + <function>xslt_output_begintransform</function> 関数で開始した出力の変換を + 終了します。出力の変換の結果を見るためには、この関数をコールする + 必要があります。 </para> </refsect1> </refentry> <refentry id="function.xslt-process"> <refnamediv> - <refname>xslt_output_process</refname> - <refpurpose>unknown</refpurpose> + <refname>xslt_process</refname> + <refpurpose>XSLデータを有する文字列によりXMLデータを変換する</refpurpose> </refnamediv> <refsect1> <title>説明</title> <funcsynopsis> <funcprototype> - <funcdef>unknown <function>xslt_process</function></funcdef> - <paramdef> - <parameter>unknown</parameter> - </paramdef> - </funcprototype> - </funcsynopsis> - <para> - この関数には、プロトタイプがありません。 + <funcdef>bool + <function>xslt_process</function> + </funcdef> + <paramdef> + <parameter>string xsl_data</parameter> + <parameter>string xml_data</parameter> + <parameter>string result</parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> + <function>xslt_process</function> は、XSLT スタイルシートを有する + 文字列を最初の引数、変換したいXMLデータを有する文字列を2番目の引 + 数、変換結果を有する文字列を3番目の引数とします。 + <function>xslt_process</function> は、成功時に true、失敗時に + false を返します。エラーが発生した場合にエラー番号とエラー文字列 + を得るには、関数 <function>xslt_errno</function> および + <function>xslt_error</function> を使用して下さい。 + </para> + <para> + <example> + <title> + 3つの文字列を変換するために <function>xslt_process</function> + を使用する + </title> + <programlisting role="php"> +&lt;?php + +$xslData = ' +&lt;xsl:stylesheet + version="1.0" + xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> + +&lt;xsl:template match="article"> + &lt;table border="1" cellpadding="2" cellspacing="1"> + &lt;tr> + &lt;td width="20%"> + &nbsp; + &lt;/title> + &lt;td width="80%"> + &lt;h2>&lt;xsl:value-of select="title">&lt;/h2> + &lt;h3>&lt;xsl:value-of select="author">&lt;/h3> + &lt;br> + + &lt;xsl:value-of select="body"> + &lt;/td> + &lt;/tr> + &lt;/table> +&lt;/xsl:template> + +&lt;/xsl:stylesheet>'; + +$xmlData = ' +&lt;?xml version="1.0"?> +&lt;article> + &lt;title>Learning German&lt;/title> + &lt;author>Sterling Hughes&lt;/author> + &lt;body> + Essential phrases: + &lt;br> + &lt;br> + Komme sie mir sagen, woe die toilette es?&lt;br> + Eine grande beer bitte!&lt;br> + Noch einem bitte.&lt;br> + &lt;/body> +&lt;/article>'; + +if (xslt_process($xslData, $xmlData, $result)) +{ + echo "Here is the brilliant in-depth article on learning" + echo " German: "; + echo "&lt;br>\n&lt;br>"; + echo $result; +} +else +{ + echo "There was an error that occurred in the XSL transformation...\n"; + echo "\tError number: " . xslt_errno() . "\n"; + echo "\tError string: " . xslt_error() . "\n"; + exit; +} +?> + </programlisting> + </example> </para> </refsect1> </refentry> @@ -341,20 +454,28 @@ <refentry id="function.xslt-transform"> <refnamediv> <refname>xslt_transform</refname> - <refpurpose>unknown</refpurpose> + <refpurpose>XSLT 変換を実行する</refpurpose> </refnamediv> <refsect1> <title>説明</title> <funcsynopsis> <funcprototype> - <funcdef>unknown <function>xslt_transform</function></funcdef> - <paramdef> - <parameter>unknown</parameter> + <funcdef>bool + <function>xslt_transform</function> + </funcdef> + <paramdef> + <parameter>string xsl</parameter> + <parameter>string xml</parameter> + <parameter>string result</parameter> + <parameter>string params</parameter> + <parameter>string args</parameter> + <parameter>string resultBuffer</parameter> </paramdef> </funcprototype> </funcsynopsis> <para> - この関数には、プロトタイプがありません。 + <function>xslt_transform</function> は、リソースAPIを使用すること + なく、Sablotron のより高度な機能へのインターフェースを提供します。 </para> </refsect1> </refentry>
« previous php.doc (#969333078) next »