cvs: peardoc /en/package/html/html-quickform/html-quickform registerrule.xml
| From: | Christian Weiske | Date: | Tue, 10 Apr 2007 12:43:36 +0000 |
| Subject: | cvs: peardoc /en/package/html/html-quickform/html-quickform registerrule.xml | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-9618@lists.php.net to get a copy of this message | ||
cweiske Tue Apr 10 12:43:36 2007 UTC
Modified files:
/peardoc/en/package/html/html-quickform/html-quickform
registerrule.xml
Log:
Fix bug #10099: return value of function
http://cvs.php.net/viewvc.cgi/peardoc/en/package/html/html-quickform/html-quickform/registerrule.xml?r1=1.3&r2=1.4&diff_format=u
Index: peardoc/en/package/html/html-quickform/html-quickform/registerrule.xml
diff -u peardoc/en/package/html/html-quickform/html-quickform/registerrule.xml:1.3
peardoc/en/package/html/html-quickform/html-quickform/registerrule.xml:1.4
--- peardoc/en/package/html/html-quickform/html-quickform/registerrule.xml:1.3 Fri Nov 7 10:27:41
2003
+++ peardoc/en/package/html/html-quickform/html-quickform/registerrule.xml Tue Apr 10 12:43:36 2007
@@ -1,4 +1,4 @@
-<!-- $Revision: 1.3 $ -->
+<!-- $Revision: 1.4 $ -->
<refentry id="package.html.html-quickform.html-quickform.registerrule">
<refnamediv>
<refname>HTML_QuickForm::registerRule()</refname>
@@ -29,7 +29,7 @@
<variablelist>
<varlistentry>
<term>
-
+
&type.string;
<parameter>$ruleName</parameter>
</term>
@@ -38,10 +38,10 @@
Name of validation rule
</para>
</listitem>
- </varlistentry>
+ </varlistentry>
<varlistentry>
<term>
-
+
&type.string;
<parameter>$type</parameter>
</term>
@@ -50,22 +50,28 @@
Either: <literal>'regex'</literal> or
<literal>'callback'</literal>
(<literal>'function'</literal> is also kept for backward compatibility). If
registering a subclass of <classname>HTML_QuickForm_Rule</classname> you can pass
anything here, preferrably &null; or empty string.
</para>
</listitem>
- </varlistentry>
+ </varlistentry>
<varlistentry>
<term>
-
+
&type.string;
<parameter>$data1</parameter>
</term>
<listitem>
<para>
- Name of function, regular expression, classname of
<classname>HTML_QuickForm_Rule</classname> subclass or an instance of such class.
+ Name of function, regular expression, classname of
+ <classname>HTML_QuickForm_Rule</classname> subclass or an instance
+ of such class.
+ </para>
+ <para>
+ The callback function needs to return <literal>true</literal> or
+ <literal>false</literal>, determining if the rule is passed or not.
</para>
</listitem>
- </varlistentry>
+ </varlistentry>
<varlistentry>
<term>
-
+
&type.string;
<parameter>$data2</parameter>
</term>
@@ -74,7 +80,7 @@
Object parent of above function, name of the file containing the subclass of
<classname>HTML_QuickForm_Rule</classname>.
</para>
</listitem>
- </varlistentry>
+ </varlistentry>
</variablelist>
</para>
</refsect1>
@@ -110,4 +116,4 @@
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
--->
+-->