cvs: phpdoc /en/functions image.xml /ja/functions image.xml math.xml mcal.xml

From: Date: Mon, 08 Jan 2001 01:39:30 +0000
Subject: cvs: phpdoc /en/functions image.xml /ja/functions image.xml math.xml mcal.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969333475@lists.php.net to get a copy of this message
hirokawa Sun Jan 7 17:39:30 2001 EDT Modified files: /phpdoc/en/functions image.xml /phpdoc/ja/functions image.xml math.xml mcal.xml Log: updated translation and fixed a typo.

Index: phpdoc/en/functions/image.xml diff -u phpdoc/en/functions/image.xml:1.31 phpdoc/en/functions/image.xml:1.32 --- phpdoc/en/functions/image.xml:1.31 Sun Jan 7 14:42:43 2001 +++ phpdoc/en/functions/image.xml Sun Jan 7 17:39:29 2001 @@ -1302,7 +1302,7 @@ </note> </para> <para> - See also <function>ImagePNG</function, <function>ImageGIF</function>, + See also <function>ImagePNG</function>, <function>ImageGIF</function>, <function>ImageJPEG</function>, <function>ImageTypes</function>. </para> </refsect1> Index: phpdoc/ja/functions/image.xml diff -u phpdoc/ja/functions/image.xml:1.19 phpdoc/ja/functions/image.xml:1.20 --- phpdoc/ja/functions/image.xml:1.19 Thu Jan 4 22:29:04 2001 +++ phpdoc/ja/functions/image.xml Sun Jan 7 17:39:30 2001 @@ -788,6 +788,77 @@ </refsect1> </refentry> + <refentry id="function.imagecreatefromwbmp"> + <refnamediv> + <refname>ImageCreateFromWBMP</refname> + <refpurpose> + ファイルまたはURLから新規イメージをWindowsビットマップ形式のイメー + ジを作成する + </refpurpose> + </refnamediv> + <refsect1> + <title>説明</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>imagecreatefromwbmp</function></funcdef> + <paramdef>string <parameter>filename</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <para> + <function>ImageCreateFromWBMP</function> は、指定したファイル名か + ら得られたイメージを表すイメージIDを返します。 + </para> + <para> + <function>ImageCreateFromWBMP</function> は、エラー時に空の文字列 + を返します。エラーメッセージも出力しますが、不幸にしてブラウザに + 壊れたリンクとして表示されてしまいます。デバッグを容易にするため + に次の例ではエラーを表示する <acronym>WBMP</acronym> を作成してい + ます。 + <example> + <title> + 作成時のエラーを処理する例 (vic@zymsys.com による) + </title> + <programlisting role="php"> +function LoadWBMP ($imgname) { + $im = @ImageCreateFromWBMP ($imgname); /* オープンする */ + if (!$im) { /* 失敗したかどうか判定 */ + $im = ImageCreate (20, 20); /* 空のイメージを作成する */ + $bgc = ImageColorAllocate ($im, 255, 255, 255); + $tc = ImageColorAllocate ($im, 0, 0, 0); + ImageFilledRectangle ($im, 0, 0, 10, 10, $bgc); + /* errmsg を出力する */ + ImageString ($im, 1, 5, 5, "Error loading $imgname", $tc); + } + return $im; +} + </programlisting> + </example> + </para> + </refsect1> + </refentry> + + <refentry id="function.imagecreatefromstring"> + <refnamediv> + <refname>ImageCreateFromString</refname> + <refpurpose> + 文字列の中のイメージストリームから新規イメージを作成する + </refpurpose> + </refnamediv> + <refsect1> + <title>説明</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>imagecreatefromstring</function></funcdef> + <paramdef>string <parameter>image</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <para> + <function>ImageCreateFromString</function> は、指定した文字列から + 得られたイメージを表すイメージIDを返します。 + </para> + </refsect1> + </refentry> + <refentry id="function.imagedashedline"> <refnamediv> <refname>ImageDashedLine</refname> @@ -1034,25 +1105,30 @@ 以下の短いコードにより利用可能なGDサポートの型を自動検出し、 汎用性のあるPHPアプリケーションを書くことが可能です。 <literal>Header("Content-type: - image/gif");ImageGif($im);</literal>の部分をこのより柔軟性のあ + image/gif");ImageGIF($im);</literal>の部分をこのより柔軟性のあ るコードに置換して下さい。 <informalexample> <programlisting role="php"> &lt;?php if (function_exists("imagegif")) { Header("Content-type: image/gif"); - ImageGif($im); + ImageGIF($im); } elseif (function_exists("imageJpeg")) { Header("Content-type: image/jpeg"); - ImageJpeg($im, "", 0.5); + ImageJPEG($im, "", 0.5); } elseif (function_exists("imagePng")) { Header("Content-type: image/png"); - ImagePng($im); + ImagePNG($im); + } + elseif (function_exists("imagewbmp")) { + Header("Content-type: image/vnd.wap.wbmp"); + ImageWBMP($im); } - else + else { die("このPHPサーバーではイメージはサポートされていません"); + } ?&gt; </programlisting> </informalexample> @@ -1078,15 +1154,16 @@ </note> </para> <para> - <function>ImagePng</function>, <function>ImageJpeg</function>, - <function>ImageTypes</function> も参照下さい。 + <function>ImagePNG</function>, <function>ImageWBMP</function>, + <function>ImageJPEG</function>, <function>ImageTypes</function> + も参照下さい。 </para> </refsect1> </refentry> <refentry id="function.imagepng"> <refnamediv> - <refname>ImagePng</refname> + <refname>ImagePNG</refname> <refpurpose> PNGイメージをブラウザまたはファイルに出力する </refpurpose> @@ -1107,7 +1184,7 @@ </funcprototype> </funcsynopsis> <para> - <function>ImagePng</function>は、GDイメージストリーム + <function>ImagePNG</function>は、GDイメージストリーム (<parameter>im</parameter>)をPNGフォーマットで標準出力(通常はブラ ウザ)に出力します。<parameter>filename</parameter>を指定した場合 はそのファイルにイメージを出力します。 @@ -1119,8 +1196,9 @@ </informalexample> </para> <para> - <function>ImageGif</function>, <function>ImageJpeg</function>, - <function>ImageTypes</function> も参照下さい。 + <function>ImageGIF</function>, <function>ImageWBMP</function>, + <function>ImageJPEG</function>, <function>ImageTypes</function> + も参照下さい。 </para> </refsect1> </refentry> @@ -1169,11 +1247,58 @@ </note> </para> <para> - <function>ImagePng</function>, <function>ImageGif</function>, - <function>ImageTypes</function> も参照下さい。 + <function>ImagePNG</function>, <function>ImageGIF</function>, + <function>ImageWBMP</function>, <function>ImageTypes</function> + も参照下さい。 </para> </refsect1> </refentry> + + <refentry id="function.imagewbmp"> + <refnamediv> + <refname>ImageWBMP</refname> + <refpurpose>ブラウザまたはファイルにイメージを出力する</refpurpose> + </refnamediv> + <refsect1> + <title>説明</title> + <funcsynopsis> + <funcprototype> + <funcdef>int <function>imageWBMP</function></funcdef> + <paramdef>int <parameter>im</parameter></paramdef> + <paramdef>string + <parameter> + <replaceable><optional>filename</optional></replaceable> + </parameter> + </paramdef> + </funcprototype> + </funcsynopsis> + <para> + <function>ImageWBMP</function> は、イメージ + <parameter>im</parameter>から filename に + <acronym>WBMP</acronym> ファイルを作成します。引数 + <parameter>im</parameter> は、<function>ImageCreate</function> 関 + 数の返り値です。 + </para> + <para> + 引数 filename はオプションであり、省略された場合には、イメージス + トリームがそのまま直接出力されます。<function>header</function> + 関数により、content-type <acronym>image/vnd.wap.wbmp</acronym> を + 送信することにより、WBMPイメージを直接出力するPHPスクリプトを作成 + することが可能です。 + <note> + <para> + WBMP サポートは、PHPをGD-1.8以降と組み合わせてコンパイルした場 + 合にのみ利用可能です。 + </para> + </note> + </para> + <para> + <function>ImagePNG</function>, <function>ImageGIF</function>, + <function>ImageJPEG</function>, <function>ImageTypes</function> + も参照下さい。 + </para> + </refsect1> + </refentry> <refentry id="function.imageinterlace"> <refnamediv> Index: phpdoc/ja/functions/math.xml diff -u phpdoc/ja/functions/math.xml:1.15 phpdoc/ja/functions/math.xml:1.16 --- phpdoc/ja/functions/math.xml:1.15 Thu Jan 4 22:29:04 2001 +++ phpdoc/ja/functions/math.xml Sun Jan 7 17:39:30 2001 @@ -1019,7 +1019,9 @@ </funcprototype> </funcsynopsis> <para> - <parameter>val</parameter>を整数値に丸めた値を返します。 + <parameter>val</parameter>を指定した + <parameter>precision</parameter>(小数点以下の桁数)に丸めた値を返 + します。 <informalexample> <programlisting role="php"> $foo = round( 3.4 ); // $foo == 3.0 Index: phpdoc/ja/functions/mcal.xml diff -u phpdoc/ja/functions/mcal.xml:1.10 phpdoc/ja/functions/mcal.xml:1.11 --- phpdoc/ja/functions/mcal.xml:1.10 Thu Jan 4 22:29:04 2001 +++ phpdoc/ja/functions/mcal.xml Sun Jan 7 17:39:30 2001 @@ -177,6 +177,69 @@ </refsect1> </refentry> + <refentry id="function.mcal-create-calendar"> + <refnamediv> + <refname>mcal_create_calendar</refname> + <refpurpose>新規にMCALカレンダを作成する</refpurpose> + </refnamediv> + <refsect1> + <title>説明</title> + <funcsynopsis> + <funcprototype> + <funcdef>string <function>mcal_create_calendar</function></funcdef> + <paramdef>int <parameter>stream</parameter></paramdef> + <paramdef>string <parameter>calendar</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <para> + <parameter>calendar</parameter> という名前で新規のカレンダを作成 + します。 + </para> + </refsect1> + </refentry> + + <refentry id="function.mcal-rename-calendar"> + <refnamediv> + <refname>mcal_rename_calendar</refname> + <refpurpose>MCALカレンダの名前を変更する</refpurpose> + </refnamediv> + <refsect1> + <title>説明</title> + <funcsynopsis> + <funcprototype> + <funcdef>string <function>mcal_rename_calendar</function></funcdef> + <paramdef>int <parameter>stream</parameter></paramdef> + <paramdef>string <parameter>old_name</parameter></paramdef> + <paramdef>string <parameter>new_name</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <para> + カレンダ名 <parameter>old_name</parameter> を + <parameter>new_name</parameter> に変更します。 + </para> + </refsect1> + </refentry> + + <refentry id="function.mcal-delete-calendar"> + <refnamediv> + <refname>mcal_delete_calendar</refname> + <refpurpose>MCALカレンダを削除する</refpurpose> + </refnamediv> + <refsect1> + <title>説明</title> + <funcsynopsis> + <funcprototype> + <funcdef>string <function>mcal_delete_calendar</function></funcdef> + <paramdef>int <parameter>stream</parameter></paramdef> + <paramdef>string <parameter>calendar</parameter></paramdef> + </funcprototype> + </funcsynopsis> + <para> + <parameter>calendar</parameter>という名前のカレンダを削除します。 + </para> + </refsect1> + </refentry> + <refentry id="function.mcal-fetch-event"> <refnamediv> <refname>mcal_fetch_event</refname> @@ -1165,42 +1228,90 @@ <title>説明</title> <funcsynopsis> <funcprototype> - <funcdef>int + <funcdef>object <function>mcal_fetch_current_stream_event</function> </funcdef> <paramdef>int <parameter>stream</parameter></paramdef> </funcprototype> </funcsynopsis> <para> - <function>mcal_event_fetch_current_stream_event</function> - は、次の要素を有する現在のイベント構逤ݓストリームを有する - オブジェクトを返します。 - + <function>mcal_fetch_current_stream_event</function> + は、次の要素を有する現在のイベント構造ストリームを有する + オブジェクトを返します。 + <itemizedlist> - <listitem><simpara> - int id - イベントだID</simpara></listitem> - <listitem><simpara> - int public - イベントが public の場合に TRUE、private の場合に FALSE。</simpara></listitem> - <listitem><simpara> - string category - イベントの Category 文字列。</simpara></listitem> - <listitem><simpara> - string title - イベントの Title 文字列。</simpara></listitem> - <listitem><simpara> - string description - イベントの Description 文字列。</simpara></listitem> - <listitem><simpara> - int alarm - アラーム・リマインダを送るイベントまでの分単位の時間。</simpara></listitem> - <listitem><simpara> - object start - 開始 datetime エントリを有するオブジェクト。</simpara></listitem> - <listitem><simpara> - object end - 終了 datetime エントリを有するオブジェクト。</simpara></listitem> - <listitem><simpara> - int recur_type - 繰り返し型</simpara></listitem> - <listitem><simpara> - int recur_interval - 繰り返し間隔</simpara></listitem> - <listitem><simpara> - datetime recur_enddate - 繰り返し終了日</simpara></listitem> - <listitem><simpara> - int recur_data - 繰り返しデータ</simpara></listitem> + <listitem> + <simpara> + int id + - イベントID + </simpara> + </listitem> + <listitem> + <simpara> + int public + - イベントが public の場合に TRUE、private の場合に FALSE。 + </simpara> + </listitem> + <listitem> + <simpara> + string category + - イベントの Category 文字列。 + </simpara> + </listitem> + <listitem> + <simpara> + string title + - イベントの Title 文字列。 + </simpara> + </listitem> + <listitem> + <simpara> + string description + - イベントの Description 文字列。 + </simpara> + </listitem> + <listitem> + <simpara> + int alarm + - アラーム・リマインダを送るイベントまでの分単位の時間。 + </simpara> + </listitem> + <listitem> + <simpara> + object start + - 開始 datetime エントリを有するオブジェクト。 + </simpara> + </listitem> + <listitem> + <simpara> + object end + - 終了 datetime エントリを有するオブジェクト。 + </simpara> + </listitem> + <listitem> + <simpara> + int recur_type + - 繰り返し型 + </simpara> + </listitem> + <listitem> + <simpara> + int recur_interval + - 繰り返し間隔 + </simpara> + </listitem> + <listitem> + <simpara> + datetime recur_enddate + - 繰り返し終了日 + </simpara> + </listitem> + <listitem> + <simpara> + int recur_data + - 繰り返しデータ + </simpara> + </listitem> </itemizedlist> 全ての datetime エントリは、次の要素を有するオブジェクトから
« previous php.doc (#969333475) next »