This creates the form field object
RocksFormField
__construct
(string $name, string $type, string $isRequired, [string $formName = null], [string $default = null])
-
string
$name: this is the name of the form field
-
string
$type: this is the type of the form field
-
string
$isRequired: this indicates if the field is a required field
-
string
$formName: this is the form name that field is part of. This isn't needed if there is only one form
-
string
$default: this is the default value of the field if it is left empty.
void
AddRegex
( $regex, $message)
This checks that all form field pass all the field level validation tests.
void
Validate
()
Implementation of:
- RocksIValidatable::Validate()
void
__set
( $var, $varValue)