JFormRuleRules
Extends \JFormRuleForm Rule class for the Joomla Platform.
package |
Joomla.Platform |
---|---|
subpackage |
Form |
since |
11.1 |
Methods
getFieldActions
Method to get the list of possible permission action names for the form field.
getFieldActions(object $element) : array
since |
11.1 |
---|
Arguments
- $element
object
The SimpleXMLElement object representing thetag for the form field object.
Response
array
A list of permission action names from the form field element definition.
getValueActions
Method to get the list of permission action names from the form field value.
getValueActions(mixed $value) : array
since |
11.1 |
---|
Arguments
- $value
mixed
The form field value to validate.
Response
array
A list of permission action names from the form field value.
test
Method to test the value.
test( &$element, mixed $value, string $group = null, &$input = null, &$form = null) : boolean
since |
11.1 |
---|---|
throws |
|
Arguments
- $element
- $value
mixed
The form field value to validate.- $group
string
The field name group control value. This acts as as an array container for the field. For example if the field has name="foo" and the group value is set to "bar" then the full field name would end up being "bar[foo]".- $input
- $form
Response
boolean
True if the value is valid, false otherwise.
Properties
regex
The regular expression to use in testing a form field value.
since |
11.1 |
---|
Type(s)
string
modifiers
The regular expression modifiers to use when testing a form field value.
since |
11.1 |
---|
Type(s)
string