cvs: peardoc /en/package/html html-quickform.xml
| From: | Alexey Borzov | Date: | Thu, 29 May 2003 19:26:37 +0000 |
| Subject: | cvs: peardoc /en/package/html html-quickform.xml | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-857@lists.php.net to get a copy of this message | ||
avb Thu May 29 15:26:37 2003 EDT
Modified files:
/peardoc/en/package/html html-quickform.xml
Log:
First batch of API docs for HTML_QuickForm class itself...
Index: peardoc/en/package/html/html-quickform.xml
diff -u peardoc/en/package/html/html-quickform.xml:1.2
peardoc/en/package/html/html-quickform.xml:1.3
--- peardoc/en/package/html/html-quickform.xml:1.2 Wed May 28 11:30:48 2003
+++ peardoc/en/package/html/html-quickform.xml Thu May 29 15:26:37 2003
@@ -1,4 +1,4 @@
-<!-- $Revision: 1.2 $ -->
+<!-- $Revision: 1.3 $ -->
<sect1 id="package.html.html-quickform">
<title>HTML_QuickForm</title>
<para>
@@ -44,7 +44,19 @@
QuickForm can also make use of filters for data import into the form or for data processing once
the form has been submitted. Filters work the same way as rules except that you don't need to
register them. You write your filter functions and call them in your script. You can call any php
function (ie. trim, addslashes, htmlentities, etc.) and have them applied recursively to your
element values.
</para>
&package.html.html-quickform.intro-validation;
- </sect2>
+&package.html.html-quickform.html-quickform.addrule;
+&package.html.html-quickform.html-quickform.addgrouprule;
+&package.html.html-quickform.html-quickform.iselementrequired;
+&package.html.html-quickform.html-quickform.validate;
+&package.html.html-quickform.html-quickform.getelementerror;
+&package.html.html-quickform.html-quickform.setelementerror;
+
+&package.html.html-quickform.html-quickform.registerrule;
+&package.html.html-quickform.html-quickform.getregisteredrules;
+&package.html.html-quickform.html-quickform.isruleregistered;
+
+&package.html.html-quickform.html-quickform.applyfilter;
+</sect2>
<sect2 id="package.html.html-quickform.output">
<title>Outputting the form</title>
@@ -54,6 +66,28 @@
of the form, the elements, the error messages, the headers, the required elements note and the
required
elements sign. You can also write your own renderers.
</para>
+ <sect3 id="package.html.html-quickform.output.form-customization">
+ <title>Form customization and output helpers</title>
+&package.html.html-quickform.html-quickform.freeze;
+&package.html.html-quickform.html-quickform.iselementfrozen;
+&package.html.html-quickform.html-quickform.isfrozen;
+
+&package.html.html-quickform.html-quickform.setrequirednote;
+&package.html.html-quickform.html-quickform.setjswarnings;
+&package.html.html-quickform.html-quickform.getattributesstring;
+&package.html.html-quickform.html-quickform.getrequirednote;
+&package.html.html-quickform.html-quickform.getvalidationscript;
+
+&package.html.html-quickform.html-quickform.accept;
+&package.html.html-quickform.html-quickform.defaultrenderer;
+&package.html.html-quickform.html-quickform.toarray;
+&package.html.html-quickform.html-quickform.tohtml;
+
+ </sect3>
+
+ <sect3 id="package.html.html-quickform.output.basic-renderers">
+ <title>Basic renderers</title>
+ <para>These renderers are based on pre-3.0
<classname>HTML_QuickForm</classname> code and require no external classes to do their
work.</para>
&package.html.html-quickform.intro-renderers;
&package.html.html-quickform.html-quickform-renderer-default;
&package.html.html-quickform.html-quickform-renderer-default.clearalltemplates;
@@ -63,12 +97,17 @@
&package.html.html-quickform.html-quickform-renderer-default.setgrouptemplate;
&package.html.html-quickform.html-quickform-renderer-default.setheadertemplate;
&package.html.html-quickform.html-quickform-renderer-default.setrequirednotetemplate;
+&package.html.html-quickform.html-quickform-renderer-default.tohtml;
&package.html.html-quickform.html-quickform-renderer-array;
&package.html.html-quickform.html-quickform-renderer-array.html-quickform-renderer-array;
&package.html.html-quickform.html-quickform-renderer-array.setelementstyle;
&package.html.html-quickform.html-quickform-renderer-array.toarray;
-
+ </sect3>
+
+ <sect3 id="package.html.html-quickform.output.template-renderers">
+ <title>Template-based renderers</title>
+ <para>These renderers use template engines to actually generate the HTML for the
form.</para>
&package.html.html-quickform.html-quickform-renderer-arraysmarty;
&package.html.html-quickform.html-quickform-renderer-arraysmarty.html-quickform-renderer-arraysmarty;
&package.html.html-quickform.html-quickform-renderer-arraysmarty.seterrortemplate;
@@ -83,7 +122,11 @@
&package.html.html-quickform.html-quickform-renderer-itstatic.html-quickform-renderer-itstatic;
&package.html.html-quickform.html-quickform-renderer-itstatic.seterrortemplate;
&package.html.html-quickform.html-quickform-renderer-itstatic.setrequiredtemplate;
-
+ </sect3>
+
+ <sect3 id="package.html.html-quickform.output.renderer-doc">
+ <title>Renderer infrastructure</title>
+ <para>If you want to modify an existing renderer or write a new one, this section will be
of interest to you.</para>
&package.html.html-quickform.html-quickform-renderer;
&package.html.html-quickform.html-quickform-renderer.startform;
&package.html.html-quickform.html-quickform-renderer.finishform;
@@ -93,9 +136,8 @@
&package.html.html-quickform.html-quickform-renderer.renderheader;
&package.html.html-quickform.html-quickform-renderer.renderhidden;
&package.html.html-quickform.html-quickform-renderer.renderhtml;
+ </sect3>
</sect2>
-
-
</sect1>
<!-- Keep this comment at the end of the file
Local variables: