API16:JFormRuleRules

From Joomla! Documentation
(Difference between revisions)
Jump to: navigation, search
(New page: <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki> </span> {{Description:JFormRuleRules}} ===Define...)
 
 
Line 15: Line 15:
 
|Method to test if two values are equal. To use this rule, the form XML needs a validate attribute of equals and a field attribute that is equal to the field to test against.
 
|Method to test if two values are equal. To use this rule, the form XML needs a validate attribute of equals and a field attribute that is equal to the field to test against.
 
|}
 
|}
 +
 
===Importing===
 
===Importing===
 
<source lang="php">jimport( 'joomla.form.rules.rules' );</source>
 
<source lang="php">jimport( 'joomla.form.rules.rules' );</source>

Latest revision as of 04:56, 30 March 2010

Replacement filing cabinet.png
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.

[Edit Descripton] Description:JFormRuleRules

Contents

[edit] Defined in

libraries/joomla/form/rules/rules.php

[edit] Methods

Method name Description
test Method to test if two values are equal. To use this rule, the form XML needs a validate attribute of equals and a field attribute that is equal to the field to test against.

[edit] Importing

jimport( 'joomla.form.rules.rules' );

[Edit See Also] SeeAlso:JFormRuleRules

[edit] Examples

<CodeExamplesForm />


Personal tools
Namespaces

Variants
Actions
Navigation
Joomla! Sites
Toolbox