cvs: peardoc /en/package/html/html-template-flexy/element removeattributes.xml setattributes.xml setoptions.xml setvalue.xml tohtmlnoclose.xml
| From: | Alan Knowles | Date: | Thu, 29 Jan 2004 16:05:03 +0000 |
| Subject: | cvs: peardoc /en/package/html/html-template-flexy/element removeattributes.xml setattributes.xml setoptions.xml setvalue.xml tohtmlnoclose.xml | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-2256@lists.php.net to get a copy of this message | ||
alan_k Thu Jan 29 11:05:03 2004 EDT
Modified files:
/peardoc/en/package/html/html-template-flexy/element
removeattributes.xml
setattributes.xml
setoptions.xml
setvalue.xml
tohtmlnoclose.xml
Log:
better documentation for the element object
http://cvs.php.net/diff.php/peardoc/en/package/html/html-template-flexy/element/removeattributes.xml?r1=1.3&r2=1.4&ty=u Index: peardoc/en/package/html/html-template-flexy/element/removeattributes.xml diff -u peardoc/en/package/html/html-template-flexy/element/removeattributes.xml:1.3 peardoc/en/package/html/html-template-flexy/element/removeattributes.xml:1.4 --- peardoc/en/package/html/html-template-flexy/element/removeattributes.xml:1.3 Sat Aug 2 10:05:49 2003 +++ peardoc/en/package/html/html-template-flexy/element/removeattributes.xml Thu Jan 29 11:05:03 2004 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> <refentry id="package.html.html-template-flexy.element.removeattributes"> <refnamediv> <refname>$element->removeAttributes()</refname> @@ -10,14 +10,17 @@ <funcprototype> <funcdef> <function>$element->removeAttributes</function></funcdef> <paramdef>mixed <parameter>$attrs</parameter></paramdef> - <paramdef>string <parameter>$attr</parameter></paramdef> + </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.html.html-template-flexy.element.removeattributes.desc"> &title.desc; - ¬documented; + <para> + use this to remove attributes from the tag when the element is rendered, It may be easier to access the + attributes array directly and assign the value to false. + </para> </refsect1> <refsect1 id="package.html.html-template-flexy.element.removeattributes.param"> &title.param; @@ -27,18 +30,11 @@ <listitem> <para> - <parameter>$attributes</parameter> - </para> - </listitem> - </itemizedlist> - <itemizedlist> - <listitem> - <para> - <parameter>$attributes</parameter> - + <parameter>$attributes</parameter> name or array of names to remove from tag </para> </listitem> </itemizedlist> + </para> </refsect1> http://cvs.php.net/diff.php/peardoc/en/package/html/html-template-flexy/element/setattributes.xml?r1=1.3&r2=1.4&ty=u Index: peardoc/en/package/html/html-template-flexy/element/setattributes.xml diff -u peardoc/en/package/html/html-template-flexy/element/setattributes.xml:1.3 peardoc/en/package/html/html-template-flexy/element/setattributes.xml:1.4 --- peardoc/en/package/html/html-template-flexy/element/setattributes.xml:1.3 Sat Aug 2 10:05:49 2003 +++ peardoc/en/package/html/html-template-flexy/element/setattributes.xml Thu Jan 29 11:05:03 2004 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> <refentry id="package.html.html-template-flexy.element.setattributes"> <refnamediv> <refname>$element->setAttributes()</refname> @@ -18,7 +18,10 @@ <refsect1 id="package.html.html-template-flexy.element.setattributes.desc"> &title.desc; - ¬documented; + <para> + Can be used to set attribute values, It is easier to set the attributes directly using the + public attributes property. + </para> </refsect1> <refsect1 id="package.html.html-template-flexy.element.setattributes.param"> &title.param; http://cvs.php.net/diff.php/peardoc/en/package/html/html-template-flexy/element/setoptions.xml?r1=1.3&r2=1.4&ty=u Index: peardoc/en/package/html/html-template-flexy/element/setoptions.xml diff -u peardoc/en/package/html/html-template-flexy/element/setoptions.xml:1.3 peardoc/en/package/html/html-template-flexy/element/setoptions.xml:1.4 --- peardoc/en/package/html/html-template-flexy/element/setoptions.xml:1.3 Sat Aug 2 10:05:49 2003 +++ peardoc/en/package/html/html-template-flexy/element/setoptions.xml Thu Jan 29 11:05:03 2004 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> <refentry id="package.html.html-template-flexy.element.setoptions"> <refnamediv> <refname>$element->setOptions()</refname> @@ -10,14 +10,14 @@ <funcprototype> <funcdef> $element-><function>setOptions</function></funcdef> <paramdef>mixed <parameter>$array</parameter></paramdef> - <paramdef>HTML_Element <parameter>$from</parameter></paramdef> + <paramdef>boolean <parameter>$noValue = &false;</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.html.html-template-flexy.element.setoptions.desc"> &title.desc; - <para>but using key=>value maps <option value="key">Value</option> Key=key (eg. both the same) maps to <option>key</option> and label = array(key=>value) maps to <optgroup label="label"> <option value="key">value</option></optgroup></para><para>.</para> + <para>Used with HTML Selects, to fill in the options available</para> </refsect1> <refsect1 id="package.html.html-template-flexy.element.setoptions.param"> &title.param; @@ -30,12 +30,12 @@ <listitem> <para> - <parameter>$array</parameter> + <parameter>$array</parameter> the options to appear. </para> </listitem> <listitem> <para> - <parameter>$from</parameter> override settings from another element. + <parameter>$noValue</parameter> dont use the keys from the array sent as the value= part of the option tag. </para> </listitem> </itemizedlist> http://cvs.php.net/diff.php/peardoc/en/package/html/html-template-flexy/element/setvalue.xml?r1=1.3&r2=1.4&ty=u Index: peardoc/en/package/html/html-template-flexy/element/setvalue.xml diff -u peardoc/en/package/html/html-template-flexy/element/setvalue.xml:1.3 peardoc/en/package/html/html-template-flexy/element/setvalue.xml:1.4 --- peardoc/en/package/html/html-template-flexy/element/setvalue.xml:1.3 Sat Aug 2 10:05:49 2003 +++ peardoc/en/package/html/html-template-flexy/element/setvalue.xml Thu Jan 29 11:05:03 2004 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> <refentry id="package.html.html-template-flexy.element.setvalue"> <refnamediv> <refname>$element->setValue()</refname> @@ -8,33 +8,62 @@ <funcsynopsis> <funcprototype> - <funcdef> <function>HTML_Template_Flexy_Element::setValue</function></funcdef> + <funcdef> $element-><function>setValue</function></funcdef> <paramdef>mixed <parameter>$value</parameter></paramdef> - <paramdef>HTML_Element <parameter>$from</parameter></paramdef> + </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.html.html-template-flexy.element.setvalue.desc"> &title.desc; - ¬documented; - </refsect1> - <refsect1 id="package.html.html-template-flexy.element.setvalue.param"> - &title.param; + <para> + This is used to set the values of form elements, results depend on the type of element - <para> <itemizedlist> <listitem> <para> - <parameter>$value</parameter> + <parameter>text,password inputs, buttons</parameter> Fills in the value attribute + </para> + </listitem> + <listitem> + <para> + <parameter>checkboxs / radio buttons</parameter> adds a checked tag to the matching element </para> </listitem> <listitem> <para> - <parameter>$from</parameter> override settings from another element. + <parameter>textarea</parameter> fills in the text area content + </para> + </listitem> + + <listitem> + <para> + <parameter>checkbox with arrays</parameter> adds checked to the matching elements + </para> + </listitem> + + <listitem> + <para> + <parameter>selects</parameter> adds selected to the + </para> + </listitem> + </itemizedlist> + </para> + </refsect1> + <refsect1 id="package.html.html-template-flexy.element.setvalue.param"> + &title.param; + + <para> + <itemizedlist> + + <listitem> + <para> + <parameter>$value</parameter> The value to assign a form element, (use arrays for multiple selects or checkbox groups) </para> </listitem> + </itemizedlist> http://cvs.php.net/diff.php/peardoc/en/package/html/html-template-flexy/element/tohtmlnoclose.xml?r1=1.3&r2=1.4&ty=u Index: peardoc/en/package/html/html-template-flexy/element/tohtmlnoclose.xml diff -u peardoc/en/package/html/html-template-flexy/element/tohtmlnoclose.xml:1.3 peardoc/en/package/html/html-template-flexy/element/tohtmlnoclose.xml:1.4 --- peardoc/en/package/html/html-template-flexy/element/tohtmlnoclose.xml:1.3 Sat Aug 2 10:05:49 2003 +++ peardoc/en/package/html/html-template-flexy/element/tohtmlnoclose.xml Thu Jan 29 11:05:03 2004 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> <refentry id="package.html.html-template-flexy.element.tohtmlnoclose"> <refnamediv> <refname>$element->toHtmlnoClose()</refname> @@ -16,7 +16,10 @@ <refsect1 id="package.html.html-template-flexy.element.tohtmlnoclose.desc"> &title.desc; - ¬documented; + <para> + Used by the template to represent form tags, which only the opening tag are rendered dynamically + (so, all tags inside the tag are not forced to be dynamic). + </para> </refsect1> <refsect1 id="package.html.html-template-flexy.element.tohtmlnoclose.throws">
http://cvs.php.net/diff.php/peardoc/en/package/html/html-template-flexy/element/removeattributes.xml?r1=1.3&r2=1.4&ty=u Index: peardoc/en/package/html/html-template-flexy/element/removeattributes.xml diff -u peardoc/en/package/html/html-template-flexy/element/removeattributes.xml:1.3 peardoc/en/package/html/html-template-flexy/element/removeattributes.xml:1.4 --- peardoc/en/package/html/html-template-flexy/element/removeattributes.xml:1.3 Sat Aug 2 10:05:49 2003 +++ peardoc/en/package/html/html-template-flexy/element/removeattributes.xml Thu Jan 29 11:05:03 2004 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> <refentry id="package.html.html-template-flexy.element.removeattributes"> <refnamediv> <refname>$element->removeAttributes()</refname> @@ -10,14 +10,17 @@ <funcprototype> <funcdef> <function>$element->removeAttributes</function></funcdef> <paramdef>mixed <parameter>$attrs</parameter></paramdef> - <paramdef>string <parameter>$attr</parameter></paramdef> + </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.html.html-template-flexy.element.removeattributes.desc"> &title.desc; - ¬documented; + <para> + use this to remove attributes from the tag when the element is rendered, It may be easier to access the + attributes array directly and assign the value to false. + </para> </refsect1> <refsect1 id="package.html.html-template-flexy.element.removeattributes.param"> &title.param; @@ -27,18 +30,11 @@ <listitem> <para> - <parameter>$attributes</parameter> - </para> - </listitem> - </itemizedlist> - <itemizedlist> - <listitem> - <para> - <parameter>$attributes</parameter> - + <parameter>$attributes</parameter> name or array of names to remove from tag </para> </listitem> </itemizedlist> + </para> </refsect1> http://cvs.php.net/diff.php/peardoc/en/package/html/html-template-flexy/element/setattributes.xml?r1=1.3&r2=1.4&ty=u Index: peardoc/en/package/html/html-template-flexy/element/setattributes.xml diff -u peardoc/en/package/html/html-template-flexy/element/setattributes.xml:1.3 peardoc/en/package/html/html-template-flexy/element/setattributes.xml:1.4 --- peardoc/en/package/html/html-template-flexy/element/setattributes.xml:1.3 Sat Aug 2 10:05:49 2003 +++ peardoc/en/package/html/html-template-flexy/element/setattributes.xml Thu Jan 29 11:05:03 2004 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> <refentry id="package.html.html-template-flexy.element.setattributes"> <refnamediv> <refname>$element->setAttributes()</refname> @@ -18,7 +18,10 @@ <refsect1 id="package.html.html-template-flexy.element.setattributes.desc"> &title.desc; - ¬documented; + <para> + Can be used to set attribute values, It is easier to set the attributes directly using the + public attributes property. + </para> </refsect1> <refsect1 id="package.html.html-template-flexy.element.setattributes.param"> &title.param; http://cvs.php.net/diff.php/peardoc/en/package/html/html-template-flexy/element/setoptions.xml?r1=1.3&r2=1.4&ty=u Index: peardoc/en/package/html/html-template-flexy/element/setoptions.xml diff -u peardoc/en/package/html/html-template-flexy/element/setoptions.xml:1.3 peardoc/en/package/html/html-template-flexy/element/setoptions.xml:1.4 --- peardoc/en/package/html/html-template-flexy/element/setoptions.xml:1.3 Sat Aug 2 10:05:49 2003 +++ peardoc/en/package/html/html-template-flexy/element/setoptions.xml Thu Jan 29 11:05:03 2004 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> <refentry id="package.html.html-template-flexy.element.setoptions"> <refnamediv> <refname>$element->setOptions()</refname> @@ -10,14 +10,14 @@ <funcprototype> <funcdef> $element-><function>setOptions</function></funcdef> <paramdef>mixed <parameter>$array</parameter></paramdef> - <paramdef>HTML_Element <parameter>$from</parameter></paramdef> + <paramdef>boolean <parameter>$noValue = &false;</parameter></paramdef> </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.html.html-template-flexy.element.setoptions.desc"> &title.desc; - <para>but using key=>value maps <option value="key">Value</option> Key=key (eg. both the same) maps to <option>key</option> and label = array(key=>value) maps to <optgroup label="label"> <option value="key">value</option></optgroup></para><para>.</para> + <para>Used with HTML Selects, to fill in the options available</para> </refsect1> <refsect1 id="package.html.html-template-flexy.element.setoptions.param"> &title.param; @@ -30,12 +30,12 @@ <listitem> <para> - <parameter>$array</parameter> + <parameter>$array</parameter> the options to appear. </para> </listitem> <listitem> <para> - <parameter>$from</parameter> override settings from another element. + <parameter>$noValue</parameter> dont use the keys from the array sent as the value= part of the option tag. </para> </listitem> </itemizedlist> http://cvs.php.net/diff.php/peardoc/en/package/html/html-template-flexy/element/setvalue.xml?r1=1.3&r2=1.4&ty=u Index: peardoc/en/package/html/html-template-flexy/element/setvalue.xml diff -u peardoc/en/package/html/html-template-flexy/element/setvalue.xml:1.3 peardoc/en/package/html/html-template-flexy/element/setvalue.xml:1.4 --- peardoc/en/package/html/html-template-flexy/element/setvalue.xml:1.3 Sat Aug 2 10:05:49 2003 +++ peardoc/en/package/html/html-template-flexy/element/setvalue.xml Thu Jan 29 11:05:03 2004 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> <refentry id="package.html.html-template-flexy.element.setvalue"> <refnamediv> <refname>$element->setValue()</refname> @@ -8,33 +8,62 @@ <funcsynopsis> <funcprototype> - <funcdef> <function>HTML_Template_Flexy_Element::setValue</function></funcdef> + <funcdef> $element-><function>setValue</function></funcdef> <paramdef>mixed <parameter>$value</parameter></paramdef> - <paramdef>HTML_Element <parameter>$from</parameter></paramdef> + </funcprototype> </funcsynopsis> </refsynopsisdiv> <refsect1 id="package.html.html-template-flexy.element.setvalue.desc"> &title.desc; - ¬documented; - </refsect1> - <refsect1 id="package.html.html-template-flexy.element.setvalue.param"> - &title.param; + <para> + This is used to set the values of form elements, results depend on the type of element - <para> <itemizedlist> <listitem> <para> - <parameter>$value</parameter> + <parameter>text,password inputs, buttons</parameter> Fills in the value attribute + </para> + </listitem> + <listitem> + <para> + <parameter>checkboxs / radio buttons</parameter> adds a checked tag to the matching element </para> </listitem> <listitem> <para> - <parameter>$from</parameter> override settings from another element. + <parameter>textarea</parameter> fills in the text area content + </para> + </listitem> + + <listitem> + <para> + <parameter>checkbox with arrays</parameter> adds checked to the matching elements + </para> + </listitem> + + <listitem> + <para> + <parameter>selects</parameter> adds selected to the + </para> + </listitem> + </itemizedlist> + </para> + </refsect1> + <refsect1 id="package.html.html-template-flexy.element.setvalue.param"> + &title.param; + + <para> + <itemizedlist> + + <listitem> + <para> + <parameter>$value</parameter> The value to assign a form element, (use arrays for multiple selects or checkbox groups) </para> </listitem> + </itemizedlist> http://cvs.php.net/diff.php/peardoc/en/package/html/html-template-flexy/element/tohtmlnoclose.xml?r1=1.3&r2=1.4&ty=u Index: peardoc/en/package/html/html-template-flexy/element/tohtmlnoclose.xml diff -u peardoc/en/package/html/html-template-flexy/element/tohtmlnoclose.xml:1.3 peardoc/en/package/html/html-template-flexy/element/tohtmlnoclose.xml:1.4 --- peardoc/en/package/html/html-template-flexy/element/tohtmlnoclose.xml:1.3 Sat Aug 2 10:05:49 2003 +++ peardoc/en/package/html/html-template-flexy/element/tohtmlnoclose.xml Thu Jan 29 11:05:03 2004 @@ -1,4 +1,4 @@ -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> <refentry id="package.html.html-template-flexy.element.tohtmlnoclose"> <refnamediv> <refname>$element->toHtmlnoClose()</refname> @@ -16,7 +16,10 @@ <refsect1 id="package.html.html-template-flexy.element.tohtmlnoclose.desc"> &title.desc; - ¬documented; + <para> + Used by the template to represent form tags, which only the opening tag are rendered dynamically + (so, all tags inside the tag are not forced to be dynamic). + </para> </refsect1> <refsect1 id="package.html.html-template-flexy.element.tohtmlnoclose.throws">