cvs: peardoc /en/package/html/html-quickform/html-quickform addgrouprule.xml
| From: | Alexey Borzov | Date: | Wed, 29 Jun 2005 15:32:45 +0000 |
| Subject: | cvs: peardoc /en/package/html/html-quickform/html-quickform addgrouprule.xml | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-6407@lists.php.net to get a copy of this message | ||
avb Wed Jun 29 11:32:45 2005 EDT
Modified files:
/peardoc/en/package/html/html-quickform/html-quickform
addgrouprule.xml
Log:
Clarified the docs concerning parameters for addGroupRule() (see bug #4538)
http://cvs.php.net/diff.php/peardoc/en/package/html/html-quickform/html-quickform/addgrouprule.xml?r1=1.4&r2=1.5&ty=u
Index: peardoc/en/package/html/html-quickform/html-quickform/addgrouprule.xml
diff -u peardoc/en/package/html/html-quickform/html-quickform/addgrouprule.xml:1.4
peardoc/en/package/html/html-quickform/html-quickform/addgrouprule.xml:1.5
--- peardoc/en/package/html/html-quickform/html-quickform/addgrouprule.xml:1.4 Thu Nov 6 15:36:13
2003
+++ peardoc/en/package/html/html-quickform/html-quickform/addgrouprule.xml Wed Jun 29 11:32:45 2005
@@ -1,4 +1,4 @@
-<!-- $Revision: 1.4 $ -->
+<!-- $Revision: 1.5 $ -->
<refentry id="package.html.html-quickform.html-quickform.addgrouprule">
<refnamediv>
<refname>HTML_QuickForm::addGroupRule()</refname>
@@ -69,8 +69,11 @@
)
]]>
</programlisting>
-rule data here matches the parameters' order and meaning for <link
linkend="package.html.html-quickform.html-quickform.addrule"><function>addRule</function></link>
method.
+rule data here matches the parameters' order and meaning for <link
linkend="package.html.html-quickform.html-quickform.addrule"><function>addRule</function></link>
method.
</para>
+ <note>
+ <simpara>If this parameter is an array, all the subsequent parameters are ignored.
You should pass all the modifiers for the rules being added within this array (see the example
below).</simpara>
+ </note>
</listitem>
</varlistentry>
<varlistentry>
@@ -204,7 +207,7 @@
$form->addGroupRule('id', array(
'lastname' => array(
array('Name is letters only', 'lettersonly'),
- array('Name is required', 'required')
+ array('Name is required', 'required', null, 'client')
),
'code' => array(
array('Code must be numeric', 'numeric')