cvs: peardoc /ja/package/html/html-quickform html-quickform-renderer-object.xml html-quickform-renderer-objectflexy.xml
/ja/package/html/html-quickform/html-quickform-renderer-object html-quickform-renderer-object.xml toobject.xml
/ja/package/html/html-quickform/html-quickform-renderer-objectflexy html-quickform-renderer-objectflexy.xml sethtmltemplate.xml setlabeltemplate.xml

From: Date: Fri, 28 Mar 2008 09:04:22 +0000
Subject: cvs: peardoc /ja/package/html/html-quickform html-quickform-renderer-object.xml html-quickform-renderer-objectflexy.xml
/ja/package/html/html-quickform/html-quickform-renderer-object html-quickform-renderer-object.xml toobject.xml
/ja/package/html/html-quickform/html-quickform-renderer-objectflexy html-quickform-renderer-objectflexy.xml sethtmltemplate.xml setlabeltemplate.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-10595@lists.php.net to get a copy of this message
takagi Fri Mar 28 09:04:22 2008 UTC Added files: /peardoc/ja/package/html/html-quickform/html-quickform-renderer-objectflexy setlabeltemplate.xml sethtmltemplate.xml html-quickform-renderer-objectflexy.xml /peardoc/ja/package/html/html-quickform/html-quickform-renderer-object toobject.xml html-quickform-renderer-object.xml /peardoc/ja/package/html/html-quickform html-quickform-renderer-objectflexy.xml html-quickform-renderer-object.xml Log: added Japanese translation.

http://cvs.php.net/viewvc.cgi/peardoc/ja/package/html/html-quickform/html-quickform-renderer-objectflexy/setlabeltemplate.xml?view=markup&rev=1.1 Index: peardoc/ja/package/html/html-quickform/html-quickform-renderer-objectflexy/setlabeltemplate.xml +++ peardoc/ja/package/html/html-quickform/html-quickform-renderer-objectflexy/setlabeltemplate.xml <?xml version="1.0" encoding="utf-8" ?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: takagi Status: ready --> <refentry id="package.html.html-quickform.html-quickform-renderer-objectflexy.setlabeltemplate"> <refnamediv> <refname>HTML_QuickForm_Renderer_ObjectFlexy::setLabelTemplate()</refname> <refpurpose>html 要素のレンダリングに使用するテンプレートのファイル名を設定する</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'HTML/QuickForm/Renderer/ObjectFlexy.php'; </funcsynopsisinfo> <funcprototype> <funcdef>void <function>HTML_QuickForm_Renderer_ObjectFlexy::setLabelTemplate</function></funcdef> <paramdef>string <parameter>$template</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.html.html-quickform.html-quickform-renderer-objectflexy.setlabeltemplate.desc"> &title.desc; <para> フォームのラベルのレンダリングに使用するテンプレートのファイル名を設定します。 テンプレート内では、{label} が未修正のラベルに変換されます。 エラーが発生した場合は、{error} にエラーが設定されます。 要素が必須の場合は、{required} が true となります。例を示します。 <programlisting> <![CDATA[ {if:required} <font color="orange" size="1">*</font> {end:} {label:h} ]]> </programlisting> </para> </refsect1> <refsect1 id="package.html.html-quickform.html-quickform-renderer-objectflexy.setlabeltemplate.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$template</parameter> </term> <listitem> <para> テンプレートのファイル名。 </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.html.html-quickform.html-quickform-renderer-objectflexy.setlabeltemplate.throws"> &title.throws; <para> 例外はスローされません。 </para> </refsect1> <refsect1 id="package.html.html-quickform.html-quickform-renderer-objectflexy.setlabeltemplate.note"> &title.note; &note.notstatic; </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 --> http://cvs.php.net/viewvc.cgi/peardoc/ja/package/html/html-quickform/html-quickform-renderer-objectflexy/sethtmltemplate.xml?view=markup&rev=1.1 Index: peardoc/ja/package/html/html-quickform/html-quickform-renderer-objectflexy/sethtmltemplate.xml +++ peardoc/ja/package/html/html-quickform/html-quickform-renderer-objectflexy/sethtmltemplate.xml <?xml version="1.0" encoding="utf-8" ?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: takagi Status: ready --> <refentry id="package.html.html-quickform.html-quickform-renderer-objectflexy.sethtmltemplate"> <refnamediv> <refname>HTML_QuickForm_Renderer_ObjectFlexy::setHtmlTemplate()</refname> <refpurpose>html 要素のレンダリングに使用するテンプレートのファイル名を設定する</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'HTML/QuickForm/Renderer/ObjectFlexy.php'; </funcsynopsisinfo> <funcprototype> <funcdef>void <function>HTML_QuickForm_Renderer_ObjectFlexy::setHtmlTemplate</function></funcdef> <paramdef>string <parameter>$template</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.html.html-quickform.html-quickform-renderer-objectflexy.sethtmltemplate.desc"> &title.desc; <para> テンプレート内では、{html} が未修正の html に変換されます。 要素が必須の場合は、{required} が true となります。例を示します。 <programlisting> <![CDATA[ {if:error} <font color="red" size="1">{error:h}</font><br /> {end:} {html:h} ]]> </programlisting> </para> </refsect1> <refsect1 id="package.html.html-quickform.html-quickform-renderer-objectflexy.sethtmltemplate.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.string; <parameter>$template</parameter> </term> <listitem> <para> テンプレートのファイル名。 </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.html.html-quickform.html-quickform-renderer-objectflexy.sethtmltemplate.throws"> &title.throws; <para> 例外はスローされません。 </para> </refsect1> <refsect1 id="package.html.html-quickform.html-quickform-renderer-objectflexy.sethtmltemplate.note"> &title.note; &note.notstatic; </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 --> http://cvs.php.net/viewvc.cgi/peardoc/ja/package/html/html-quickform/html-quickform-renderer-objectflexy/html-quickform-renderer-objectflexy.xml?view=markup&rev=1.1 Index: peardoc/ja/package/html/html-quickform/html-quickform-renderer-objectflexy/html-quickform-renderer-objectflexy.xml +++ peardoc/ja/package/html/html-quickform/html-quickform-renderer-objectflexy/html-quickform-renderer-objectflexy.xml <?xml version="1.0" encoding="utf-8" ?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: takagi Status: ready --> <refentry id="package.html.html-quickform.html-quickform-renderer-objectflexy.html-quickform-renderer-objectflexy"> <refnamediv> <refname>constructor HTML_QuickForm_Renderer_ObjectFlexy::HTML_QuickForm_Renderer_ObjectFlexy()</refname> <refpurpose>コンストラクタ</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'HTML/QuickForm/Renderer/ObjectFlexy.php'; </funcsynopsisinfo> <funcprototype> <funcdef>void <function>HTML_QuickForm_Renderer_ObjectFlexy::HTML_QuickForm_Renderer_ObjectFlexy</function></funcdef> <paramdef>object <parameter>&amp;$flexy</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.html.html-quickform.html-quickform-renderer-objectflexy.html-quickform-renderer-objectflexy.desc"> &title.desc; &notdocumented; </refsect1> <refsect1 id="package.html.html-quickform.html-quickform-renderer-objectflexy.html-quickform-renderer-objectflexy.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.object; <parameter>&amp;$flexy</parameter> </term> <listitem> <para> 使用する、HTML_Template_Flexy あるいは互換テンプレートのオブジェクト。 </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.html.html-quickform.html-quickform-renderer-objectflexy.html-quickform-renderer-objectflexy.throws"> &title.throws; <para> 例外はスローされません。 </para> </refsect1> <refsect1 id="package.html.html-quickform.html-quickform-renderer-objectflexy.html-quickform-renderer-objectflexy.note"> &title.note; &note.notstatic; </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 --> http://cvs.php.net/viewvc.cgi/peardoc/ja/package/html/html-quickform/html-quickform-renderer-object/toobject.xml?view=markup&rev=1.1 Index: peardoc/ja/package/html/html-quickform/html-quickform-renderer-object/toobject.xml +++ peardoc/ja/package/html/html-quickform/html-quickform-renderer-object/toobject.xml <?xml version="1.0" encoding="utf-8" ?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: takagi Status: ready --> <refentry id="package.html.html-quickform.html-quickform-renderer-object.toobject"> <refnamediv> <refname>HTML_QuickForm_Renderer_Object::toObject()</refname> <refpurpose>結果のオブジェクトを返す</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'HTML/QuickForm/Renderer/Object.php'; </funcsynopsisinfo> <funcprototype> <funcdef>QuickformForm <function>HTML_QuickForm_Renderer_Object::toObject</function></funcdef> <void /> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.html.html-quickform.html-quickform-renderer-object.toobject.desc"> &title.desc; <para>レンダラによって作成された、フォームのオブジェクト表現を返します。</para> </refsect1> <refsect1 id="package.html.html-quickform.html-quickform-renderer-object.toobject.throws"> &title.throws; <para> 例外はスローされません。 </para> </refsect1> <refsect1 id="package.html.html-quickform.html-quickform-renderer-object.toobject.note"> &title.note; &note.notstatic; </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 --> http://cvs.php.net/viewvc.cgi/peardoc/ja/package/html/html-quickform/html-quickform-renderer-object/html-quickform-renderer-object.xml?view=markup&rev=1.1 Index: peardoc/ja/package/html/html-quickform/html-quickform-renderer-object/html-quickform-renderer-object.xml +++ peardoc/ja/package/html/html-quickform/html-quickform-renderer-object/html-quickform-renderer-object.xml <?xml version="1.0" encoding="utf-8" ?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: takagi Status: ready --> <refentry id="package.html.html-quickform.html-quickform-renderer-object.html-quickform-renderer-object"> <refnamediv> <refname>constructor HTML_QuickForm_Renderer_Object::HTML_QuickForm_Renderer_Object()</refname> <refpurpose>コンストラクタ</refpurpose> </refnamediv> <refsynopsisdiv> <funcsynopsis> <funcsynopsisinfo> require_once 'HTML/QuickForm/Renderer/Object.php'; </funcsynopsisinfo> <funcprototype> <funcdef>void <function>HTML_QuickForm_Renderer_Object::HTML_QuickForm_Renderer_Object</function></funcdef> <paramdef> bool <parameter> <optional>$collectHidden = &false;</optional></parameter> </paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.html.html-quickform.html-quickform-renderer-object.html-quickform-renderer-object.desc"> &title.desc; &notdocumented; </refsect1> <refsect1 id="package.html.html-quickform.html-quickform-renderer-object.html-quickform-renderer-object.param"> &title.param; <para> <variablelist> <varlistentry> <term> &type.bool; <parameter>$collectHidden</parameter> </term> <listitem> <para> &true;: すべての hidden 要素を文字列にまとめます。&false;: hidden 要素を通常のフォーム要素として処理します。 </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 id="package.html.html-quickform.html-quickform-renderer-object.html-quickform-renderer-object.throws"> &title.throws; <para> 例外はスローされません。 </para> </refsect1> <refsect1 id="package.html.html-quickform.html-quickform-renderer-object.html-quickform-renderer-object.note"> &title.note; &note.notstatic; </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 --> http://cvs.php.net/viewvc.cgi/peardoc/ja/package/html/html-quickform/html-quickform-renderer-objectflexy.xml?view=markup&rev=1.1 Index: peardoc/ja/package/html/html-quickform/html-quickform-renderer-objectflexy.xml +++ peardoc/ja/package/html/html-quickform/html-quickform-renderer-objectflexy.xml <?xml version="1.0" encoding="utf-8" ?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: takagi Status: ready --> <refentry id="package.html.html-quickform.html-quickform-renderer-objectflexy"> <refnamediv> <refname><classname>HTML_QuickForm_Renderer_ObjectFlexy</classname></refname> <refpurpose>Flexy テンプレート用のレンダラ</refpurpose> </refnamediv> <refsect1 id="package.html.html-quickform.html-quickform-renderer-objectflexy.desc"> &title.desc; <para> このレンダラは、Flexy テンプレートを使用してフォームを出力します。 静的な使用例と動的な使用例が <filename class="directory">docs/renderers</filename> ディレクトリにあります。 </para> </refsect1> <refsect1 id="package.html.html-quickform.html-quickform-renderer-objectflexy.example"> <title>使用例</title> <para> これは、ObjectFlexy レンダラを単純なテンプレートで使用する例です。 <example> <title>要素の定義</title> <programlisting role="php"> <![CDATA[ <?php require_once 'HTML/Template/Flexy.php'; require_once 'HTML/QuickForm.php'; require_once 'HTML/QuickForm/Renderer/ObjectFlexy.php'; // フォーム名を使用してプレースホルダを探します $form = new HTML_QuickForm('form', 'POST'); // 個人情報 $form->addElement('header', 'personal', 'Personal Information'); $form->addElement('text', 'email', 'Your email:'); $form->addElement('password', 'pass', 'Your password:', 'size=10'); $name['last'] = &HTML_QuickForm::createElement('text', 'first', 'First', 'size=10'); $name['first'] = &HTML_QuickForm::createElement('text', 'last', 'Last', 'size=10'); $form->addGroup($name, 'name', 'Name:', ',&nbsp;'); $areaCode = &HTML_QuickForm::createElement('text', '', null,'size=4 maxlength=3'); $phoneNo1 = &HTML_QuickForm::createElement('text', '', null, 'size=4 maxlength=3'); $phoneNo2 = &HTML_QuickForm::createElement('text', '', null, 'size=5 maxlength=4'); $form->addGroup(array($areaCode, $phoneNo1, $phoneNo2), 'phone', 'Telephone:', '-'); // 会社情報 $form->addElement('header', 'company_info', 'Company Information'); $form->addElement('text', 'company', 'Company:', 'size=20'); $str[] = &HTML_QuickForm::createElement('text', '', null, 'size=20'); $str[] = &HTML_QuickForm::createElement('text', '', null, 'size=20'); $form->addGroup($str, 'street', 'Street:', '<br />'); $addr['zip'] = &HTML_QuickForm::createElement('text', 'zip', 'Zip', 'size=6 maxlength=10'); $addr['city'] = &HTML_QuickForm::createElement('text', 'city', 'City', 'size=15'); $form->addGroup($addr, 'address', 'Zip, city:'); $select = array('' => 'Please select...', 'AU' => 'Australia', 'FR' => 'France', 'DE' => 'Germany', 'IT' => 'Italy'); $form->addElement('select', 'country', 'Country:', $select); // その他の要素 $form->addElement('checkbox', 'news', '', " Check this box if you don't want to receive our newsletter."); $form->addElement('reset', 'reset', 'Reset'); $form->addElement('submit', 'submit', 'Register'); // フォームの検証 if ($form->validate()) { // 入力に問題がなかったのでデータをフリーズします $form->freeze(); } // テンプレートオブジェクトの準備 $options = &PEAR::getStaticProperty('HTML_Template_Flexy','options'); $options = array( 'templateDir' => './templates', 'compileDir' => './templates/build', 'forceCompile' => 1, 'debug' => 0, 'local' => 'en' ); $template = new HTML_Template_Flexy($options); $renderer =& new HTML_QuickForm_Renderer_ObjectFlexy($template); $renderer->setLabelTemplate("label.html"); $renderer->setHtmlTemplate("html.html"); $form->accept($renderer); $view = new StdClass; $view->form = $renderer->toObject(); $template->compile("flexy-static.html"); $template->outputObject($view); ?> ]]> </programlisting> </example> </para> <para> 上で使用するテンプレートファイルは、次のようになります。 <filename>label.html</filename> <example> <title>ラベル用のテンプレート</title> <programlisting> <![CDATA[ {if:required} <font color="red" size="1">*</font> {end:} {label:h} ]]> </programlisting> </example> <filename>html.html</filename> <example> <title>html 全体用のテンプレート</title> <programlisting> <![CDATA[ {if:error} <font color="orange" size="1">{error:h}</font><br /> {end:} {html:h} ]]> </programlisting> </example> <filename>flexy-static.html</filename> <example> <title>フォーム用のテンプレート</title> <programlisting> <![CDATA[ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <!-- $Id: html-quickform-renderer-objectflexy.xml,v 1.1 2008/03/28 09:04:22 takagi Exp $ --> <html> <head> <title>Flexy template : 2 column layout example</title> <style type="text/css"> .errors { font-family: sans-serif; color : #000; background-color : #FFF; font-size : 12pt; } .label { font-family: sans-serif; color : Navy; font-size : 11px; text-align : right; vertical-align : top; white-space: nowrap; } .element { font-family: sans-serif; background-color : #EEE; text-align : left; white-space: nowrap; } .note { font-family: sans-serif; background-color : #EEE; text-align : center; font-size : 10pt; color : AAA; white-space: nowrap; } th { font-family: sans-serif; font-size : small; color : #FFF; background-color : #AAA; } .maintable { border : thin dashed #D0D0D0; background-color : #EEE; } </style> {form.javascript:h} </head> <body> {form.outputHeader():h} {form.hidden:h} <table class="maintable" width="600" align="center"> <tr> <td width="50%" valign="top"><!-- Personal info --> <table width="100%" cellpadding="4"> <tr><th colspan="2">{form.header.personal:h}</th></tr> <tr> <td class="label">{form.name.label:h}</td> <td class="element">{form.name.error:h} <table cellspacing="0" cellpadding="1"> <tr> <td>{form.name.first.html:h}</td> <td>{form.name.last.html:h}</td> </tr> <tr> <td><font size="1" color="grey">{form.name.first.label:h}</font></td> <td><font size="1" color="grey">{form.name.last.label:h}</font></td> </tr> </table> </td> </tr> <tr> <td class="label">{form.phone.label:h}</td> <td class="element">{form.phone.html:h}</td> </tr> <tr> <td class="label">{form.email.label:h}</td> <td class="element">{form.email.html:h}</td> </tr> <tr><td colspan="2" class="note">Please, choose a 8-10 characters password.</td></tr> <tr> <td class="label">{form.pass.label:h}</td> <td class="element">{form.pass.html:h}</td> </tr> </table> </td> <td width="50%" valign="top"><!-- Company info --> <table width="100%" cellpadding="4"> <tr><th colspan="2">{form.header.company_info:h}</th></tr> <tr> <td class="label">{form.company.label:h}</td> <td class="element">{form.company.html:h}</td> </tr> <tr> <td class="label" valign="top">{form.street.label:h}</td> <td class="element">{form.street.html:h}</td> </tr> <tr> <td class="label">{form.address.label:h}</td> <td class="element">{form.address.error:h} <table cellspacing="0" cellpadding="1"> <tr> <td>{form.address.zip.html:h}</td> <td>{form.address.city.html:h}</td> </tr> <tr> <td><font size="1" color="grey">{form.address.zip.label:h}</font></td> <td><font size="1" color="grey">{form.address.city.label:h}</font></td> </tr> </table> </td> </tr> <tr> <td class="label">{form.country.label:h}</td> <td class="element">{form.country.html:h}</td> </tr> <tr> <td class="label">{form.destination.label:h}</td> <td class="element">{form.destination.html:h}</td> </tr> </table> </td> </tr> </table> <table width="600" align="center"> <tr> <td>{form.requirednote:h}</td> <td align="right">{form.reset.html:h}&nbsp;{form.submit.html:h}</td> </tr> <tr> <td colspan="2" style="font-size:11px; color: navy;"><br />{form.news.html:h}</td> </tr> </table> </form> <br /> <b>Collected Errors:</b><br /> {foreach:form.errors,error} <font color="red">{error}</font> in element [{name}]<br /> {end:} &nbsp; <p><strong>The used "Static" Object</strong></p> <pre style="font-size: 12px;"> {static_object} </pre> </body> </html> ]]> </programlisting> </example> </para> <para> Flexy テンプレートについての情報は、パッケージのホームページを参照ください。 </para> </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-executeMultiple-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 --> http://cvs.php.net/viewvc.cgi/peardoc/ja/package/html/html-quickform/html-quickform-renderer-object.xml?view=markup&rev=1.1 Index: peardoc/ja/package/html/html-quickform/html-quickform-renderer-object.xml +++ peardoc/ja/package/html/html-quickform/html-quickform-renderer-object.xml <?xml version="1.0" encoding="utf-8" ?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: takagi Status: ready --> <refentry id="package.html.html-quickform.html-quickform-renderer-object"> <refnamediv> <refname><classname>HTML_QuickForm_Renderer_Object</classname></refname> <refpurpose>フォームをオブジェクトで表す</refpurpose> </refnamediv> <refsect1 id="package.html.html-quickform.html-quickform-renderer-object.desc"> &title.desc; <para> このレンダラは自分自身では何も出力せず、フォームの構造をオブジェクトで返します。 このオブジェクトは、後で出力を生成する際に使用されます。 このレンダラと Flexy テンプレートエンジンを使用した例が、 <filename class="directory">docs/renderers</filename> ディレクトリにあります。 </para> <para> フォームのオブジェクトは、以下のようになります。 <programlisting> <![CDATA[ QuickformForm Object ( [frozen] => [javascript] => [attributes] => action="/object.php" method="post" name="form" id="form" [requirednote] => <span style="font-size:80%; color:#ff0000;">*</span><span style="font-size:80%;"> denotes required field</span> [hidden] => [errors] => stdClass Object ( ) [elements] => Array ( [0] => QuickformElement Object ( [name] => session [value] => 1234567890 [type] => hidden [frozen] => [label] => [required] => [error] => [style] => [html] => <input name="session" type="hidden" value="1234567890" /> [separator] => [elements] => ) ... ) [sections] => Array ( [0] => stdClass Object ( [header] => Personal Information [elements] => Array ( [0] => QuickformElement Object ( [name] => email [value] => [type] => text [frozen] => [label] => Your email: [required] => 1 [error] => [style] => [html] => <input name="email" type="text" /> [separator] => [elements] => ) ... ) ) ... ) ) ]]> </programlisting> </para> <tip> <para> <function>HTML_QuickForm::toObject</function> メソッドは、 内部でオブジェクトレンダラを使用します。 </para> </tip> </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-executeMultiple-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 (#10595) next »