cvs: peardoc /en/package/html/html-template-flexy/element html-template-flexy-element.xml /ja/package/html/html-template-flexy/element html-template-flexy-element.xml
[email protected] ("Brett Bieber")
| Newsgroups | php.pear.doc |
|---|---|
| Message-ID | <cvssaltybeagle1197396788@cvsserver> |
saltybeagle Tue Dec 11 18:13:08 2007 UTC
Modified files:
/peardoc/ja/package/html/html-template-flexy/element
html-template-flexy-element.xml
/peardoc/en/package/html/html-template-flexy/element
html-template-flexy-element.xml
Log:
Doc Bug #12035 setAttributes function lacks the final "s"
As noted by bug reporter and in a correct usage example provided by alan_k in http://pear.php.net/bugs/bug.php?id=6058, the correct syntax is array('flexy:xhtml' => true), and the correct method is setAttributes (plural).
http://cvs.php.net/viewvc.cgi/peardoc/ja/package/html/html-template-flexy/element/html-template-flexy-element.xml?r1=1.1&r2=1.2&diff_format=u
Index: peardoc/ja/package/html/html-template-flexy/element/html-template-flexy-element.xml
diff -u peardoc/ja/package/html/html-template-flexy/element/html-template-flexy-element.xml:1.1 peardoc/ja/package/html/html-template-flexy/element/html-template-flexy-element.xml:1.2
--- peardoc/ja/package/html/html-template-flexy/element/html-template-flexy-element.xml:1.1 Sun Dec 31 02:20:22 2006
+++ peardoc/ja/package/html/html-template-flexy/element/html-template-flexy-element.xml Tue Dec 11 18:13:08 2007
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
-<!-- $Revision: 1.1 $ -->
+<!-- $Revision: 1.2 $ -->
<!-- EN-Revision: 1.12 Maintainer: takagi Status: ready -->
<refentry id="package.html.html-template-flexy.element.html-template-flexy-element">
<refnamediv>
@@ -28,7 +28,7 @@
</para>
<para>
toHtml() メソッドで、標準の HTML ではなく XHTML を出力させるには、
- $element->setAttribute('flexy:xhtml','yes'); を使用するか、
+ $element->setAttributes(array('flexy:xhtml'=>true)); を使用するか、
あるいは flexy:xhtml="true" をテンプレート内の要素の属性に指定します。
</para>
</refsect1>
@@ -239,7 +239,7 @@
// チェックボックス
$elements['test_checkbox'] = new HTML_Template_Flexy_Element;
$elements['test_checkbox']->setValue(1);
-$elements['test_checkbox']->setAttribute('flexy:xhtml','yes');
+$elements['test_checkbox']->setAttributes(array('flexy:xhtml'=>true));
// 配列形式のチェックボックス
$elements['test_checkbox_array[]'] = new HTML_Template_Flexy_Element;
http://cvs.php.net/viewvc.cgi/peardoc/en/package/html/html-template-flexy/element/html-template-flexy-element.xml?r1=1.12&r2=1.13&diff_format=u
Index: peardoc/en/package/html/html-template-flexy/element/html-template-flexy-element.xml
diff -u peardoc/en/package/html/html-template-flexy/element/html-template-flexy-element.xml:1.12 peardoc/en/package/html/html-template-flexy/element/html-template-flexy-element.xml:1.13
--- peardoc/en/package/html/html-template-flexy/element/html-template-flexy-element.xml:1.12 Sun Jun 4 13:25:12 2006
+++ peardoc/en/package/html/html-template-flexy/element/html-template-flexy-element.xml Tue Dec 11 18:13:08 2007
@@ -1,4 +1,4 @@
-<!-- $Revision: 1.12 $ -->
+<!-- $Revision: 1.13 $ -->
<refentry id="package.html.html-template-flexy.element.html-template-flexy-element">
<refnamediv>
<refname>new HTML_Template_Flexy_Element</refname>
@@ -20,11 +20,11 @@
<refsect1 id="package.html.html-template-flexy.element.html-template-flexy-element.desc">
&title.desc;
<para>
- Flexy uses a single lightweight class to represent All HTML Tags, All the variables of the class are
+ Flexy uses a single lightweight class to represent All HTML Tags, All the variables of the class are
public, and you are encouraged to use them. And the methods provide generic assignment and conversion abilities.
</para>
<para>
- To force th toHtml() method to generate XHTML, rather than standard HTML, use $element->setAttribute('flexy:xhtml','yes');
+ To force the toHtml() method to generate XHTML, rather than standard HTML, use $element->setAttributes(array('flexy:xhtml'=>true));
or add flexy:xhtml="true" to the attribute of the element in the template.
</para>
</refsect1>
@@ -232,7 +232,7 @@
// checkboxes
$elements['test_checkbox'] = new HTML_Template_Flexy_Element;
$elements['test_checkbox']->setValue(1);
-$elements['test_checkbox']->setAttribute('flexy:xhtml','yes');
+$elements['test_checkbox']->setAttributes(array('flexy:xhtml'=>true));
// array type checkboxes..
$elements['test_checkbox_array[]'] = new HTML_Template_Flexy_Element;