cvs: peardoc /ja/package/html html-quickform.xml /ja/package/html/html-quickform tutorial.xml
/ja/package/html/html-quickform-controller/html-quickform-action perform.xml /ja/package/html/html-quickform-controller/html-quickform-page
addaction.xml buildform.xml getbuttonname.xml handle.xml html-quickform-page.xml isformbuilt.xml /ja/package/html/html-quickform/html-quickform
accept.xml addelement.xml addformrule.xml apiversion.xml createelement.xml elementexists.xml errormessage.xml getmaxfilesize.xml html-quickform.xml
iserror.xml istyperegistered.xml removeelement.xml setmaxfilesize.xml updateelementattr.xml

From: Date: Thu, 01 Jun 2006 13:27:54 +0000
Subject: cvs: peardoc /ja/package/html html-quickform.xml /ja/package/html/html-quickform tutorial.xml
/ja/package/html/html-quickform-controller/html-quickform-action perform.xml /ja/package/html/html-quickform-controller/html-quickform-page
addaction.xml buildform.xml getbuttonname.xml handle.xml html-quickform-page.xml isformbuilt.xml /ja/package/html/html-quickform/html-quickform
accept.xml addelement.xml addformrule.xml apiversion.xml createelement.xml elementexists.xml errormessage.xml getmaxfilesize.xml html-quickform.xml
iserror.xml istyperegistered.xml removeelement.xml setmaxfilesize.xml updateelementattr.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-7970@lists.php.net to get a copy of this message
takagi Thu Jun 1 13:27:54 2006 UTC Modified files: /peardoc/ja/package/html/html-quickform/html-quickform updateelementattr.xml setmaxfilesize.xml removeelement.xml istyperegistered.xml iserror.xml html-quickform.xml getmaxfilesize.xml errormessage.xml elementexists.xml createelement.xml apiversion.xml addformrule.xml addelement.xml accept.xml /peardoc/ja/package/html/html-quickform tutorial.xml /peardoc/ja/package/html/html-quickform-controller/html-quickform-page isformbuilt.xml html-quickform-page.xml handle.xml getbuttonname.xml buildform.xml addaction.xml /peardoc/ja/package/html/html-quickform-controller/html-quickform-action perform.xml /peardoc/ja/package/html html-quickform.xml Log: sync with en.

http://cvs.php.net/viewcvs.cgi/peardoc/ja/package/html/html-quickform/html-quickform/updateelementattr.xml?r1=1.2&r2=1.3&diff_format=u Index: peardoc/ja/package/html/html-quickform/html-quickform/updateelementattr.xml diff -u peardoc/ja/package/html/html-quickform/html-quickform/updateelementattr.xml:1.2 peardoc/ja/package/html/html-quickform/html-quickform/updateelementattr.xml:1.3 --- peardoc/ja/package/html/html-quickform/html-quickform/updateelementattr.xml:1.2 Tue Feb 24 16:29:12 2004 +++ peardoc/ja/package/html/html-quickform/html-quickform/updateelementattr.xml Thu Jun 1 13:27:53 2006 @@ -1,5 +1,6 @@ -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.1 Maintainer: elf Status: ready --> +<?xml version="1.0" encoding="utf-8" ?> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.2 Maintainer: elf Status: ready --> <refentry id="package.html.html-quickform.html-quickform.updateelementattr"> <refnamediv> <refname>HTML_QuickForm::updateElementAttr()</refname> @@ -21,6 +22,14 @@ <refsect1 id="package.html.html-quickform.html-quickform.updateelementattr.desc"> &title.desc; <para>ひとつまたは複数の要素の属性を更新します。</para> + <warning> + <para> + グループや、グループをもとにした要素 (date、hierselect) + では動作しないかもしれません。 + これらの要素に対して確実に動作させるには、 + グループ化された要素の属性を手動で更新しなければなりません。 + </para> + </warning> </refsect1> <refsect1 id="package.html.html-quickform.html-quickform.updateelementattr.param"> &title.param; @@ -46,7 +55,7 @@ </term> <listitem> <para> - HTML属性の配列か文字列です。 + HTML 属性の配列か文字列です。 </para> </listitem> </varlistentry> @@ -56,7 +65,7 @@ <refsect1 id="package.html.html-quickform.html-quickform.updateelementattr.throws"> &title.throws; <para> - <emphasis>throws</emphasis> 投げられる例外はありません。 + 例外はスローされません。 </para> </refsect1> <refsect1 id="package.html.html-quickform.html-quickform.updateelementattr.note"> http://cvs.php.net/viewcvs.cgi/peardoc/ja/package/html/html-quickform/html-quickform/setmaxfilesize.xml?r1=1.2&r2=1.3&diff_format=u Index: peardoc/ja/package/html/html-quickform/html-quickform/setmaxfilesize.xml diff -u peardoc/ja/package/html/html-quickform/html-quickform/setmaxfilesize.xml:1.2 peardoc/ja/package/html/html-quickform/html-quickform/setmaxfilesize.xml:1.3 --- peardoc/ja/package/html/html-quickform/html-quickform/setmaxfilesize.xml:1.2 Tue Feb 24 16:29:12 2004 +++ peardoc/ja/package/html/html-quickform/html-quickform/setmaxfilesize.xml Thu Jun 1 13:27:53 2006 @@ -1,9 +1,10 @@ -<!-- $Revision: 1.2 $ --> +<?xml version="1.0" encoding="utf-8" ?> +<!-- $Revision: 1.3 $ --> <!-- EN-Revision: 1.1 Maintainer: elf Status: ready --> <refentry id="package.html.html-quickform.html-quickform.setmaxfilesize"> <refnamediv> <refname>HTML_QuickForm::setMaxFileSize()</refname> - <refpurpose>MAX_FILE_SIZEの隠し要素の値を設定する</refpurpose> + <refpurpose>MAX_FILE_SIZE 隠し要素の値を設定する</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> @@ -19,7 +20,7 @@ <refsect1 id="package.html.html-quickform.html-quickform.setmaxfilesize.desc"> &title.desc; - <para>MAX_FILE_SIZEの隠し要素の値を設定します。(ファイルアップロードに使用します。)</para> + <para>MAX_FILE_SIZE 隠し要素の値を設定します (ファイルアップロードに使用します)。</para> </refsect1> <refsect1 id="package.html.html-quickform.html-quickform.setmaxfilesize.param"> &title.param; http://cvs.php.net/viewcvs.cgi/peardoc/ja/package/html/html-quickform/html-quickform/removeelement.xml?r1=1.2&r2=1.3&diff_format=u Index: peardoc/ja/package/html/html-quickform/html-quickform/removeelement.xml diff -u peardoc/ja/package/html/html-quickform/html-quickform/removeelement.xml:1.2 peardoc/ja/package/html/html-quickform/html-quickform/removeelement.xml:1.3 --- peardoc/ja/package/html/html-quickform/html-quickform/removeelement.xml:1.2 Tue Feb 24 16:29:12 2004 +++ peardoc/ja/package/html/html-quickform/html-quickform/removeelement.xml Thu Jun 1 13:27:53 2006 @@ -1,5 +1,6 @@ -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.2 Maintainer: elf Status: ready --> +<?xml version="1.0" encoding="utf-8" ?> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.3 Maintainer: elf Status: ready --> <refentry id="package.html.html-quickform.html-quickform.removeelement"> <refnamediv> <refname>HTML_QuickForm::removeElement()</refname> @@ -11,7 +12,7 @@ require_once 'HTML/QuickForm.php'; </funcsynopsisinfo> <funcprototype> - <funcdef>void <function>HTML_QuickForm::removeElement</function></funcdef> + <funcdef>object &amp;<function>HTML_QuickForm::removeElement</function></funcdef> <paramdef>string <parameter>$elementName</parameter></paramdef> <paramdef>boolean <parameter> <optional>$removeRules = &true;</optional></parameter></paramdef> </funcprototype> @@ -53,6 +54,12 @@ </variablelist> </para> </refsect1> + <refsect1 id="package.html.html-quickform.html-quickform.removeelement.return"> + &title.returns; + <para> + 削除される要素への参照を返します。 + </para> + </refsect1> <refsect1 id="package.html.html-quickform.html-quickform.removeelement.throws"> &title.throws; <para> http://cvs.php.net/viewcvs.cgi/peardoc/ja/package/html/html-quickform/html-quickform/istyperegistered.xml?r1=1.2&r2=1.3&diff_format=u Index: peardoc/ja/package/html/html-quickform/html-quickform/istyperegistered.xml diff -u peardoc/ja/package/html/html-quickform/html-quickform/istyperegistered.xml:1.2 peardoc/ja/package/html/html-quickform/html-quickform/istyperegistered.xml:1.3 --- peardoc/ja/package/html/html-quickform/html-quickform/istyperegistered.xml:1.2 Tue Feb 24 16:29:12 2004 +++ peardoc/ja/package/html/html-quickform/html-quickform/istyperegistered.xml Thu Jun 1 13:27:53 2006 @@ -1,9 +1,10 @@ -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.1 Maintainer: elf Status: ready --> +<?xml version="1.0" encoding="utf-8" ?> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.2 Maintainer: elf Status: ready --> <refentry id="package.html.html-quickform.html-quickform.istyperegistered"> <refnamediv> <refname>HTML_QuickForm::isTypeRegistered()</refname> - <refpurpose>フォーム要素の種類をサポートするか調べます</refpurpose> + <refpurpose>フォーム要素の種類をサポートするか調べる</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> @@ -48,7 +49,7 @@ <refsect1 id="package.html.html-quickform.html-quickform.istyperegistered.throws"> &title.throws; <para> - <emphasis>throws</emphasis> 投げられる例外はありません。 + 例外はスローされません。 </para> </refsect1> <refsect1 id="package.html.html-quickform.html-quickform.istyperegistered.note"> http://cvs.php.net/viewcvs.cgi/peardoc/ja/package/html/html-quickform/html-quickform/iserror.xml?r1=1.3&r2=1.4&diff_format=u Index: peardoc/ja/package/html/html-quickform/html-quickform/iserror.xml diff -u peardoc/ja/package/html/html-quickform/html-quickform/iserror.xml:1.3 peardoc/ja/package/html/html-quickform/html-quickform/iserror.xml:1.4 --- peardoc/ja/package/html/html-quickform/html-quickform/iserror.xml:1.3 Tue Feb 24 16:29:12 2004 +++ peardoc/ja/package/html/html-quickform/html-quickform/iserror.xml Thu Jun 1 13:27:53 2006 @@ -1,4 +1,5 @@ -<!-- $Revision: 1.3 $ --> +<?xml version="1.0" encoding="utf-8" ?> +<!-- $Revision: 1.4 $ --> <!-- EN-Revision: 1.1 Maintainer: elf Status: ready --> <refentry id="package.html.html-quickform.html-quickform.iserror"> <refnamediv> @@ -19,9 +20,9 @@ <refsect1 id="package.html.html-quickform.html-quickform.iserror.desc"> &title.desc; - <para>結果がエラーかどうか知らせます。(例えば + <para>結果がエラーかどうか知らせます (例えば <parameter>$value</parameter> が - <classname>HTML_QuickForm_Error</classname>) のインスタンスかどうか</para> + <classname>HTML_QuickForm_Error</classname> のインスタンスかどうか)。</para> </refsect1> <refsect1 id="package.html.html-quickform.html-quickform.iserror.param"> &title.param; @@ -46,7 +47,7 @@ &title.returns; <para> <emphasis>return</emphasis> - <parameter>$value</parameter>がエラーかどうか。 + <parameter>$value</parameter> がエラーかどうか。 </para> </refsect1> <refsect1 id="package.html.html-quickform.html-quickform.iserror.throws"> http://cvs.php.net/viewcvs.cgi/peardoc/ja/package/html/html-quickform/html-quickform/html-quickform.xml?r1=1.1&r2=1.2&diff_format=u Index: peardoc/ja/package/html/html-quickform/html-quickform/html-quickform.xml diff -u peardoc/ja/package/html/html-quickform/html-quickform/html-quickform.xml:1.1 peardoc/ja/package/html/html-quickform/html-quickform/html-quickform.xml:1.2 --- peardoc/ja/package/html/html-quickform/html-quickform/html-quickform.xml:1.1 Sat Mar 20 13:06:19 2004 +++ peardoc/ja/package/html/html-quickform/html-quickform/html-quickform.xml Thu Jun 1 13:27:53 2006 @@ -1,8 +1,9 @@ -<!-- $Revision: 1.1 $ --> -<!-- EN-Revision: 1.2 Maintainer: elf Status: ready --> +<?xml version="1.0" encoding="utf-8" ?> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.5 Maintainer: elf Status: ready --> <refentry id="package.html.html-quickform.html-quickform.html-quickform"> <refnamediv> - <refname>constructor HTML_QuickForm::HTML_QuickForm()</refname> + <refname>コンストラクタ HTML_QuickForm::HTML_QuickForm()</refname> <refpurpose>クラスのコンストラクタ</refpurpose> </refnamediv> <refsynopsisdiv> @@ -17,6 +18,7 @@ <paramdef>string <parameter> <optional>$action = ''</optional></parameter></paramdef> <paramdef>string <parameter> <optional>$target = '_self'</optional></parameter></paramdef> <paramdef>mixed <parameter> <optional>$attributes = &null;</optional></parameter></paramdef> + <paramdef>bool <parameter> <optional>$trackSubmit = &false;</optional></parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> @@ -90,13 +92,29 @@ </para> </listitem> </varlistentry> + <varlistentry> + <term> + + &type.bool; + <parameter>$trackSubmit</parameter> + </term> + <listitem> + <para> + (オプション) フォームから送信されたことを確認する機能を + 使用するため、hidden フィールドを追加するかどうかを指定します。 + <varname>$_GET</varname> あるいは <varname>$_POST</varname> + の値にそのフィールドが存在しない場合、 + フォームは送信されなかったと考えられます。 + </para> + </listitem> + </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.html.html-quickform.html-quickform.html-quickform.throws"> &title.throws; <para> - <emphasis>throws</emphasis> 投げられる例外はありません。 + 例外はスローされません。 </para> </refsect1> <refsect1 id="package.html.html-quickform.html-quickform.html-quickform.note"> http://cvs.php.net/viewcvs.cgi/peardoc/ja/package/html/html-quickform/html-quickform/getmaxfilesize.xml?r1=1.3&r2=1.4&diff_format=u Index: peardoc/ja/package/html/html-quickform/html-quickform/getmaxfilesize.xml diff -u peardoc/ja/package/html/html-quickform/html-quickform/getmaxfilesize.xml:1.3 peardoc/ja/package/html/html-quickform/html-quickform/getmaxfilesize.xml:1.4 --- peardoc/ja/package/html/html-quickform/html-quickform/getmaxfilesize.xml:1.3 Tue Feb 24 16:29:12 2004 +++ peardoc/ja/package/html/html-quickform/html-quickform/getmaxfilesize.xml Thu Jun 1 13:27:53 2006 @@ -1,9 +1,10 @@ -<!-- $Revision: 1.3 $ --> +<?xml version="1.0" encoding="utf-8" ?> +<!-- $Revision: 1.4 $ --> <!-- EN-Revision: 1.1 Maintainer: elf Status: ready --> <refentry id="package.html.html-quickform.html-quickform.getmaxfilesize"> <refnamediv> <refname>HTML_QuickForm::getMaxFileSize()</refname> - <refpurpose>MAX_FILE_SIZE隠し要素の値を返す</refpurpose> + <refpurpose>MAX_FILE_SIZE 隠し要素の値を返す</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> @@ -19,7 +20,7 @@ <refsect1 id="package.html.html-quickform.html-quickform.getmaxfilesize.desc"> &title.desc; - <para>MAX_FILE_SIZE隠し要素の値を返します。(ファイルアップロードで使用します。)</para> + <para>MAX_FILE_SIZE 隠し要素の値を返します (ファイルアップロードで使用します)。</para> </refsect1> <refsect1 id="package.html.html-quickform.html-quickform.getmaxfilesize.return"> &title.returns; http://cvs.php.net/viewcvs.cgi/peardoc/ja/package/html/html-quickform/html-quickform/errormessage.xml?r1=1.2&r2=1.3&diff_format=u Index: peardoc/ja/package/html/html-quickform/html-quickform/errormessage.xml diff -u peardoc/ja/package/html/html-quickform/html-quickform/errormessage.xml:1.2 peardoc/ja/package/html/html-quickform/html-quickform/errormessage.xml:1.3 --- peardoc/ja/package/html/html-quickform/html-quickform/errormessage.xml:1.2 Tue Feb 24 16:29:12 2004 +++ peardoc/ja/package/html/html-quickform/html-quickform/errormessage.xml Thu Jun 1 13:27:53 2006 @@ -1,4 +1,5 @@ -<!-- $Revision: 1.2 $ --> +<?xml version="1.0" encoding="utf-8" ?> +<!-- $Revision: 1.3 $ --> <!-- EN-Revision: 1.1 Maintainer: elf Status: ready --> <refentry id="package.html.html-quickform.html-quickform.errormessage"> <refnamediv> @@ -19,7 +20,7 @@ <refsect1 id="package.html.html-quickform.html-quickform.errormessage.desc"> &title.desc; - <para>QuickFormエラーコードからエラーメッセージを返します。</para> + <para>QuickForm エラーコードからエラーメッセージを返します。</para> </refsect1> <refsect1 id="package.html.html-quickform.html-quickform.errormessage.param"> &title.param; @@ -33,7 +34,7 @@ </term> <listitem> <para> - int error code + 整数のエラーコード。 </para> </listitem> </varlistentry> http://cvs.php.net/viewcvs.cgi/peardoc/ja/package/html/html-quickform/html-quickform/elementexists.xml?r1=1.2&r2=1.3&diff_format=u Index: peardoc/ja/package/html/html-quickform/html-quickform/elementexists.xml diff -u peardoc/ja/package/html/html-quickform/html-quickform/elementexists.xml:1.2 peardoc/ja/package/html/html-quickform/html-quickform/elementexists.xml:1.3 --- peardoc/ja/package/html/html-quickform/html-quickform/elementexists.xml:1.2 Tue Feb 24 16:29:12 2004 +++ peardoc/ja/package/html/html-quickform/html-quickform/elementexists.xml Thu Jun 1 13:27:53 2006 @@ -1,4 +1,5 @@ -<!-- $Revision: 1.2 $ --> +<?xml version="1.0" encoding="utf-8" ?> +<!-- $Revision: 1.3 $ --> <!-- EN-Revision: 1.2 Maintainer: elf Status: ready --> <refentry id="package.html.html-quickform.html-quickform.elementexists"> <refnamediv> @@ -20,7 +21,7 @@ <refsect1 id="package.html.html-quickform.html-quickform.elementexists.desc"> &title.desc; <para> - もし要素がフォームにある場合は&true;が、そうでなければ&false;が返る。 + もし要素がフォームにある場合は &true; が、そうでなければ &false; を返します。 </para> </refsect1> <refsect1 id="package.html.html-quickform.html-quickform.elementexists.param"> http://cvs.php.net/viewcvs.cgi/peardoc/ja/package/html/html-quickform/html-quickform/createelement.xml?r1=1.3&r2=1.4&diff_format=u Index: peardoc/ja/package/html/html-quickform/html-quickform/createelement.xml diff -u peardoc/ja/package/html/html-quickform/html-quickform/createelement.xml:1.3 peardoc/ja/package/html/html-quickform/html-quickform/createelement.xml:1.4 --- peardoc/ja/package/html/html-quickform/html-quickform/createelement.xml:1.3 Tue Feb 24 16:29:12 2004 +++ peardoc/ja/package/html/html-quickform/html-quickform/createelement.xml Thu Jun 1 13:27:53 2006 @@ -1,4 +1,5 @@ -<!-- $Revision: 1.3 $ --> +<?xml version="1.0" encoding="utf-8" ?> +<!-- $Revision: 1.4 $ --> <!-- EN-Revision: 1.2 Maintainer: elf Status: ready --> <refentry id="package.html.html-quickform.html-quickform.createelement"> <refnamediv> @@ -19,8 +20,18 @@ <refsect1 id="package.html.html-quickform.html-quickform.createelement.desc"> &title.desc; - <para>与えられた種類の要素をフォームに作成します。This method accepts variable number of parameters, their meaning and count depending on <parameter>$elementType</parameter>.</para> - <para>Parameters starting from second will be passed to the element&apos;s constructor, consult the docs for the <link linkend="package.html.html-quickform.intro-elements">appropriate element</link> to find out which parameters to pass.</para> + <para> + 与えられた種類の要素をフォームに作成します。 + このメソッドが受け取るパラメータの数は可変です。 + パラメータの意味や数は、<parameter>$elementType</parameter> + によって変わります。 + </para> + <para> + 2 番目以降のパラメータは、各要素のコンストラクタに渡されます。 + どのようなパラメータが渡されるかについては、 + <link linkend="package.html.html-quickform.intro-elements">それぞれの要素</link> + のドキュメントを参照ください。 + </para> </refsect1> <refsect1 id="package.html.html-quickform.html-quickform.createelement.param"> &title.param; http://cvs.php.net/viewcvs.cgi/peardoc/ja/package/html/html-quickform/html-quickform/apiversion.xml?r1=1.2&r2=1.3&diff_format=u Index: peardoc/ja/package/html/html-quickform/html-quickform/apiversion.xml diff -u peardoc/ja/package/html/html-quickform/html-quickform/apiversion.xml:1.2 peardoc/ja/package/html/html-quickform/html-quickform/apiversion.xml:1.3 --- peardoc/ja/package/html/html-quickform/html-quickform/apiversion.xml:1.2 Tue Feb 24 16:29:12 2004 +++ peardoc/ja/package/html/html-quickform/html-quickform/apiversion.xml Thu Jun 1 13:27:53 2006 @@ -1,9 +1,10 @@ -<!-- $Revision: 1.2 $ --> +<?xml version="1.0" encoding="utf-8" ?> +<!-- $Revision: 1.3 $ --> <!-- EN-Revision: 1.1 Maintainer: elf Status: ready --> <refentry id="package.html.html-quickform.html-quickform.apiversion"> <refnamediv> <refname>HTML_QuickForm::apiVersion()</refname> - <refpurpose>現在のAPIのバージョンを返す</refpurpose> + <refpurpose>現在の API のバージョンを返す</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> @@ -19,7 +20,7 @@ <refsect1 id="package.html.html-quickform.html-quickform.apiversion.desc"> &title.desc; - <para>現在のAPIのバージョンを返します。</para> + <para>現在の API のバージョンを返します。</para> </refsect1> <refsect1 id="package.html.html-quickform.html-quickform.apiversion.throws"> &title.throws; http://cvs.php.net/viewcvs.cgi/peardoc/ja/package/html/html-quickform/html-quickform/addformrule.xml?r1=1.1&r2=1.2&diff_format=u Index: peardoc/ja/package/html/html-quickform/html-quickform/addformrule.xml diff -u peardoc/ja/package/html/html-quickform/html-quickform/addformrule.xml:1.1 peardoc/ja/package/html/html-quickform/html-quickform/addformrule.xml:1.2 --- peardoc/ja/package/html/html-quickform/html-quickform/addformrule.xml:1.1 Tue Feb 24 16:35:22 2004 +++ peardoc/ja/package/html/html-quickform/html-quickform/addformrule.xml Thu Jun 1 13:27:53 2006 @@ -1,4 +1,5 @@ -<!-- $Revision: 1.1 $ --> +<?xml version="1.0" encoding="utf-8" ?> +<!-- $Revision: 1.2 $ --> <!-- EN-Revision: 1.1 Maintainer: elf Status: ready --> <refentry id="package.html.html-quickform.html-quickform.addformrule"> <refnamediv> @@ -20,8 +21,11 @@ <refsect1 id="package.html.html-quickform.html-quickform.addformrule.desc"> &title.desc; <para> -This should be used when you want to add a rule involving several fields or if you want to use some completely custom validation for your form. -The rule function/method should return &true; in case of successful validation and array('element name' =&gt; 'error') when there were errors. +複数のフィールドにまたがる規則を追加したい場合、 +あるいはフォームにまったく独自の検証を適用したい場合に +これを使用します。検証に成功した場合は、 +関数/メソッドは &true; を返します。また、エラーが発生した場合は +配列 array('要素名' =&gt; 'エラー') が返されます。 </para> </refsect1> <refsect1 id="package.html.html-quickform.html-quickform.addformrule.param"> @@ -61,7 +65,7 @@ <row> <entry><constant>QUICKFORM_INVALID_RULE</constant></entry> <entry>Callback function does not exist in HTML_QuickForm::addFormRule()</entry> - <entry>callback_として存在しない関数の名前を使用しようとします。</entry> + <entry>callback として存在しない関数の名前を使用しようとします。</entry> <entry>スペルチェックをしてください。</entry> </row> </tbody> @@ -79,7 +83,7 @@ <refsect1 id="package.html.html-quickform.html-quickform.addformrule.example"> &title.example; <example> - <title><function>addFormRule</function>の使用法</title> + <title><function>addFormRule</function> の使用法</title> <programlisting role="php"> <![CDATA[ <?php @@ -87,18 +91,18 @@ $form = new HTML_QuickForm(); -// the function checks whether the passwords are the same +// この関数は、パスワードが同じかどうかを調べます function cmpPass($fields) { if (strlen($fields['passwd1']) && strlen($fields['passwd2']) && $fields['passwd1'] != $fields['passwd2']) { - return array('passwd1' => 'Passwords are not the same'); + return array('passwd1' => 'パスワードが違います'); } return true; } -$form->addElement('password', 'passwd1', 'Enter password'); -$form->addElement('password', 'passwd2', 'Confirm password'); +$form->addElement('password', 'passwd1', 'パスワードを入力してください'); +$form->addElement('password', 'passwd2', 'もう一度パスワードを入力してください'); $form->addFormRule('cmpPass'); ?> http://cvs.php.net/viewcvs.cgi/peardoc/ja/package/html/html-quickform/html-quickform/addelement.xml?r1=1.5&r2=1.6&diff_format=u Index: peardoc/ja/package/html/html-quickform/html-quickform/addelement.xml diff -u peardoc/ja/package/html/html-quickform/html-quickform/addelement.xml:1.5 peardoc/ja/package/html/html-quickform/html-quickform/addelement.xml:1.6 --- peardoc/ja/package/html/html-quickform/html-quickform/addelement.xml:1.5 Tue Feb 24 16:29:12 2004 +++ peardoc/ja/package/html/html-quickform/html-quickform/addelement.xml Thu Jun 1 13:27:53 2006 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.5 $ --> +<!-- $Revision: 1.6 $ --> <!-- EN-Revision: 1.2 Maintainer: elf Status: ready --> <refentry id="package.html.html-quickform.html-quickform.addelement"> <refnamediv> @@ -19,7 +19,12 @@ <refsect1 id="package.html.html-quickform.html-quickform.addelement.desc"> &title.desc; - <para>フォームに要素を追加します。If <parameter>$element</parameter> is a string representing an element type, then this method accepts variable number of parameters, their meaning and count depending on element type.</para> + <para> + フォームに要素を追加します。 + <parameter>$element</parameter> が要素型の文字列表現である場合は、 + このメソッドは可変引数を受け取ります。それらの引数の意味および引数の数は、 + 要素の型によって異なります。 + </para> </refsect1> <refsect1 id="package.html.html-quickform.html-quickform.addelement.param"> &title.param; http://cvs.php.net/viewcvs.cgi/peardoc/ja/package/html/html-quickform/html-quickform/accept.xml?r1=1.1&r2=1.2&diff_format=u Index: peardoc/ja/package/html/html-quickform/html-quickform/accept.xml diff -u peardoc/ja/package/html/html-quickform/html-quickform/accept.xml:1.1 peardoc/ja/package/html/html-quickform/html-quickform/accept.xml:1.2 --- peardoc/ja/package/html/html-quickform/html-quickform/accept.xml:1.1 Tue Feb 24 16:35:22 2004 +++ peardoc/ja/package/html/html-quickform/html-quickform/accept.xml Thu Jun 1 13:27:53 2006 @@ -1,4 +1,5 @@ -<!-- $Revision: 1.1 $ --> +<?xml version="1.0" encoding="utf-8" ?> +<!-- $Revision: 1.2 $ --> <!-- EN-Revision: 1.2 Maintainer: elf Status: ready --> <refentry id="package.html.html-quickform.html-quickform.accept"> <refnamediv> @@ -21,7 +22,7 @@ &title.desc; <para> レンダラを受け取ります。 - この方法はビジター・デザイン・パターン実装一部です。 + このメソッドは、ビジター・デザインパターンの実装の一部です。 </para> </refsect1> <refsect1 id="package.html.html-quickform.html-quickform.accept.param"> @@ -46,7 +47,7 @@ <refsect1 id="package.html.html-quickform.html-quickform.accept.throws"> &title.throws; <para> - <emphasis>throws</emphasis> no exceptions thrown + 例外はスローされません。 </para> </refsect1> <refsect1 id="package.html.html-quickform.html-quickform.accept.note"> http://cvs.php.net/viewcvs.cgi/peardoc/ja/package/html/html-quickform/tutorial.xml?r1=1.1&r2=1.2&diff_format=u Index: peardoc/ja/package/html/html-quickform/tutorial.xml diff -u peardoc/ja/package/html/html-quickform/tutorial.xml:1.1 peardoc/ja/package/html/html-quickform/tutorial.xml:1.2 --- peardoc/ja/package/html/html-quickform/tutorial.xml:1.1 Wed Oct 13 10:39:40 2004 +++ peardoc/ja/package/html/html-quickform/tutorial.xml Thu Jun 1 13:27:53 2006 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1 $ --> -<!-- EN-Revision: 1.2 Maintainer: haruki Status: partial --> +<!-- $Revision: 1.2 $ --> +<!-- EN-Revision: 1.3 Maintainer: haruki Status: ready --> <refentry id="package.html.html-quickform.tutorial"> <refnamediv> <refname>クイックスタートガイド</refname> @@ -16,7 +16,7 @@ </para> <para> Keith Edmunds によって書かれた、QuickForm の使用法についての - <ulink url="http://www.thelinuxconsultancy.co.uk/quickform.html">いくぶん長めのチュートリアル</ulink> + <ulink url="http://www.thelinuxconsultancy.co.uk/quickform.php">いくぶん長めのチュートリアル</ulink> も参考となるでしょう。 </para> </refsect1> @@ -34,21 +34,21 @@ // フォーム要素のデフォルト値を設定 $form->setDefaults(array( - 'name' => 'Joe User' + 'name' => '山田太郎' )); // フォームに要素をいくつか追加 -$form->addElement('header', null, 'QuickForm tutorial example'); -$form->addElement('text', 'name', 'Enter your name:', array('size' => 50, 'maxlength' => 255)); -$form->addElement('submit', null, 'Send'); +$form->addElement('header', null, 'QuickForm チュートリアルのサンプル'); +$form->addElement('text', 'name', '名前を入力してください:', array('size' => 50, 'maxlength' => 255)); +$form->addElement('submit', null, '送信'); // フィルタと検証ルールを追加 $form->applyFilter('name', 'trim'); -$form->addRule('name', 'Please enter your name', 'required', null, 'client'); +$form->addRule('name', '名前を入力してください', 'required', null, 'client'); // フォームの妥当性検証 if ($form->validate()) { - echo '<h1>Hello, ' . htmlspecialchars($form->exportValue('name')) . '!</h1>'; + echo '<h1>こんにちは、' . htmlspecialchars($form->exportValue('name')) . 'さん!</h1>'; exit; } @@ -72,126 +72,150 @@ 後で、このHTML_QuickForm オブジェクトに、要素に対応したオブジェクトや他の必要な情報を加えていくこととなります。 ここで、<link linkend="package.html.html-quickform.html-quickform.html-quickform">コンストラクタ</link>には、 フォームの名称のみを渡し、他のパラメータはデフォルト値が使われています。 - フォームの method 属性には <literal>POST</literal> が、action 属性には現在のファイル名となります。 - When using QuickForm, it is easier to keep all the form related logic in one file. + フォームの method 属性のデフォルト値は <literal>POST</literal>、そして + action 属性のデフォルト値は現在のファイル名となります。QuickForm を使用する際には、 + フォームに関連するロジックをひとつのファイルにまとめておくと楽になります。 </para> <para> -You might guess that +次のコードが <literal>name</literal> 要素のデフォルト値を <literal>'山田太郎'</literal> +に設定するものであることは、おそらく予想が付くでしょう。 <programlisting role="php"> <![CDATA[ $form->setDefaults(array( - 'name' => 'Joe User' + 'name' => '山田太郎' )); ]]> </programlisting> -sets the default value for <literal>name</literal> element to <literal>'Joe User'</literal>. QuickForm has the -concept of default values (set via <link linkend="package.html.html-quickform.html-quickform.setdefaults"><function>setDefaults</function></link> method) and -constant ones (set via <link linkend="package.html.html-quickform.html-quickform.setconstants"><function>setConstants</function></link>). -The difference between them is that user's input overrides default values but not constant ones. +QuickForm には、デフォルト値 +(<link linkend="package.html.html-quickform.html-quickform.setdefaults"><function>setDefaults</function></link> メソッドで設定します) +および定数値 +(<link linkend="package.html.html-quickform.html-quickform.setconstants"><function>setConstants</function></link> メソッドで設定します) +という概念があります。これらの違いは、デフォルト値はユーザの入力によって上書きされるが、 +定数値は上書きされないという点です。 </para> <para> -Our form will consist of three elements: +今回のフォームは、3 つの要素から構成されています。 <programlisting role="php"> <![CDATA[ -$form->addElement('header', null, 'QuickForm tutorial example'); -$form->addElement('text', 'name', 'Enter your name:', array('size' => 50, 'maxlength' => 255)); -$form->addElement('submit', null, 'Send'); +$form->addElement('header', null, 'QuickForm チュートリアルのサンプル'); +$form->addElement('text', 'name', '名前を入力してください:', array('size' => 50, 'maxlength' => 255)); +$form->addElement('submit', null, '送信'); ]]> </programlisting> -The first one is not the 'real' element, it is just a heading to improve presentation. The second one -actually is a text input box and the third is a submit button. Note that parameters for <link linkend="package.html.html-quickform.html-quickform.addelement"><function>addElement</function></link> -method have different meanings for different elements. That is so because they are actually passed to -these elements' constructors. +最初の要素は「本来の」要素ではありません。これは単に見栄えをよくするための見出しです。 +2 番目の要素はテキスト入力欄で、3 番目は送信ボタンです。 +<link linkend="package.html.html-quickform.html-quickform.addelement"><function>addElement</function></link> +メソッドのパラメータは、要素の型によって意味が異なってくることに注意しましょう。 +なぜなら、このパラメータはそれぞれの要素のコンストラクタに渡されるものだからです。 </para> </refsect2> <refsect2 id="package.html.html-quickform.tutorial.firstform.checking"> - <title>Checking input</title> + <title>入力のチェック</title> <para> -The line +次の行では、'name' 要素の値に対する +<link linkend="package.html.html-quickform.intro-validation.filters">フィルタ</link> +を定義しています。 <programlisting role="php"> <![CDATA[ $form->applyFilter('name', 'trim'); ]]> </programlisting> -defines a <link linkend="package.html.html-quickform.intro-validation.filters">filter</link> for the 'name' element value - the function that will be applied to it after form submit. -In this case it is a builtin <ulink url="&url.php.lookup;trim"><function>trim</function></ulink> function, -but can be any valid <ulink url="&url.php.callback;"><type>callback</type></ulink>. Thus we will strip -all whitespace from the name, as we do not actually need it and as we want to be sure that a name was entered, -not just some spaces. +フィルタとは、フォームが送信された際に要素の値に対して適用される関数のことです。 +この例の場合は組み込みの <ulink url="&url.php.lookup;trim"><function>trim</function></ulink> +関数を使用していますが、これ以外にも任意の +<ulink url="&url.php.callback;"><type>callback</type></ulink> を使用することができます。 +ここでは、入力された名前から空白を取り除いています。というのも、 +空白は不要なものであり、単に空白が入力されたのではなく +きちんと名前が入力されたのだということを確認したいからです。 </para> <para> -Next we define a <link linkend="package.html.html-quickform.intro-validation.rules">rule</link> for the name field: +次に、名前欄の <link linkend="package.html.html-quickform.intro-validation.rules">規則</link> +を定義します。 <programlisting role="php"> <![CDATA[ -$form->addRule('name', 'Please enter your name', 'required', null, 'client'); +$form->addRule('name', '名前を入力してください', 'required', null, 'client'); ]]> </programlisting> -This means that QuickForm will display an error message if the name was not entered. The -<literal>'client'</literal> modifier is here to switch on client-side JavaScript validation in addition to -server-side one. Note also that QuickForm will automatically mark required fields in the form. +このコードの意味は、名前が入力されなかった場合に QuickForm がエラーメッセージを表示するということです。 +<literal>'client'</literal> という指定をすると、サーバ側での検証だけでなく +クライアント側での JavaScript による検証も有効にします。また、QuickForm +はこのフィールドに対して必須フィールドの印を自動的につけることにも注意しましょう。 </para> </refsect2> <refsect2 id="package.html.html-quickform.tutorial.firstform.processing"> - <title>Validating and processing</title> + <title>入力の検証および処理</title> <para> -We now have the form built and rules defined and need to decide whether to process it or display: +フォームの作成が終了し、検証規則も定義しました。 +次に、フォームを処理するのか表示するのかを決めなければなりません。 <programlisting role="php"> <![CDATA[ if ($form->validate()) { - // Do some stuff + // 何らかの処理 } ]]> </programlisting> -The <link linkend="package.html.html-quickform.html-quickform.validate"><function>validate</function></link> method -will consider the form valid (i.e. return &true;) if some data was actually submitted and all the rules -defined for the form were satisfied. In our case this means that 'name' element was not empty. +<link linkend="package.html.html-quickform.html-quickform.validate"><function>validate</function></link> +メソッドが「フォームが有効である」と判断する (つまり &true; を返す) のは、 +何らかのデータが送信され、かつフォームに定義されている規則がすべて満たされた場合です。 +今回の例では、これは 'name' 要素が空でなかったことを表します。 </para> <para> -If the form is validated we need to process the values +フォームの入力が検証されたら、その値を処理しなければなりません。 <programlisting role="php"> <![CDATA[ -echo '<h1>Hello, ' . htmlspecialchars($form->exportValue('name')) . '!</h1>'; +echo '<h1>こんにちは、' . htmlspecialchars($form->exportValue('name')) . 'さん!</h1>'; exit; ]]> </programlisting> -This is an example, in your scripts you'll usually want to store the values somewhere and to redirect to some other page to -prevent a duplicate submit. The <link linkend="package.html.html-quickform.html-quickform.process"><function>process</function></link> -and <link linkend="package.html.html-quickform.html-quickform.exportvalues"><function>exportvalues</function></link> -methods may be of interest here. +これはひとつの例です。実際のスクリプトでは、値をどこかに保存したうえで別のページにリダイレクトし、 +二重送信を防ぐなどの処理も必要になることでしょう。 +このような場合に使用されるメソッドは +<link linkend="package.html.html-quickform.html-quickform.process"><function>process</function></link> +および +<link linkend="package.html.html-quickform.html-quickform.exportvalues"><function>exportvalues</function></link> +です。 </para> <para> -The last line is pretty easy: +最後の行は、とても簡単です。 <programlisting role="php"> <![CDATA[ $form->display(); ]]> </programlisting> -If the form is not valid, which means that it either was not yet submitted or that there were errors, it -will be displayed. Error messages (if any) will be displayed near the corresponding elements. +フォームが有効でない場合、すなわちまだ送信されていなかったり入力内容に不備があった場合は、 +フォームの内容が表示されます。もしエラーメッセージが存在すれば、 +対応する要素のそばにそれが表示されます。 </para> </refsect2> </refsect1> <refsect1 id="package.html.html-quickform.tutorial.advanced"> - <title>Advanced features</title> + <title>高度な機能</title> <para> -You now should have an understanding of basic QuickForm functionality, but there are many more features in -the package, each of them deserving a separate tutorial. This section will give a short overview of them -and point you to the complete documentation. +基本的な QuickForm の機能についてはこれでご理解いただけたことでしょう。 +しかし、このパッケージにはここで取り上げた以外にも多くの機能があります。 +それらについてはそれぞれ個別のチュートリアルを設けています。 +この節ではそれらについての簡単な説明をした上で、詳細なドキュメントの場所を示します。 </para> <para> -<link linkend="package.html.html-quickform.groups">Groups</link> allow to combine several individual -elements into one entity and to use it as one element. This is also used to create pseudo-elements like date -and hierselect. +<link linkend="package.html.html-quickform.groups">グループ</link> を使用すると、 +複数の独立した要素をひとつのエンティティにまとめ、 +それをひとつの要素であるかのように使用することができます。 +これは date や hierselect のような擬似要素を作成するためにも使用されています。 </para> <para> -QuickForm offers a lot of possibilities to customize form layout and appearance. Form output is done via -<link linkend="package.html.html-quickform.intro-renderers">renderers</link> - special classes containing -necessary logic. There are renderers that <link linkend="package.html.html-quickform.html-quickform-renderer-default">directly output HTML</link> -and those that <link linkend="package.html.html-quickform.output.template-renderers">use template engines</link> for this. +QuickForm は、フォームのレイアウトや見栄えを変更するために多くの機能を提供しています。 +フォームの出力は +<link linkend="package.html.html-quickform.intro-renderers">レンダラ</link> +が行います。これは必要なロジックが組み込まれた特別なクラスです。 +<link linkend="package.html.html-quickform.html-quickform-renderer-default">直接 HTML を出力する</link> +レンダラや、 +<link linkend="package.html.html-quickform.output.template-renderers">テンプレートエンジンを使用する</link> +レンダラがあります。 </para> <para> -And finally, you can extend QuickForm by adding your own element types, rules and -<link linkend="package.html.html-quickform.output.renderer-doc">renderers</link>. +そして最後に、独自の要素型や検証規則そして +<link linkend="package.html.html-quickform.output.renderer-doc">レンダラ</link> +を追加することで QuickForm を拡張することもできます。 </para> </refsect1> </refentry> http://cvs.php.net/viewcvs.cgi/peardoc/ja/package/html/html-quickform-controller/html-quickform-page/isformbuilt.xml?r1=1.1&r2=1.2&diff_format=u Index: peardoc/ja/package/html/html-quickform-controller/html-quickform-page/isformbuilt.xml diff -u peardoc/ja/package/html/html-quickform-controller/html-quickform-page/isformbuilt.xml:1.1 peardoc/ja/package/html/html-quickform-controller/html-quickform-page/isformbuilt.xml:1.2 --- peardoc/ja/package/html/html-quickform-controller/html-quickform-page/isformbuilt.xml:1.1 Tue Feb 24 16:35:25 2004 +++ peardoc/ja/package/html/html-quickform-controller/html-quickform-page/isformbuilt.xml Thu Jun 1 13:27:53 2006 @@ -1,9 +1,10 @@ -<!-- $Revision: 1.1 $ --> +<?xml version="1.0" encoding="utf-8" ?> +<!-- $Revision: 1.2 $ --> <!-- EN-Revision: 1.1 Maintainer: elf Status: ready --> <refentry id="package.html.html-quickform-controller.html-quickform-page.isformbuilt"> <refnamediv> <refname>Page::isFormBuilt()</refname> - <refpurpose>フォームが既に構築されたかチェックする</refpurpose> + <refpurpose>フォームが既に構築されたかどうかをチェックする</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> @@ -20,15 +21,15 @@ <refsect1 id="package.html.html-quickform-controller.html-quickform-page.isformbuilt.desc"> &title.desc; <para> - これは<link + これは、<link linkend="package.html.html-quickform-controller.html-quickform-page.buildform"><function>buildForm</function></link> - を呼ぶ必要があるかどうかチェックするために使用します。 + を呼ぶ必要があるかどうかをチェックするために使用します。 </para> </refsect1> <refsect1 id="package.html.html-quickform-controller.html-quickform-page.isformbuilt.throws"> &title.throws; <para> - <emphasis>throws</emphasis> 投げられる例外はありません。 + 例外はスローされません。 </para> </refsect1> <refsect1 id="package.html.html-quickform-controller.html-quickform-page.isformbuilt.note"> http://cvs.php.net/viewcvs.cgi/peardoc/ja/package/html/html-quickform-controller/html-quickform-page/html-quickform-page.xml?r1=1.1&r2=1.2&diff_format=u Index: peardoc/ja/package/html/html-quickform-controller/html-quickform-page/html-quickform-page.xml diff -u peardoc/ja/package/html/html-quickform-controller/html-quickform-page/html-quickform-page.xml:1.1 peardoc/ja/package/html/html-quickform-controller/html-quickform-page/html-quickform-page.xml:1.2 --- peardoc/ja/package/html/html-quickform-controller/html-quickform-page/html-quickform-page.xml:1.1 Sat Mar 20 13:07:35 2004 +++ peardoc/ja/package/html/html-quickform-controller/html-quickform-page/html-quickform-page.xml Thu Jun 1 13:27:53 2006 @@ -1,4 +1,5 @@ -<!-- $Revision: 1.1 $ --> +<?xml version="1.0" encoding="utf-8" ?> +<!-- $Revision: 1.2 $ --> <!-- EN-Revision: 1.1 Maintainer: elf Status: ready --> <refentry id="package.html.html-quickform-controller.html-quickform-page.html-quickform-page"> <refnamediv> @@ -23,9 +24,11 @@ <refsect1 id="package.html.html-quickform-controller.html-quickform-page.html-quickform-page.desc"> &title.desc; <para> - Note that unlike constructor of <classname>HTML_QuickForm</classname> there is no - <parameter>$action</parameter>, as the form is always submitted to the current page. Note also - that <parameter>$formName</parameter> is <emphasis>not</emphasis> optional. + <classname>HTML_QuickForm</classname> のコンストラクタとは異なり、 + <parameter>$action</parameter> が存在しないことに注意しましょう。 + これは、フォームが常に現在のページから送信されるためです。 + また、<parameter>$formName</parameter> が + オプション<emphasis>ではない</emphasis>ことにも注意しましょう。 </para> </refsect1> <refsect1 id="package.html.html-quickform-controller.html-quickform-page.html-quickform-page.param"> @@ -96,7 +99,7 @@ <refsect1 id="package.html.html-quickform-controller.html-quickform-page.html-quickform-page.throws"> &title.throws; <para> - <emphasis>throws</emphasis> 投げられる例外はありません。 + 例外はスローされません。 </para> </refsect1> <refsect1 id="package.html.html-quickform-controller.html-quickform-page.html-quickform-page.note"> http://cvs.php.net/viewcvs.cgi/peardoc/ja/package/html/html-quickform-controller/html-quickform-page/handle.xml?r1=1.1&r2=1.2&diff_format=u Index: peardoc/ja/package/html/html-quickform-controller/html-quickform-page/handle.xml diff -u peardoc/ja/package/html/html-quickform-controller/html-quickform-page/handle.xml:1.1 peardoc/ja/package/html/html-quickform-controller/html-quickform-page/handle.xml:1.2 --- peardoc/ja/package/html/html-quickform-controller/html-quickform-page/handle.xml:1.1 Tue Feb 24 16:35:25 2004 +++ peardoc/ja/package/html/html-quickform-controller/html-quickform-page/handle.xml Thu Jun 1 13:27:53 2006 @@ -1,9 +1,10 @@ -<!-- $Revision: 1.1 $ --> +<?xml version="1.0" encoding="utf-8" ?> +<!-- $Revision: 1.2 $ --> <!-- EN-Revision: 1.1 Maintainer: elf Status: ready --> <refentry id="package.html.html-quickform-controller.html-quickform-page.handle"> <refnamediv> <refname>Page::handle()</refname> - <refpurpose>ハンドルを実行する</refpurpose> + <refpurpose>アクションを処理する</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> @@ -20,15 +21,15 @@ <refsect1 id="package.html.html-quickform-controller.html-quickform-page.handle.desc"> &title.desc; <para> - このメソッドは単に、このアクション名に<link + このメソッドは単に、このアクション名で <link linkend="package.html.html-quickform-controller.html-quickform-page.addaction">登録された</link> - アクションオブジェクトの<link + アクションオブジェクトの <link linkend="package.html.html-quickform-controller.html-quickform-action.perform"><function>perform</function></link> - を呼びます。 - もし、アクションオブジェクトがここで登録されてなければ、 - コントローラの<link + メソッドをコールします。 + アクションオブジェクトが登録されていなければ、 + コントローラの <link linkend="package.html.html-quickform-controller.html-quickform-controller.handle"><function>handle</function></link> - メソッドが呼ばれるでしょう。 + メソッドがコールされます。 </para> </refsect1> @@ -55,7 +56,7 @@ <refsect1 id="package.html.html-quickform-controller.html-quickform-page.handle.throws"> &title.throws; <para> - <emphasis>throws</emphasis> 投げられる例外はありません。 + 例外はスローされません。 </para> </refsect1> <refsect1 id="package.html.html-quickform-controller.html-quickform-page.handle.note"> http://cvs.php.net/viewcvs.cgi/peardoc/ja/package/html/html-quickform-controller/html-quickform-page/getbuttonname.xml?r1=1.1&r2=1.2&diff_format=u Index: peardoc/ja/package/html/html-quickform-controller/html-quickform-page/getbuttonname.xml diff -u peardoc/ja/package/html/html-quickform-controller/html-quickform-page/getbuttonname.xml:1.1 peardoc/ja/package/html/html-quickform-controller/html-quickform-page/getbuttonname.xml:1.2 --- peardoc/ja/package/html/html-quickform-controller/html-quickform-page/getbuttonname.xml:1.1 Tue Feb 24 16:35:25 2004 +++ peardoc/ja/package/html/html-quickform-controller/html-quickform-page/getbuttonname.xml Thu Jun 1 13:27:53 2006 @@ -1,9 +1,10 @@ -<!-- $Revision: 1.1 $ --> +<?xml version="1.0" encoding="utf-8" ?> +<!-- $Revision: 1.2 $ --> <!-- EN-Revision: 1.1 Maintainer: elf Status: ready --> <refentry id="package.html.html-quickform-controller.html-quickform-page.getbuttonname"> <refnamediv> <refname>Page::getButtonName()</refname> - <refpurpose>特殊アクションを起動するsubmitボタンの名前を返す</refpurpose> + <refpurpose>特定のアクションを起動する submit ボタンの名前を返す</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> @@ -20,20 +21,21 @@ <refsect1 id="package.html.html-quickform-controller.html-quickform-page.getbuttonname.desc"> &title.desc; <para> - 特殊アクションを起動するsubmitボタン - (もしくは&lt;input type=&quot;image&quot;&gt;コントロール) - の名前を返します。 - これは下記を意味します。 - if you do + 特定のアクションを起動する submit ボタン + (もしくは &lt;input type=&quot;image&quot;&gt; コントロール) + の名前を返します。これは以下のようなことを意味します。 + <link linkend="package.html.html-quickform-controller.html-quickform-page.buildform"> + <function>buildForm</function></link> メソッド内で <programlisting role="php"> <![CDATA[ $this->addElement('submit', $this->getButtonName('foo'), 'Foo'); ]]> </programlisting> -inside the <link linkend="package.html.html-quickform-controller.html-quickform-page.buildform"><function>buildForm</function></link> -method and the user later uses this button to submit the form, then the <literal>'foo'</literal> handler (added -via <link linkend="package.html.html-quickform-controller.html-quickform-page.addaction"><function>addAction</function></link> -will be called. + のように使用し、このボタンを用いてフォームを送信した際には + <literal>'foo'</literal> ハンドラ + (<link linkend="package.html.html-quickform-controller.html-quickform-page.addaction"> + <function>addAction</function></link> で追加されたもの) + がコールされるということです。 </para> </refsect1> <refsect1 id="package.html.html-quickform-controller.html-quickform-page.getbuttonname.param"> @@ -59,13 +61,13 @@ <refsect1 id="package.html.html-quickform-controller.html-quickform-page.getbuttonname.returns"> &title.returns; <para> - <emphasis>returns</emphasis> submitボタンの&quot;name&quot;属性です。 + <emphasis>returns</emphasis> submit ボタンの &quot;name&quot; 属性です。 </para> </refsect1> <refsect1 id="package.html.html-quickform-controller.html-quickform-page.getbuttonname.throws"> &title.throws; <para> - <emphasis>throws</emphasis> 投げられる例外はありません。 + 例外はスローされません。 </para> </refsect1> <refsect1 id="package.html.html-quickform-controller.html-quickform-page.getbuttonname.note"> http://cvs.php.net/viewcvs.cgi/peardoc/ja/package/html/html-quickform-controller/html-quickform-page/buildform.xml?r1=1.1&r2=1.2&diff_format=u Index: peardoc/ja/package/html/html-quickform-controller/html-quickform-page/buildform.xml diff -u peardoc/ja/package/html/html-quickform-controller/html-quickform-page/buildform.xml:1.1 peardoc/ja/package/html/html-quickform-controller/html-quickform-page/buildform.xml:1.2 --- peardoc/ja/package/html/html-quickform-controller/html-quickform-page/buildform.xml:1.1 Tue Feb 24 16:35:25 2004 +++ peardoc/ja/package/html/html-quickform-controller/html-quickform-page/buildform.xml Thu Jun 1 13:27:53 2006 @@ -1,9 +1,10 @@ -<!-- $Revision: 1.1 $ --> +<?xml version="1.0" encoding="utf-8" ?> +<!-- $Revision: 1.2 $ --> <!-- EN-Revision: 1.1 Maintainer: elf Status: ready --> <refentry id="package.html.html-quickform-controller.html-quickform-page.buildform"> <refnamediv> <refname>Page::buildForm()</refname> - <refpurpose>フォームの構築をする</refpurpose> + <refpurpose>フォームを構築する</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> @@ -21,22 +22,27 @@ &title.desc; <para> フォームを構築します。 - You should override this method when you subclass <classname>HTML_QuickForm_Page</classname>, - it should contain all the necessary - <link linkend="package.html.html-quickform.html-quickform.addelement"><function>addElement</function></link>, - <link linkend="package.html.html-quickform.html-quickform.applyfilter"><function>applyFilter</function></link>, - <link linkend="package.html.html-quickform.html-quickform.addrule"><function>addRule</function></link> and possibly - <link linkend="package.html.html-quickform.html-quickform.setdefaults"><function>setDefaults</function></link> and - <link linkend="package.html.html-quickform.html-quickform.setconstants"><function>setConstants</function></link> calls. - The method will be called on demand, so please be sure to set <varname>$_formBuilt</varname> property to &true; - to assure that the method works only once. + <classname>HTML_QuickForm_Page</classname> のサブクラスでは、 + このメソッドをオーバーライドする必要があります。その中では、 + <link linkend="package.html.html-quickform.html-quickform.addelement"><function>addElement</function></link>,、 + <link linkend="package.html.html-quickform.html-quickform.applyfilter"><function>applyFilter</function></link>、 + <link linkend="package.html.html-quickform.html-quickform.addrule"><function>addRule</function></link> + そしておそらく + <link linkend="package.html.html-quickform.html-quickform.setdefaults"><function>setDefaults</function></link> + および + <link linkend="package.html.html-quickform.html-quickform.setconstants"><function>setConstants</function></link> + をコールする必要があります。 + このメソッドは、要求に応じて (on demand) コールされます。そのため、 + このメソッドが一度だけしかコールされないようにするためには + <varname>$_formBuilt</varname> プロパティを &true; + に設定するようにしましょう。 </para> </refsect1> <refsect1 id="package.html.html-quickform-controller.html-quickform-page.buildform.throws"> &title.throws; <para> - <emphasis>throws</emphasis> 投げられる例外はありません。 + 例外はスローされません。 </para> </refsect1> <refsect1 id="package.html.html-quickform-controller.html-quickform-page.buildform.note"> http://cvs.php.net/viewcvs.cgi/peardoc/ja/package/html/html-quickform-controller/html-quickform-page/addaction.xml?r1=1.1&r2=1.2&diff_format=u Index: peardoc/ja/package/html/html-quickform-controller/html-quickform-page/addaction.xml diff -u peardoc/ja/package/html/html-quickform-controller/html-quickform-page/addaction.xml:1.1 peardoc/ja/package/html/html-quickform-controller/html-quickform-page/addaction.xml:1.2 --- peardoc/ja/package/html/html-quickform-controller/html-quickform-page/addaction.xml:1.1 Tue Feb 24 16:35:25 2004 +++ peardoc/ja/package/html/html-quickform-controller/html-quickform-page/addaction.xml Thu Jun 1 13:27:53 2006 @@ -1,9 +1,10 @@ -<!-- $Revision: 1.1 $ --> +<?xml version="1.0" encoding="utf-8" ?> +<!-- $Revision: 1.2 $ --> <!-- EN-Revision: 1.1 Maintainer: elf Status: ready --> <refentry id="package.html.html-quickform-controller.html-quickform-page.addaction"> <refnamediv> <refname>Page::addAction()</refname> - <refpurpose>特殊なアクション用のハンドラを登録する</refpurpose> + <refpurpose>特定のアクション用のハンドラを登録する</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> @@ -59,7 +60,7 @@ <refsect1 id="package.html.html-quickform-controller.html-quickform-page.addaction.throws"> &title.throws; <para> - <emphasis>throws</emphasis> 投げられる例外はありません。 + 例外はスローされません。 </para> </refsect1> <refsect1 id="package.html.html-quickform-controller.html-quickform-page.addaction.note"> http://cvs.php.net/viewcvs.cgi/peardoc/ja/package/html/html-quickform-controller/html-quickform-action/perform.xml?r1=1.1&r2=1.2&diff_format=u Index: peardoc/ja/package/html/html-quickform-controller/html-quickform-action/perform.xml diff -u peardoc/ja/package/html/html-quickform-controller/html-quickform-action/perform.xml:1.1 peardoc/ja/package/html/html-quickform-controller/html-quickform-action/perform.xml:1.2 --- peardoc/ja/package/html/html-quickform-controller/html-quickform-action/perform.xml:1.1 Tue Feb 24 16:35:23 2004 +++ peardoc/ja/package/html/html-quickform-controller/html-quickform-action/perform.xml Thu Jun 1 13:27:53 2006 @@ -1,4 +1,5 @@ -<!-- $Revision: 1.1 $ --> +<?xml version="1.0" encoding="utf-8" ?> +<!-- $Revision: 1.2 $ --> <!-- EN-Revision: 1.1 Maintainer: elf Status: ready --> <refentry id="package.html.html-quickform-controller.html-quickform-action.perform"> <refnamediv> @@ -21,7 +22,7 @@ <refsect1 id="package.html.html-quickform-controller.html-quickform-action.perform.desc"> &title.desc; <para> -このメソッドは必要なロジックを提供する子クラスによってオーバーライドされるべきです。 +子クラスでこのメソッドをオーバーライドし、必要となるロジックを提供しなければなりません。 </para> </refsect1> <refsect1 id="package.html.html-quickform-controller.html-quickform-action.perform.param"> @@ -36,7 +37,7 @@ </term> <listitem> <para> - カレントフォームページ。 + 現在のフォームページ。 </para> </listitem> </varlistentry> @@ -51,7 +52,8 @@ </term> <listitem> <para> - Current action name, as one Action object can serve multiple actions + 現在のアクション名。ひとつの Action オブジェクトで + 複数のアクションを扱えるため、指定する必要があります。 </para> </listitem> </varlistentry> @@ -61,7 +63,7 @@ <refsect1 id="package.html.html-quickform-controller.html-quickform-action.perform.throws"> &title.throws; <para> - <emphasis>throws</emphasis> 投げられる例外はありません。 + 例外はスローされません。 </para> </refsect1> <refsect1 id="package.html.html-quickform-controller.html-quickform-action.perform.note"> http://cvs.php.net/viewcvs.cgi/peardoc/ja/package/html/html-quickform.xml?r1=1.2&r2=1.3&diff_format=u Index: peardoc/ja/package/html/html-quickform.xml diff -u peardoc/ja/package/html/html-quickform.xml:1.2 peardoc/ja/package/html/html-quickform.xml:1.3 --- peardoc/ja/package/html/html-quickform.xml:1.2 Wed Nov 17 12:00:45 2004 +++ peardoc/ja/package/html/html-quickform.xml Thu Jun 1 13:27:53 2006 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.20 Maintainer: haruki Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.21 Maintainer: haruki Status: ready --> <sect1 id="package.html.html-quickform"> <title>HTML_QuickForm</title> <para> @@ -47,6 +47,7 @@ &package.html.html-quickform.html-quickform.getelement; &package.html.html-quickform.html-quickform.getmaxfilesize; &package.html.html-quickform.html-quickform.getregisteredtypes; +&package.html.html-quickform.html-quickform.insertelementbefore; &package.html.html-quickform.html-quickform.iserror; &package.html.html-quickform.html-quickform.istyperegistered; &package.html.html-quickform.html-quickform.registerelementtype; @@ -61,7 +62,7 @@ To be written </para> <sect3 id="package.html.html-quickform.elements.base"> - <title>Base classes</title> + <title>基本クラス群</title> &package.html.html-quickform.html-quickform-element; &package.html.html-quickform.html-quickform-element.html-quickform-element; &package.html.html-quickform.html-quickform-element.accept; @@ -299,8 +300,8 @@ <sect3 id="package.html.html-quickform.output.basic-renderers"> <title>基本的なレンダラ</title> <para> - これらのレンダラは、バージョン3.0以前の <classname>HTML_QuickForm</classname> コードを - 基礎としており、動作に他のクラスを必要としません。 + これらのレンダラは、バージョン 3.0 以前の <classname>HTML_QuickForm</classname> + コードを基礎としており、動作に他のクラスを必要としません。 </para> &package.html.html-quickform.intro-renderers; &package.html.html-quickform.html-quickform-renderer-default;
« previous php.pear.doc (#7970) next »