cvs: peardoc /ja/package validate.xml /ja/package/authentication auth.xml /ja/package/authentication/auth/auth auth.xml
/ja/package/console/console-color colorcodes.xml /ja/package/mail mail-mime.xml /ja/package/php/php-codesniffer coding-standard-class.xml usage.xml
/ja/package/structures structures-datagrid.xml /ja/package/structures/structures-datagrid custom-datasources.xml example-advanced.xml
/ja/package/structures/structures-datagrid/structures-datagrid attachrenderer.xml setrenderer.xml
/ja/package/structures/structures-datagrid/structures-datagrid-column getorderby.xml setformatter.xml setorderby.xml structures-datagrid-column.xml
/ja/package/structures/structures-datagrid/structures-datagrid-datasource dataobject.xml
/ja/package/structures/structures-datagrid/structures-datagrid-renderer checkablehtmltable.xml htmleditform.xml smarty.xml xul.xml
/ja/package/text/text-highlighter intro.xml /ja/package/validate validate.xml

From: Date: Sat, 16 Jun 2007 14:10:22 +0000
Subject: cvs: peardoc /ja/package validate.xml /ja/package/authentication auth.xml /ja/package/authentication/auth/auth auth.xml
/ja/package/console/console-color colorcodes.xml /ja/package/mail mail-mime.xml /ja/package/php/php-codesniffer coding-standard-class.xml usage.xml
/ja/package/structures structures-datagrid.xml /ja/package/structures/structures-datagrid custom-datasources.xml example-advanced.xml
/ja/package/structures/structures-datagrid/structures-datagrid attachrenderer.xml setrenderer.xml
/ja/package/structures/structures-datagrid/structures-datagrid-column getorderby.xml setformatter.xml setorderby.xml structures-datagrid-column.xml
/ja/package/structures/structures-datagrid/structures-datagrid-datasource dataobject.xml
/ja/package/structures/structures-datagrid/structures-datagrid-renderer checkablehtmltable.xml htmleditform.xml smarty.xml xul.xml
/ja/package/text/text-highlighter intro.xml /ja/package/validate validate.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-9778@lists.php.net to get a copy of this message
takagi Sat Jun 16 14:10:22 2007 UTC Added files: /peardoc/ja/package/structures/structures-datagrid/structures-datagrid-renderer checkablehtmltable.xml Modified files: /peardoc/ja/package/validate validate.xml /peardoc/ja/package/text/text-highlighter intro.xml /peardoc/ja/package/structures/structures-datagrid/structures-datagrid setrenderer.xml attachrenderer.xml /peardoc/ja/package/structures/structures-datagrid/structures-datagrid-renderer xul.xml smarty.xml htmleditform.xml /peardoc/ja/package/structures/structures-datagrid/structures-datagrid-datasource dataobject.xml /peardoc/ja/package/structures/structures-datagrid/structures-datagrid-column structures-datagrid-column.xml setorderby.xml setformatter.xml getorderby.xml /peardoc/ja/package/structures/structures-datagrid example-advanced.xml custom-datasources.xml /peardoc/ja/package/structures structures-datagrid.xml /peardoc/ja/package/php/php-codesniffer usage.xml coding-standard-class.xml /peardoc/ja/package/mail mail-mime.xml /peardoc/ja/package/console/console-color colorcodes.xml /peardoc/ja/package/authentication/auth/auth auth.xml /peardoc/ja/package/authentication auth.xml /peardoc/ja/package validate.xml Log: sync with en.

http://cvs.php.net/viewvc.cgi/peardoc/ja/package/validate/validate.xml?r1=1.1&r2=1.2&diff_format=u Index: peardoc/ja/package/validate/validate.xml diff -u peardoc/ja/package/validate/validate.xml:1.1 peardoc/ja/package/validate/validate.xml:1.2 --- peardoc/ja/package/validate/validate.xml:1.1 Mon Dec 18 12:50:02 2006 +++ peardoc/ja/package/validate/validate.xml Sat Jun 16 14:10:21 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1 $ --> -<!-- EN-Revision: 1.2 Maintainer: takagi Status: ready --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.3 Maintainer: takagi Status: ready --> <sect1 id="package.validate.validate"> <title>Validate (本体パッケージ)</title> @@ -15,7 +15,15 @@ 文字列 (定義済みの型。英大文字/英小文字、数値、...) </para> </listitem> - <listitem><para>日付 (最小値、最大値)</para></listitem> + <listitem> + <para>date (date, options) - options に指定できるのは、 + format (%d-%m-%Y あるいは rfc822 準拠形式の日付)、 + min (最小日を表す配列 ($day, $month, $year) + あるいは PEAR::Date オブジェクト)、 + max (最大日を表す配列 ($day, $month, $year) + あるいは PEAR::Date オブジェクト) + </para> + </listitem> <listitem><para>uri (RFC2396)</para></listitem> <listitem> <para> @@ -58,4 +66,4 @@ vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 ---> \ No newline at end of file +--> http://cvs.php.net/viewvc.cgi/peardoc/ja/package/text/text-highlighter/intro.xml?r1=1.2&r2=1.3&diff_format=u Index: peardoc/ja/package/text/text-highlighter/intro.xml diff -u peardoc/ja/package/text/text-highlighter/intro.xml:1.2 peardoc/ja/package/text/text-highlighter/intro.xml:1.3 --- peardoc/ja/package/text/text-highlighter/intro.xml:1.2 Mon Nov 27 14:58:54 2006 +++ peardoc/ja/package/text/text-highlighter/intro.xml Sat Jun 16 14:10:22 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.3 Maintainer: takagi Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.5 Maintainer: takagi Status: ready --> <sect2 id="package.text.text-highlighter.intro"> <title>Introduction</title> @@ -16,6 +16,9 @@ <itemizedlist> <listitem> + <simpara>ABAP</simpara> + </listitem> + <listitem> <simpara>C++</simpara> </listitem> <listitem> @@ -58,6 +61,36 @@ <simpara><acronym>XML</acronym></simpara> </listitem> </itemizedlist> + + <para> + 各種レンダラを使用して、 + さまざまな形式でハイライト結果を出力することができます。 + レンダラの一覧を次に示します。 + </para> + + <itemizedlist> + <listitem> + <simpara>Array</simpara> + </listitem> + <listitem> + <simpara>Console</simpara> + </listitem> + <listitem> + <simpara>HTML - span タグで CSS のクラス名を指定します。 + これがデフォルトのレンダラです。</simpara> + </listitem> + <listitem> + <simpara>HTMLTags - シンプルなタグである B と I、そして U のみを使用します。 + HTML のサブセットしかサポートしていないデバイス (iPod など) で便利です。</simpara> + </listitem> + <listitem> + <simpara>JSON</simpara> + </listitem> + <listitem> + <simpara>XML</simpara> + </listitem> + </itemizedlist> + </sect2> <sect2 id="package.text.text-highlighter.usage"> @@ -100,7 +133,7 @@ その他のフォーマットについてのシンタックスハイライティングを行うには <methodname>Text_Highlighter::factory</methodname> の引数の値 <literal>SQL</literal> を以下のいずれかに変更する必要があります。 - <literal>CPP</literal>、<literal>CSS</literal>、<literal>DIFF</literal>、 + <literal>ABAP</literal>、<literal>CPP</literal>、<literal>CSS</literal>、<literal>DIFF</literal>、 <literal>DTD</literal>、<literal>HTML</literal>、<literal>JAVA</literal>、 <literal>JAVASCRIPT</literal>、<literal>MYSQL</literal>、 <literal>PERL</literal>、<literal>PHP</literal>、 http://cvs.php.net/viewvc.cgi/peardoc/ja/package/structures/structures-datagrid/structures-datagrid/setrenderer.xml?r1=1.3&r2=1.4&diff_format=u Index: peardoc/ja/package/structures/structures-datagrid/structures-datagrid/setrenderer.xml diff -u peardoc/ja/package/structures/structures-datagrid/structures-datagrid/setrenderer.xml:1.3 peardoc/ja/package/structures/structures-datagrid/structures-datagrid/setrenderer.xml:1.4 --- peardoc/ja/package/structures/structures-datagrid/structures-datagrid/setrenderer.xml:1.3 Tue Dec 26 21:13:41 2006 +++ peardoc/ja/package/structures/structures-datagrid/structures-datagrid/setrenderer.xml Sat Jun 16 14:10:22 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8" ?> -<!-- $Revision: 1.3 $ --> -<!-- EN-Revision: 1.11 Maintainer: takagi Status: ready --> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.12 Maintainer: takagi Status: ready --> <refentry id="package.structures.structures-datagrid.structures-datagrid.setrenderer"> <refnamediv> <refname> @@ -71,16 +71,19 @@ レンダラのインスタンスあるいは PEAR_Error を返します。 </para> </refsect1> - <refsect1 id="package.structures.structures-datagrid.structures-datagrid.setrenderer.throws"> - &title.throws; + <refsect1 id="package.structures.structures-datagrid.structures-datagrid.setrenderer.see"> + &title.see; <para> - 例外はスローされません。 + <link linkend="package.structures.structures-datagrid.structures-datagrid.attachrenderer"> + <function>Structures_DataGrid::attachRenderer</function> + </link> + も参照ください。 </para> </refsect1> - <refsect1 id="package.structures.structures-datagrid.structures-datagrid.setrenderer.see"> - &title.see; + <refsect1 id="package.structures.structures-datagrid.structures-datagrid.setrenderer.throws"> + &title.throws; <para> - Structures_DataGrid::attachRenderer も参照ください。 + 例外はスローされません。 </para> </refsect1> <refsect1 id="package.structures.structures-datagrid.structures-datagrid.setrenderer.note"> http://cvs.php.net/viewvc.cgi/peardoc/ja/package/structures/structures-datagrid/structures-datagrid/attachrenderer.xml?r1=1.3&r2=1.4&diff_format=u Index: peardoc/ja/package/structures/structures-datagrid/structures-datagrid/attachrenderer.xml diff -u peardoc/ja/package/structures/structures-datagrid/structures-datagrid/attachrenderer.xml:1.3 peardoc/ja/package/structures/structures-datagrid/structures-datagrid/attachrenderer.xml:1.4 --- peardoc/ja/package/structures/structures-datagrid/structures-datagrid/attachrenderer.xml:1.3 Tue Dec 26 21:13:41 2006 +++ peardoc/ja/package/structures/structures-datagrid/structures-datagrid/attachrenderer.xml Sat Jun 16 14:10:22 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8" ?> -<!-- $Revision: 1.3 $ --> -<!-- EN-Revision: 1.10 Maintainer: takagi Status: ready --> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.11 Maintainer: takagi Status: ready --> <refentry id="package.structures.structures-datagrid.structures-datagrid.attachrenderer"> <refnamediv> <refname> @@ -65,16 +65,19 @@ レンダラのインスタンス、あるいは PEAR_Error オブジェクトを返します。 </para> </refsect1> - <refsect1 id="package.structures.structures-datagrid.structures-datagrid.attachrenderer.throws"> - &title.throws; + <refsect1 id="package.structures.structures-datagrid.structures-datagrid.attachrenderer.see"> + &title.see; <para> - 例外はスローされません。 + <link linkend="package.structures.structures-datagrid.structures-datagrid.setrenderer"> + <function>Structures_DataGrid::setRenderer</function> + </link> + も参照ください。 </para> </refsect1> - <refsect1 id="package.structures.structures-datagrid.structures-datagrid.attachrenderer.see"> - &title.see; + <refsect1 id="package.structures.structures-datagrid.structures-datagrid.attachrenderer.throws"> + &title.throws; <para> - Structures_DataGrid::setRenderer も参照ください。 + 例外はスローされません。 </para> </refsect1> <refsect1 id="package.structures.structures-datagrid.structures-datagrid.attachrenderer.note"> http://cvs.php.net/viewvc.cgi/peardoc/ja/package/structures/structures-datagrid/structures-datagrid-renderer/xul.xml?r1=1.3&r2=1.4&diff_format=u Index: peardoc/ja/package/structures/structures-datagrid/structures-datagrid-renderer/xul.xml diff -u peardoc/ja/package/structures/structures-datagrid/structures-datagrid-renderer/xul.xml:1.3 peardoc/ja/package/structures/structures-datagrid/structures-datagrid-renderer/xul.xml:1.4 --- peardoc/ja/package/structures/structures-datagrid/structures-datagrid-renderer/xul.xml:1.3 Sun Dec 10 01:02:17 2006 +++ peardoc/ja/package/structures/structures-datagrid/structures-datagrid-renderer/xul.xml Sat Jun 16 14:10:22 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8" ?> -<!-- $Revision: 1.3 $ --> -<!-- EN-Revision: 1.8 Maintainer: takagi Status: ready --> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.9 Maintainer: takagi Status: ready --> <refentry id="package.structures.structures-datagrid.structures-datagrid-renderer.xul"> <refnamediv> <refname>Structures_DataGrid_Renderer_XUL</refname> @@ -153,26 +153,36 @@ ドキュメントを作成するのと同様に行います。このドライバは、 &lt;listbox&gt; 要素とその内容のみを処理します。 </para> - <para> - 基本的な使用例はこのようになります。 - <programlisting> -&lt;?php -header('Content-type: application/vnd.mozilla.xul+xml'); + </refsect1> + <refsect1 id="package.structures.structures-datagrid.structures-datagrid-renderer.xul.examples"> + <title>例</title> + <example> + <title>XUL レンダラの使用例</title> + <programlisting role="php"> +<![CDATA[ +<?php +require_once 'Structures/DataGrid.php'; -echo &quot;&lt;?xml version=\&quot;1.0\&quot; encoding=\&quot;ISO-8859-1\&quot;?&gt;\n&quot;; -echo &quot;&lt;?xml-stylesheet href=\&quot;myStyle.css\&quot; type=\&quot;text/css\&quot;?&gt;\n&quot;; +$datagrid =& new Structures_DataGrid(10); +$options = array('dsn' => 'mysql://username@localhost/mydatabase'); +$datagrid->bind("SELECT * FROM mytable", $options); -echo &quot;&lt;window title=\&quot;MyDataGrid\&quot; - xmlns=\&quot;http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul\&quot;&gt;\n&quot;; +header('Content-type: application/vnd.mozilla.xul+xml'); + +echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>\n"; +echo "<?xml-stylesheet href=\"myStyle.css\" type=\"text/css\"?>\n"; -// データグリッドのインスタンスを作成してデータソースを設定し、そしてコールします -$datagrid-&gt;setRenderer('XUL'); -$datagrid-&gt;render(); +echo "<window title=\"MyDataGrid\" + xmlns=\"http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul\">\n"; + +$datagrid->render('XUL'); -echo &quot;&lt;/window&gt;\n&quot;; -?&gt; +echo "</window>\n"; +?> + +]]> </programlisting> - </para> + </example> </refsect1> </refentry> <!-- Keep this comment at the end of the file http://cvs.php.net/viewvc.cgi/peardoc/ja/package/structures/structures-datagrid/structures-datagrid-renderer/smarty.xml?r1=1.4&r2=1.5&diff_format=u Index: peardoc/ja/package/structures/structures-datagrid/structures-datagrid-renderer/smarty.xml diff -u peardoc/ja/package/structures/structures-datagrid/structures-datagrid-renderer/smarty.xml:1.4 peardoc/ja/package/structures/structures-datagrid/structures-datagrid-renderer/smarty.xml:1.5 --- peardoc/ja/package/structures/structures-datagrid/structures-datagrid-renderer/smarty.xml:1.4 Sun Dec 10 01:02:17 2006 +++ peardoc/ja/package/structures/structures-datagrid/structures-datagrid-renderer/smarty.xml Sat Jun 16 14:10:22 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8" ?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.8 Maintainer: takagi Status: ready --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.9 Maintainer: takagi Status: ready --> <refentry id="package.structures.structures-datagrid.structures-datagrid-renderer.smarty"> <refnamediv> <refname>Structures_DataGrid_Renderer_Smarty</refname> @@ -179,27 +179,29 @@ </para> <para> このドライバは、次の Smarty 変数を代入します。 - - $columnSet: カラム設定の配列。 - 構造は次のとおり。 - array ( - 0 =&gt; array ( - 'name' =&gt; フィールド名, - 'label' =&gt; カラムのラベル, - 'link' =&gt; 並べ替え用のリンク, - 'attributes' =&gt; 属性文字列, - ), - ... - ) - - $recordSet: レコードの値の配列。 - - $currentPage: 現在のページ (最初のページは 1)。 - - $recordLimit: ページ単位の行数。 - - $pagesNum: ページ数。 - - $columnsNum: カラム数。 - - $recordsNum: 現在のページのレコード数。 - - $totalRecordsNum: 総レコード数。 - - $firstRecord: 最初のレコード番号 (1 から数え始める)。 - - $lastRecord: 最後のレコード番号 (1 から数え始める)。 - - $currentSort: カラム名および並べ替えの方向の配列。 + <programlisting> +- $columnSet: カラム設定の配列。 + 構造は次のとおり。 + array ( + 0 =&gt; array ( + 'name' =&gt; フィールド名, + 'label' =&gt; カラムのラベル, + 'link' =&gt; 並べ替え用のリンク, + 'attributes' =&gt; 属性文字列, + ), + ... + ) +- $recordSet: レコードの値の配列。 +- $currentPage: 現在のページ (最初のページは 1)。 +- $recordLimit: ページ単位の行数。 +- $pagesNum: ページ数。 +- $columnsNum: カラム数。 +- $recordsNum: 現在のページのレコード数。 +- $totalRecordsNum: 総レコード数。 +- $firstRecord: 最初のレコード番号 (1 から数え始める)。 +- $lastRecord: 最後のレコード番号 (1 から数え始める)。 +- $currentSort: カラム名および並べ替えの方向の配列。 + </programlisting> </para> <para> このドライバは、getPaging という名前の Smarty カスタム関数も登録します。 http://cvs.php.net/viewvc.cgi/peardoc/ja/package/structures/structures-datagrid/structures-datagrid-renderer/htmleditform.xml?r1=1.2&r2=1.3&diff_format=u Index: peardoc/ja/package/structures/structures-datagrid/structures-datagrid-renderer/htmleditform.xml diff -u peardoc/ja/package/structures/structures-datagrid/structures-datagrid-renderer/htmleditform.xml:1.2 peardoc/ja/package/structures/structures-datagrid/structures-datagrid-renderer/htmleditform.xml:1.3 --- peardoc/ja/package/structures/structures-datagrid/structures-datagrid-renderer/htmleditform.xml:1.2 Thu Dec 21 21:47:28 2006 +++ peardoc/ja/package/structures/structures-datagrid/structures-datagrid-renderer/htmleditform.xml Sat Jun 16 14:10:22 2007 @@ -1,11 +1,19 @@ <?xml version="1.0" encoding="utf-8" ?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.2 Maintainer: takagi Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.3 Maintainer: takagi Status: ready --> <refentry id="package.structures.structures-datagrid.structures-datagrid-renderer.htmleditform"> <refnamediv> <refname>Structures_DataGrid_Renderer_HTMLEditForm</refname> <refpurpose>レコードを編集するための HTML フォーム</refpurpose> </refnamediv> + <refsect1 id="package.structures.structures-datagrid.structures-datagrid-renderer.htmleditform.release"> + <title>注意</title> + <para> + このドライバは <emphasis>実験的な</emphasis> + もので、まだ正式にはリリースされていません。 + <emphasis>CVS 版</emphasis> でしか使用できません。 + </para> + </refsect1> <refsect1 id="package.structures.structures-datagrid.structures-datagrid-renderer.htmleditform.modes"> <title>サポートする操作モード</title> <para> http://cvs.php.net/viewvc.cgi/peardoc/ja/package/structures/structures-datagrid/structures-datagrid-datasource/dataobject.xml?r1=1.5&r2=1.6&diff_format=u Index: peardoc/ja/package/structures/structures-datagrid/structures-datagrid-datasource/dataobject.xml diff -u peardoc/ja/package/structures/structures-datagrid/structures-datagrid-datasource/dataobject.xml:1.5 peardoc/ja/package/structures/structures-datagrid/structures-datagrid-datasource/dataobject.xml:1.6 --- peardoc/ja/package/structures/structures-datagrid/structures-datagrid-datasource/dataobject.xml:1.5 Fri May 18 22:41:08 2007 +++ peardoc/ja/package/structures/structures-datagrid/structures-datagrid-datasource/dataobject.xml Sat Jun 16 14:10:22 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8" ?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.8 Maintainer: takagi Status: ready --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.9 Maintainer: takagi Status: ready --> <refentry id="package.structures.structures-datagrid.structures-datagrid-datasource.dataobject"> <refnamediv> <refname>Structures_DataGrid_DataSource_DataObject</refname> @@ -67,6 +67,16 @@ <entry>array()</entry> </row> <row> + <entry>fields_order_property</entry> + <entry>string</entry> + <entry> + DataObject 内に設定するプロパティの名前。このプロパティを使用して、 + フィールドの表示順を設定します。カラムを追加したり生成したりしない限りは、 + この順で表示されます。同時に fields_property も設定する必要があります。 + </entry> + <entry>null</entry> + </row> + <row> <entry>fields_property</entry> <entry>string</entry> <entry> @@ -77,6 +87,18 @@ <entry>'fb_fieldsToRender'</entry> </row> <row> + <entry>formbuilder_integration</entry> + <entry>bool</entry> + <entry> + 非推奨: 代わりに link_level と fields_order_property を使用してください。 + これは、過去との互換性のために残されているものです。true + を指定すると、link_level を 3、 + fields_order_property を 'fb_preDefOrder' + に設定したのと同じ動作となります。 + </entry> + <entry>false</entry> + </row> + <row> <entry>generate_columns</entry> <entry>bool</entry> <entry> @@ -102,12 +124,45 @@ <entry>string</entry> <entry> DataObject 内に設定するプロパティの名前。このプロパティは、 - 'labels' オプションと同じような情報が含まれていることを想定しています。 + 'labels' オプションと同じような情報を含めなければなりません。 'labels' オプションが設定されている場合は、これは使用されません。 </entry> <entry>'fb_fieldLabels'</entry> </row> <row> + <entry>link_keep_key</entry> + <entry>bool</entry> + <entry> + これを true に設定すると、リンク先の値だけでなく元の値 + (通常は外部キー) も保持します。 + この値は、&quot;__key&quot; を付加した名前のキーで保持されます。 + このオプションは、link_level が 0 より大きい場合にしか意味を持ちません。 + 例: country_code の値が 'FR' で、これがリンク先の country テーブルの値 + &quot;France&quot; に置き換えられているとしましょう。 + link_keep_key を true にすると、 + country_code__key の値が &quot;FR&quot; となります。 + </entry> + <entry>false</entry> + </row> + <row> + <entry>link_level</entry> + <entry>int</entry> + <entry> + リンクの表示レベル。0 の場合はリンク先を追いません。</entry> + <entry>0</entry> + </row> + <row> + <entry>link_property</entry> + <entry>string</entry> + <entry> + リンク先の DataObject で設定するプロパティの名前。 + このプロパティには、リンク先の DataObject + から文字列を表示する際に使用するフィールド名の配列を指定します。 + link_level が 0 のときには無意味です。 + </entry> + <entry>'fb_linkDisplayFields'</entry> + </row> + <row> <entry>primary_key</entry> <entry>array</entry> <entry> @@ -128,10 +183,41 @@ </entry> <entry>false</entry> </row> + <row> + <entry>sort_property</entry> + <entry>string</entry> + <entry> + DataObject 内に設定するプロパティの名前。このプロパティは、 + array(&quot;field1&quot;, &quot;field1 DESC&quot;, ...) + 形式の配列でなければなりません。 + データが既にソートされている場合は、 + 現在の設定にこのプロパティの中身が追加されます。 + </entry> + <entry>'fb_linkOrderFields'</entry> + </row> </tbody> </tgroup> </table> </refsect1> + <refsect1 id="package.structures.structures-datagrid.structures-datagrid-datasource.dataobject.examples"> + <title>例</title> + <example> + <title>DB_DataObject の Structures_DataGrid へのバインド</title> + <programlisting role="php"> +<![CDATA[ +<?php +$person = new DataObjects_Person; + +$person->hair = 'red'; +$person->has_glasses = 1; + +$datagrid->bind($person); +?> + +]]> + </programlisting> + </example> + </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/peardoc/ja/package/structures/structures-datagrid/structures-datagrid-column/structures-datagrid-column.xml?r1=1.5&r2=1.6&diff_format=u Index: peardoc/ja/package/structures/structures-datagrid/structures-datagrid-column/structures-datagrid-column.xml diff -u peardoc/ja/package/structures/structures-datagrid/structures-datagrid-column/structures-datagrid-column.xml:1.5 peardoc/ja/package/structures/structures-datagrid/structures-datagrid-column/structures-datagrid-column.xml:1.6 --- peardoc/ja/package/structures/structures-datagrid/structures-datagrid-column/structures-datagrid-column.xml:1.5 Tue Dec 26 21:13:42 2006 +++ peardoc/ja/package/structures/structures-datagrid/structures-datagrid-column/structures-datagrid-column.xml Sat Jun 16 14:10:22 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8" ?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.19 Maintainer: takagi Status: ready --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.20 Maintainer: takagi Status: ready --> <refentry id="package.structures.structures-datagrid.structures-datagrid-column.structures-datagrid-column"> <refnamediv> <refname> @@ -155,15 +155,12 @@ </variablelist> </para> </refsect1> - <refsect1 id="package.structures.structures-datagrid.structures-datagrid-column.structures-datagrid-column.throws"> - &title.throws; - <para> - 例外はスローされません。 - </para> - </refsect1> <refsect1 id="package.structures.structures-datagrid.structures-datagrid-column.structures-datagrid-column.see"> &title.see; <para> + <ulink url="http://www.php.net/manual/en/language.pseudo-types.php">http://www.php.net/manual/ja/language.pseudo-types.php</ulink> + </para> + <para> <link linkend="package.structures.structures-datagrid.structures-datagrid-column.setformatter"> <function>Structures_DataGrid_Column::setFormatter</function> </link> @@ -172,10 +169,13 @@ <link linkend="package.structures.structures-datagrid.structures-datagrid.addcolumn"> <function>Structures_DataGrid::addColumn</function> </link> + も参照ください。 </para> + </refsect1> + <refsect1 id="package.structures.structures-datagrid.structures-datagrid-column.structures-datagrid-column.throws"> + &title.throws; <para> - <ulink url="http://www.php.net/manual/en/language.pseudo-types.php">http://www.php.net/manual/en/language.pseudo-types.php</ulink> - も参照ください。 + 例外はスローされません。 </para> </refsect1> <refsect1 id="package.structures.structures-datagrid.structures-datagrid-column.structures-datagrid-column.note"> http://cvs.php.net/viewvc.cgi/peardoc/ja/package/structures/structures-datagrid/structures-datagrid-column/setorderby.xml?r1=1.4&r2=1.5&diff_format=u Index: peardoc/ja/package/structures/structures-datagrid/structures-datagrid-column/setorderby.xml diff -u peardoc/ja/package/structures/structures-datagrid/structures-datagrid-column/setorderby.xml:1.4 peardoc/ja/package/structures/structures-datagrid/structures-datagrid-column/setorderby.xml:1.5 --- peardoc/ja/package/structures/structures-datagrid/structures-datagrid-column/setorderby.xml:1.4 Tue Dec 26 21:13:42 2006 +++ peardoc/ja/package/structures/structures-datagrid/structures-datagrid-column/setorderby.xml Sat Jun 16 14:10:22 2007 @@ -1,12 +1,12 @@ <?xml version="1.0" encoding="utf-8" ?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.4 Maintainer: takagi Status: ready --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.6 Maintainer: takagi Status: ready --> <refentry id="package.structures.structures-datagrid.structures-datagrid-column.setorderby"> <refnamediv> <refname> <function>Structures_DataGrid_Column::setOrderBy</function> </refname> - <refpurpose>データの並べ替えの基準となるフィールド名あるいは式を設定する</refpurpose> + <refpurpose>データの並べ替えの基準となるフィールド名を設定する</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> @@ -25,11 +25,8 @@ </refsynopsisdiv> <refsect1 id="package.structures.structures-datagrid.structures-datagrid-column.setorderby.desc"> &title.desc; - <para> - データの並べ替えの基準となるフィールドの名前を設定します。 - SQL ベースのデータソースでは、これは SQL の式 (関数など...) になることもあります。 - </para> - </refsect1> + &notdocumented; +</refsect1> <refsect1 id="package.structures.structures-datagrid.structures-datagrid-column.setorderby.param"> &title.param; <para> @@ -40,7 +37,7 @@ <parameter>$str</parameter> </term> <listitem> - <para>フィールド名あるいは式。</para> + <para>フィールド名。</para> </listitem> </varlistentry> </variablelist> http://cvs.php.net/viewvc.cgi/peardoc/ja/package/structures/structures-datagrid/structures-datagrid-column/setformatter.xml?r1=1.5&r2=1.6&diff_format=u Index: peardoc/ja/package/structures/structures-datagrid/structures-datagrid-column/setformatter.xml diff -u peardoc/ja/package/structures/structures-datagrid/structures-datagrid-column/setformatter.xml:1.5 peardoc/ja/package/structures/structures-datagrid/structures-datagrid-column/setformatter.xml:1.6 --- peardoc/ja/package/structures/structures-datagrid/structures-datagrid-column/setformatter.xml:1.5 Tue Dec 26 21:13:42 2006 +++ peardoc/ja/package/structures/structures-datagrid/structures-datagrid-column/setformatter.xml Sat Jun 16 14:10:22 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8" ?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.13 Maintainer: takagi Status: ready --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.14 Maintainer: takagi Status: ready --> <refentry id="package.structures.structures-datagrid.structures-datagrid-column.setformatter"> <refnamediv> <refname> @@ -70,12 +70,6 @@ 失敗した場合に PEAR_Error を返します。 </para> </refsect1> - <refsect1 id="package.structures.structures-datagrid.structures-datagrid-column.setformatter.throws"> - &title.throws; - <para> - 例外はスローされません。 - </para> - </refsect1> <refsect1 id="package.structures.structures-datagrid.structures-datagrid-column.setformatter.see"> &title.see; <para> @@ -83,6 +77,12 @@ も参照ください。 </para> </refsect1> + <refsect1 id="package.structures.structures-datagrid.structures-datagrid-column.setformatter.throws"> + &title.throws; + <para> + 例外はスローされません。 + </para> + </refsect1> <refsect1 id="package.structures.structures-datagrid.structures-datagrid-column.setformatter.note"> &title.note; &note.notstatic; http://cvs.php.net/viewvc.cgi/peardoc/ja/package/structures/structures-datagrid/structures-datagrid-column/getorderby.xml?r1=1.4&r2=1.5&diff_format=u Index: peardoc/ja/package/structures/structures-datagrid/structures-datagrid-column/getorderby.xml diff -u peardoc/ja/package/structures/structures-datagrid/structures-datagrid-column/getorderby.xml:1.4 peardoc/ja/package/structures/structures-datagrid/structures-datagrid-column/getorderby.xml:1.5 --- peardoc/ja/package/structures/structures-datagrid/structures-datagrid-column/getorderby.xml:1.4 Tue Dec 26 21:13:42 2006 +++ peardoc/ja/package/structures/structures-datagrid/structures-datagrid-column/getorderby.xml Sat Jun 16 14:10:22 2007 @@ -1,12 +1,12 @@ <?xml version="1.0" encoding="utf-8" ?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.4 Maintainer: takagi Status: ready --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.5 Maintainer: takagi Status: ready --> <refentry id="package.structures.structures-datagrid.structures-datagrid-column.getorderby"> <refnamediv> <refname> <function>Structures_DataGrid_Column::getOrderBy</function> </refname> - <refpurpose>データの並べ替えの基準となるフィールド名あるいは式を取得する</refpurpose> + <refpurpose>データの並べ替えの基準となるフィールド名を取得する</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> @@ -22,9 +22,12 @@ </refsynopsisdiv> <refsect1 id="package.structures.structures-datagrid.structures-datagrid-column.getorderby.desc"> &title.desc; + &notdocumented; +</refsect1> + <refsect1 id="package.structures.structures-datagrid.structures-datagrid-column.getorderby.returns"> + &title.returns; <para> - データの並べ替えの基準となるフィールドの名前を返します。 - SQL ベースのデータソースでは、これは SQL の式 (関数など...) になることもあります。 + フィールド名を返します。 </para> </refsect1> <refsect1 id="package.structures.structures-datagrid.structures-datagrid-column.getorderby.throws"> http://cvs.php.net/viewvc.cgi/peardoc/ja/package/structures/structures-datagrid/example-advanced.xml?r1=1.2&r2=1.3&diff_format=u Index: peardoc/ja/package/structures/structures-datagrid/example-advanced.xml diff -u peardoc/ja/package/structures/structures-datagrid/example-advanced.xml:1.2 peardoc/ja/package/structures/structures-datagrid/example-advanced.xml:1.3 --- peardoc/ja/package/structures/structures-datagrid/example-advanced.xml:1.2 Mon Oct 16 04:05:03 2006 +++ peardoc/ja/package/structures/structures-datagrid/example-advanced.xml Sat Jun 16 14:10:22 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8" ?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.21 Maintainer: takagi Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.22 Maintainer: takagi Status: ready --> <refentry id="package.structures.structures-datagrid.example-advanced"> <refnamediv> @@ -17,10 +17,6 @@ この例では、ユーザ管理システムのインターフェイスを作成する方法を示します。 データベースへのアクセスの処理には DB_DataObject パッケージを使用します。 </para> - <para> - <emphasis>警告:</emphasis> この例では、Structures_DataGrid 0.7 - で使用可能となる新機能を利用しています。今のところは CVS 版を使用してください。 - </para> <example> <title>ユーザ管理システムの例</title> http://cvs.php.net/viewvc.cgi/peardoc/ja/package/structures/structures-datagrid/custom-datasources.xml?r1=1.1&r2=1.2&diff_format=u Index: peardoc/ja/package/structures/structures-datagrid/custom-datasources.xml diff -u peardoc/ja/package/structures/structures-datagrid/custom-datasources.xml:1.1 peardoc/ja/package/structures/structures-datagrid/custom-datasources.xml:1.2 --- peardoc/ja/package/structures/structures-datagrid/custom-datasources.xml:1.1 Sun Oct 1 05:58:45 2006 +++ peardoc/ja/package/structures/structures-datagrid/custom-datasources.xml Sat Jun 16 14:10:22 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8" ?> -<!-- $Revision: 1.1 $ --> -<!-- EN-Revision: 1.6 Maintainer: takagi Status: ready --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.7 Maintainer: takagi Status: ready --> <refentry id="package.structures.structures-datagrid.custom-datasources"> <refnamediv> @@ -196,7 +196,7 @@ } function count() { - $query = "SELECT * FROM animals WHERE species='cat'"; + $query = "SELECT COUNT(*) FROM animals WHERE species='cat'"; return $this->db->getOne($query); } http://cvs.php.net/viewvc.cgi/peardoc/ja/package/structures/structures-datagrid.xml?r1=1.6&r2=1.7&diff_format=u Index: peardoc/ja/package/structures/structures-datagrid.xml diff -u peardoc/ja/package/structures/structures-datagrid.xml:1.6 peardoc/ja/package/structures/structures-datagrid.xml:1.7 --- peardoc/ja/package/structures/structures-datagrid.xml:1.6 Sat Mar 17 08:43:07 2007 +++ peardoc/ja/package/structures/structures-datagrid.xml Sat Jun 16 14:10:22 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8" ?> -<!-- $Revision: 1.6 $ --> -<!-- EN-Revision: 1.42 Maintainer: takagi Status: ready --> +<!-- $Revision: 1.7 $ --> +<!-- EN-Revision: 1.43 Maintainer: takagi Status: ready --> <sect1 id="package.structures.structures-datagrid"> <title>Structures_DataGrid</title> <!-- @@ -145,6 +145,7 @@ <sect2 id="package.structures.structures-datagrid.structures-datagrid-renderer"> <title>レンダラドライバ</title> +&package.structures.structures-datagrid.structures-datagrid-renderer.checkablehtmltable; &package.structures.structures-datagrid.structures-datagrid-renderer.console; &package.structures.structures-datagrid.structures-datagrid-renderer.csv; &package.structures.structures-datagrid.structures-datagrid-renderer.flexy; http://cvs.php.net/viewvc.cgi/peardoc/ja/package/php/php-codesniffer/usage.xml?r1=1.4&r2=1.5&diff_format=u Index: peardoc/ja/package/php/php-codesniffer/usage.xml diff -u peardoc/ja/package/php/php-codesniffer/usage.xml:1.4 peardoc/ja/package/php/php-codesniffer/usage.xml:1.5 --- peardoc/ja/package/php/php-codesniffer/usage.xml:1.4 Sat May 12 06:36:06 2007 +++ peardoc/ja/package/php/php-codesniffer/usage.xml Sat Jun 16 14:10:22 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.4 Maintainer: takagi Status: ready --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.5 Maintainer: takagi Status: ready --> <refentry id="package.php.php-codesniffer.usage"> <refnamediv> <refname>使用法</refname> @@ -18,17 +18,21 @@ <para> <screen> <![CDATA[ -Usage: phpcs [-nvi] [--report=<report>] [--standard=<standard>] [--extensions=<extensions>] <file> ... - <file> : one or more files and/or directories to check - <standard> : the name of the coding standard to use - <report> : print either the "full" or "summary" report - <extensions> : a comma separated list of file extensions to check (only valid if checking a directory) - -l : local directory only, no recursion - -n : do not print warnings - -v[v][v] : print verbose output - -i : show a list of installed coding standards - -h --help : print this help message - --version : print version information +Usage: phpcs [-nlvi] [--report=<report>] [--standard=<standard>] + [--generator=<generator>] [--extensions=<extensions>] <file> ... + -n Do not print warnings + -l Local directory only, no recursion + -v[v][v] Print verbose output + -i Show a list of installed coding standards + --help Print this help message + --version Print version information + <file> One or more files and/or directories to check + <extensions> A comma separated list of file extensions to check + (only valid if checking a directory) + <standard> The name of the coding standard to use + <generator> The name of a doc genertor to use + (forces doc generation instead of checking) + <report> Print either the "full" or "summary" report ]]> </screen> </para> http://cvs.php.net/viewvc.cgi/peardoc/ja/package/php/php-codesniffer/coding-standard-class.xml?r1=1.2&r2=1.3&diff_format=u Index: peardoc/ja/package/php/php-codesniffer/coding-standard-class.xml diff -u peardoc/ja/package/php/php-codesniffer/coding-standard-class.xml:1.2 peardoc/ja/package/php/php-codesniffer/coding-standard-class.xml:1.3 --- peardoc/ja/package/php/php-codesniffer/coding-standard-class.xml:1.2 Fri May 18 22:41:08 2007 +++ peardoc/ja/package/php/php-codesniffer/coding-standard-class.xml Sat Jun 16 14:10:22 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.2 Maintainer: takagi Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.3 Maintainer: takagi Status: ready --> <refentry id="package.php.php-codesniffer.coding-standard-class"> <refnamediv> <refname>コーディング規約クラスのメソッド</refname> @@ -54,7 +54,7 @@ { return array( 'PEAR', - 'Generic/Sniffs/Formatting/MultipleStatementAlignmentSniff', + 'Generic/Sniffs/Formatting/MultipleStatementAlignmentSniff.php', 'Generic/Sniffs/Functions', ); @@ -121,7 +121,7 @@ public function getExcludedSniffs() { return array( - 'PEAR/Sniffs/ControlStructures/ControlSignatureSniff', + 'PEAR/Sniffs/ControlStructures/ControlSignatureSniff.php', ); }//end getExcludedSniffs() http://cvs.php.net/viewvc.cgi/peardoc/ja/package/mail/mail-mime.xml?r1=1.4&r2=1.5&diff_format=u Index: peardoc/ja/package/mail/mail-mime.xml diff -u peardoc/ja/package/mail/mail-mime.xml:1.4 peardoc/ja/package/mail/mail-mime.xml:1.5 --- peardoc/ja/package/mail/mail-mime.xml:1.4 Wed Feb 25 15:11:15 2004 +++ peardoc/ja/package/mail/mail-mime.xml Sat Jun 16 14:10:22 2007 @@ -1,5 +1,5 @@ -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.3 Maintainer: elf Status: ready --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.4 Maintainer: elf Status: ready --> <sect1 id="package.mail.mail-mime"> <title>Mail_Mime</title> @@ -15,6 +15,8 @@ APIを提供します。 </para> + &package.mail.mail-mime.example; + &package.mail.mail-mimedecode.example; &package.mail.mail-mime.mail-mime; &package.mail.mail-mime.addattachment; &package.mail.mail-mime.addhtmlimage; @@ -22,7 +24,6 @@ &package.mail.mail-mime.headers; &package.mail.mail-mime.sethtmlbody; &package.mail.mail-mime.settxtbody; - &package.mail.mail-mime.example; &package.mail.mail-mimepart.mail-mimepart; &package.mail.mail-mimepart.addsubpart; &package.mail.mail-mimepart.encode; @@ -30,7 +31,6 @@ &package.mail.mail-mimedecode.decode; &package.mail.mail-mimedecode.uudecode; &package.mail.mail-mimedecode.getxml; - &package.mail.mail-mimedecode.example; </sect1> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/peardoc/ja/package/console/console-color/colorcodes.xml?r1=1.1&r2=1.2&diff_format=u Index: peardoc/ja/package/console/console-color/colorcodes.xml diff -u peardoc/ja/package/console/console-color/colorcodes.xml:1.1 peardoc/ja/package/console/console-color/colorcodes.xml:1.2 --- peardoc/ja/package/console/console-color/colorcodes.xml:1.1 Sat Dec 2 06:33:48 2006 +++ peardoc/ja/package/console/console-color/colorcodes.xml Sat Jun 16 14:10:22 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1 $ --> -<!-- EN-Revision: 1.1 Maintainer: takagi Status: ready --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.2 Maintainer: takagi Status: ready --> <refentry id="package.console.console-color.colorcodes"> <refnamediv> <refname>色コード</refname> @@ -55,7 +55,7 @@ <row> <entry>マゼンタ</entry> <entry><literal>%m</literal></entry> - <entry><literal>%m</literal></entry> + <entry><literal>%M</literal></entry> <entry><literal>%5</literal></entry> </row> <row> http://cvs.php.net/viewvc.cgi/peardoc/ja/package/authentication/auth/auth/auth.xml?r1=1.8&r2=1.9&diff_format=u Index: peardoc/ja/package/authentication/auth/auth/auth.xml diff -u peardoc/ja/package/authentication/auth/auth/auth.xml:1.8 peardoc/ja/package/authentication/auth/auth/auth.xml:1.9 --- peardoc/ja/package/authentication/auth/auth/auth.xml:1.8 Sat Dec 30 08:38:14 2006 +++ peardoc/ja/package/authentication/auth/auth/auth.xml Sat Jun 16 14:10:22 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.8 $ --> -<!-- EN-Revision: 1.15 Maintainer: haruki Status: ready --> +<!-- $Revision: 1.9 $ --> +<!-- EN-Revision: 1.16 Maintainer: haruki Status: ready --> <refentry id="package.authentication.auth.auth.auth"> <refnamediv> <refname>Auth::Auth()</refname> @@ -52,7 +52,12 @@ </term> <listitem> <para> - ストレージコンテナに渡されるオプション + Auth 自身およびストレージドライバの両方についてのオプションを含む配列。 + グローバルなオプションについては + <link linkend="package.authentication.auth.intro-options"> + Auth のオプション + </link>、 + 各ドライバ固有のオプションについては個々のストレージドライバのドキュメントを参照ください。 </para> </listitem> </varlistentry> http://cvs.php.net/viewvc.cgi/peardoc/ja/package/authentication/auth.xml?r1=1.8&r2=1.9&diff_format=u Index: peardoc/ja/package/authentication/auth.xml diff -u peardoc/ja/package/authentication/auth.xml:1.8 peardoc/ja/package/authentication/auth.xml:1.9 --- peardoc/ja/package/authentication/auth.xml:1.8 Sun Jan 21 04:37:58 2007 +++ peardoc/ja/package/authentication/auth.xml Sat Jun 16 14:10:22 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.8 $ --> -<!-- EN-Revision: 1.11 Maintainer: haruki Status: ready --> +<!-- $Revision: 1.9 $ --> +<!-- EN-Revision: 1.12 Maintainer: haruki Status: ready --> <sect1 id="package.authentication.auth"> <title>Auth</title> @@ -9,8 +9,9 @@ </para> &package.authentication.auth.intro; - &package.authentication.auth.intro-storage; + &package.authentication.auth.intro-options; &package.authentication.auth.intro-logging; + &package.authentication.auth.intro-storage; &package.authentication.auth.storage.array; &package.authentication.auth.storage.db; http://cvs.php.net/viewvc.cgi/peardoc/ja/package/validate.xml?r1=1.2&r2=1.3&diff_format=u Index: peardoc/ja/package/validate.xml diff -u peardoc/ja/package/validate.xml:1.2 peardoc/ja/package/validate.xml:1.3 --- peardoc/ja/package/validate.xml:1.2 Wed Apr 4 14:40:01 2007 +++ peardoc/ja/package/validate.xml Sat Jun 16 14:10:22 2007 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.4 Maintainer: takagi Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.5 Maintainer: takagi Status: ready --> <chapter id="package.validate"> <title>検証 (Validate)</title> @@ -20,6 +20,7 @@ <listitem><para>ブラジル: Validate_PTBR</para></listitem> <listitem><para>カナダ: Validate_CA</para></listitem> <listitem><para>デンマーク: Validate_DK</para></listitem> + <listitem><para>フィンランド: Validate_FI</para></listitem> <listitem><para>フランス: Validate_FR</para></listitem> <listitem><para>ドイツ: Validate_DE</para></listitem> <listitem><para>アイルランド: Validate_IE</para></listitem> @@ -58,6 +59,7 @@ &package.validate.validate-dk; &package.validate.validate-es; &package.validate.validate-esMX; + &package.validate.validate-fi; &package.validate.validate-fr; &package.validate.validate-ie; &package.validate.validate-in; http://cvs.php.net/viewvc.cgi/peardoc/ja/package/structures/structures-datagrid/structures-datagrid-renderer/checkablehtmltable.xml?view=markup&rev=1.1 Index: peardoc/ja/package/structures/structures-datagrid/structures-datagrid-renderer/checkablehtmltable.xml +++ peardoc/ja/package/structures/structures-datagrid/structures-datagrid-renderer/checkablehtmltable.xml <?xml version="1.0" encoding="utf-8" ?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: takagi Status: ready --> <refentry id="package.structures.structures-datagrid.structures-datagrid-renderer.checkablehtmltable"> <refnamediv> <refname>Structures_DataGrid_Renderer_CheckableHTMLTable</refname> <refpurpose>グリッドの各行にチェックボックスをつけた HTML テーブルレンダリングドライバ</refpurpose> </refnamediv> <refsect1 id="package.structures.structures-datagrid.structures-datagrid-renderer.checkablehtmltable.release"> <title>注意</title> <para> このドライバは <emphasis>実験的な</emphasis> もので、まだ正式にはリリースされていません。 <emphasis>CVS 版</emphasis> でしか使用できません。 </para> </refsect1> <refsect1 id="package.structures.structures-datagrid.structures-datagrid-renderer.checkablehtmltable.desc"> <title>説明</title> <para> DataGrid を、各行にチェックボックスのついた HTML テーブルとしてレンダリングするドライバです。 </para> </refsect1> <refsect1 id="package.structures.structures-datagrid.structures-datagrid-renderer.checkablehtmltable.modes"> <title>サポートする操作モード</title> <para> このドライバは次の操作モードをサポートしています。 </para> <table> <title>このドライバがサポートする操作モード</title> <tgroup cols="2"> <thead> <row> <entry>モード</entry> <entry>サポートしている?</entry> </row> </thead> <tbody> <row> <entry>コンテナのサポート</entry> <entry>yes</entry> </row> <row> <entry>出力バッファリング</entry> <entry>yes</entry> </row> <row> <entry>ダイレクトレンダリング</entry> <entry>no</entry> </row> <row> <entry>ストリーミング</entry> <entry>no</entry> </row> </tbody> </tgroup> </table> </refsect1> <refsect1 id="package.structures.structures-datagrid.structures-datagrid-renderer.checkablehtmltable.options"> <title>オプション</title> <para> このドライバは、以下のオプションを受け付けます。 </para> <table> <title>このドライバのオプション</title> <tgroup cols="4"> <thead> <row> <entry>オプション</entry> <entry>型</entry> <entry>説明</entry> <entry>デフォルト値</entry> </row> </thead> <tbody> <row> <entry>buildFooter</entry> <entry>bool</entry> <entry>フッタを作成するかどうか。</entry> <entry>true</entry> </row> <row> <entry>buildHeader</entry> <entry>bool</entry> <entry>ヘッダを作成するかどうか。</entry> <entry>true</entry> </row> <row> <entry>columnAttributes</entry> <entry>array</entry> <entry> カラムのセルの属性。 array(fieldName =&gt; array(attribute =&gt; value, ...) ...) 形式の配列となります。 このオプションは、XML/HTML ベースのドライバでのみ使用します。 </entry> <entry>array()</entry> </row> <row> <entry>convertEntities</entry> <entry>bool</entry> <entry> html エンティティを変換するかどうか。 htmlspecialchars() をコールします。 </entry> <entry>true</entry> </row> <row> <entry>defaultCellValue</entry> <entry>string</entry> <entry>空のセルに表示するデフォルトの値。</entry> <entry>null</entry> </row> <row> <entry>defaultColumnValues</entry> <entry>array</entry> <entry> カラムごとに指定するセルのデフォルト値。 array(fieldName =&gt; value, ...) 形式の配列となります。 </entry> <entry>array()</entry> </row> <row> <entry>emptyRowAttributes</entry> <entry>array</entry> <entry>空の行についての属性を含む連想配列。</entry> <entry>array()</entry> </row> <row> <entry>encoding</entry> <entry>string</entry> <entry> 内容のエンコーディング。mbstring 拡張モジュールが使用可能な場合、 デフォルト値は mb_internal_encoding() から取得します。 それ以外の場合のデフォルト値は ISO-8859-1 となります。 </entry> <entry>'ISO-8859-1'</entry> </row> <row> <entry>evenRowAttributes</entry> <entry>array</entry> <entry>偶数行の属性を含む連想配列。</entry> <entry>array()</entry> </row> <row> <entry>excludeVars</entry> <entry>array</entry> <entry>作成される HTTP クエリから取り除く変数。</entry> <entry>array()</entry> </row> <row> <entry>extraVars</entry> <entry>array</entry> <entry>作成される HTTP クエリに追加される変数。</entry> <entry>array()</entry> </row> <row> <entry>fillWithEmptyRows</entry> <entry>bool</entry> <entry>すべてのページで行数が同じになるようにするかどうか。</entry> <entry>false</entry> </row> <row> <entry>form</entry> <entry>object</entry> <entry>HTML_QuickForm オブジェクトのインスタンス。</entry> <entry>null</entry> </row> <row> <entry>formRenderer</entry> <entry>object</entry> <entry>HTML_QuickForm_Renderer_QuickHtml オブジェクトのインスタンス。</entry> <entry>null</entry> </row> <row> <entry>headerAttributes</entry> <entry>array</entry> <entry> 見出し行の属性。array(attribute =&gt; value, ...) 形式の配列となります。 </entry> <entry>array()</entry> </row> <row> <entry>hideColumnLinks</entry> <entry>array</entry> <entry> デフォルトでは、すべてのカラムで並べ替えリンクが有効になります。 このオプションを使用すると、指定したカラムの並べ替えリンクを無効にできます。 array(fieldName, ...) 形式の配列で指定します。 このオプションは、並べ替えをサポートしているドライバでのみ有効です。 </entry> <entry>array()</entry> </row> <row> <entry>inputName</entry> <entry>string</entry> <entry>チェックボックスの HTML_QuickForm 要素名。</entry> <entry>'checkedItems'</entry> </row> <row> <entry>numberAlign</entry> <entry>bool</entry> <entry>数値を右詰めにするかどうか。</entry> <entry>true</entry> </row> <row> <entry>oddRowAttributes</entry> <entry>array</entry> <entry>奇数行の属性を含む連想配列。</entry> <entry>array()</entry> </row> <row> <entry>primaryKey</entry> <entry>string</entry> <entry>主キーの名前。この値をチェックボックスで使用します。</entry> <entry>'id'</entry> </row> <row> <entry>selfPath</entry> <entry>string</entry> <entry>並べ替えおよびページ処理に使用するパス。</entry> <entry>$_SERVER['PHP_SELF']</entry> </row> <row> <entry>sortIconASC</entry> <entry>string</entry> <entry> 現在の並び順が昇順であることを示すアイコン。テキストか、 あるいは画像を表す HTML となります。 </entry> <entry>''</entry> </row> <row> <entry>sortIconDESC</entry> <entry>string</entry> <entry> 現在の並び順が降順であることを示すアイコン。テキストか、 あるいは画像を表す HTML となります。 </entry> <entry>''</entry> </row> <row> <entry>sortingResetsPaging</entry> <entry>bool</entry> <entry>並べ替えの HTTP クエリで、ページをリセットするかどうか。</entry> <entry>true</entry> </row> </tbody> </tgroup> </table> </refsect1> <refsect1 id="package.structures.structures-datagrid.structures-datagrid-renderer.checkablehtmltable.notes"> <title>全般的な注意</title> <para> このドライバは、テーブルの各行の最初のカラムにチェックボックスを配置します。 デフォルトでは、オプション 'inputName' で指定した名前の新しいカラムがチェックボックス用に作成されます。 このカラムをカスタマイズしたい場合は、次の例で示すようにカラムを自分で作成します。 </para> <para> </para> </refsect1> <refsect1 id="package.structures.structures-datagrid.structures-datagrid-renderer.checkablehtmltable.examples"> <title>例</title> <example> <title>基本的な使用例</title> <programlisting role="php"> <![CDATA[ <?php require_once 'HTML/QuickForm.php'; require_once 'HTML/QuickForm/Renderer/QuickHtml.php'; require_once 'Structures/DataGrid.php'; // フォームおよび QuickHtml レンダラを準備します $form =& new HTML_QuickForm(); $renderer =& new HTML_QuickForm_Renderer_QuickHtml(); // アクション選択用の要素と送信ボタンをフォームに追加します $form->addElement('select', 'action', 'choose', array('delete' => 'Delete', 'move' => 'Move to archive')); $form->addElement('submit', 'submit', 'Save'); // DataGrid を準備します $dg =& new Structures_DataGrid(); if (PEAR::isError($dg)) { die($dg->getMessage() . '<br />' . $dg->getDebugInfo()); } // データをバインドします (たとえば SQL クエリや MDB2 を使用します) $error = $dg->bind('SELECT * FROM news', array('dsn' => 'mysql://user:password@server/database')); if (PEAR::isError($error)) { die($error->getMessage() . '<br />' . $error->getDebugInfo()); } // デフォルトでは、チェックボックス用のカラムをレンダラが自動的に追加します。 // カラムを自分で追加するには、次の 4 行のようにします $column = new Structures_DataGrid_Column('checkboxes', 'idList', null, array('width' => '10')); $dg->addColumn($column); $dg->generateColumns(); $rendererOptions = array('form' => $form, 'formRenderer' => $renderer, 'inputName' => 'idList', 'primaryKey' => 'id' ); // フォームのテンプレート用の文字列を使用します $tpl = ''; // HTML テーブルを作成し、それをテンプレート文字列に追加します $tpl .= $dg->getOutput('CheckableHTMLTable', $rendererOptions); if (PEAR::isError($tpl)) { die($tpl->getMessage() . '<br />' . $tpl->getDebugInfo()); } // 選択ボックスと送信ボタンをテンプレート文字列に追加します $tpl .= $renderer->elementToHtml('action'); $tpl .= $renderer->elementToHtml('submit'); // フォームを出力する準備ができました (toHtml() は、<form> / </form> // をテンプレートに自動的に追加します) echo $renderer->toHtml($tpl); // フォームが送信されてデータが正しかった場合は、その内容を表示します if ($form->isSubmitted() && $form->validate()) { var_dump($form->getSubmitValues()); } ?> ]]> </programlisting> </example> </refsect1> </refentry> <!-- 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 sgml-parent-document:nil sgml-default-dtd-file:"../../../../../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 -->
« previous php.pear.doc (#9778) next »