JForm::validateField
Method to validate a JFormField object based on field data.
Signature
Parameters
-
$element
- The XML element object representation of the form field.
-
$group
- The optional dot-separated form group path on which to find the field.
-
$value
- The optional value to use as the default for the field.
-
$input
- An optional JRegistry object with the entire data set to validate
Returns
- mixed
- Boolean true if field value is valid, Exception on failure.
Errors/Exceptions
-
InvalidArgumentException
-
UnexpectedValueException